Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qSlicerSubjectHierarchyViewContextMenuPlugin.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
6 Queen's University, Kingston, ON, Canada. All Rights Reserved.
7
8 See COPYRIGHT.txt
9 or http://www.slicer.org/copyright/copyright.txt for details.
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17==============================================================================*/
18
19#ifndef __qSlicerSubjectHierarchyViewContextMenuPlugin_h
20#define __qSlicerSubjectHierarchyViewContextMenuPlugin_h
21
22// SubjectHierarchy Plugins includes
24
25#include "qSlicerSubjectHierarchyModuleWidgetsExport.h"
26
27// CTK includes
28#include <ctkVTKObject.h>
29
30class qSlicerSubjectHierarchyViewContextMenuPluginPrivate;
31
33
39class Q_SLICER_MODULE_SUBJECTHIERARCHY_WIDGETS_EXPORT qSlicerSubjectHierarchyViewContextMenuPlugin : public qSlicerSubjectHierarchyAbstractPlugin
40{
41public:
42 Q_OBJECT
43 QVTK_OBJECT
44
45public:
49
50public:
51
55
59 void showViewContextMenuActionsForItem(vtkIdType itemID, QVariantMap eventData) override;
60
61protected slots:
62 void setInteractionMode(int mode);
75
76protected:
77 QScopedPointer<qSlicerSubjectHierarchyViewContextMenuPluginPrivate> d_ptr;
78
79private:
82};
83
84#endif
qSlicerSubjectHierarchyAbstractPlugin(QObject *parent=nullptr)
QScopedPointer< qSlicerSubjectHierarchyViewContextMenuPluginPrivate > d_ptr
QList< QAction * > viewContextMenuActions() const override
void showViewContextMenuActionsForItem(vtkIdType itemID, QVariantMap eventData) override
qSlicerSubjectHierarchyViewContextMenuPlugin(QObject *parent=nullptr)
Abstract class that contains graphical display properties for displayable nodes.
QMap< QString, QVariant > QVariantMap