Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 
30 class qSlicerSubjectHierarchyViewContextMenuPluginPrivate;
31 
32 class vtkMRMLDisplayNode;
33 
40 class Q_SLICER_MODULE_SUBJECTHIERARCHY_WIDGETS_EXPORT qSlicerSubjectHierarchyViewContextMenuPlugin : public qSlicerSubjectHierarchyAbstractPlugin
41 {
42 public:
43  Q_OBJECT
44  QVTK_OBJECT
45 
46 public:
48  qSlicerSubjectHierarchyViewContextMenuPlugin(QObject* parent = nullptr);
50 
51 public:
52 
56 
60  void showViewContextMenuActionsForItem(vtkIdType itemID, QVariantMap eventData) override;
61 
62 protected slots:
63  void setInteractionMode(int mode);
64  void saveScreenshot();
65  void configureSliceViewAnnotationsAction();
66  void maximizeView();
67  void fitSliceView();
68  void centerThreeDView();
69  void toggleTiltLock();
70  void setIntersectingSlicesVisible(bool);
71  void setIntersectingSlicesHandlesVisible(bool);
72 
73 protected:
74  QScopedPointer<qSlicerSubjectHierarchyViewContextMenuPluginPrivate> d_ptr;
75 
76 private:
79 };
80 
81 #endif
Abstract plugin for handling Subject Hierarchy items.
virtual Q_INVOKABLE void showViewContextMenuActionsForItem(vtkIdType itemID, QVariantMap eventData)
virtual Q_INVOKABLE QList< QAction * > viewContextMenuActions() const
Abstract class that contains graphical display properties for displayable nodes.
QScopedPointer< qSlicerSubjectHierarchyViewContextMenuPluginPrivate > d_ptr