Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerSubjectHierarchySceneViewsPlugin.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  This file was originally developed by Csaba Pinter, PerkLab, Queen's University
18  and was supported through the Applied Cancer Research Unit program of Cancer Care
19  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
20 
21 ==============================================================================*/
22 
23 #ifndef __qSlicerSubjectHierarchySceneViewsPlugin_h
24 #define __qSlicerSubjectHierarchySceneViewsPlugin_h
25 
26 // SubjectHierarchy Plugins includes
28 
29 #include "qSlicerSceneViewsSubjectHierarchyPluginsExport.h"
30 
31 class qSlicerSubjectHierarchySceneViewsPluginPrivate;
32 class vtkMRMLNode;
34 
36 class Q_SLICER_SCENEVIEWS_SUBJECT_HIERARCHY_PLUGINS_EXPORT qSlicerSubjectHierarchySceneViewsPlugin : public qSlicerSubjectHierarchyAbstractPlugin
37 {
38 public:
39  Q_OBJECT
40 
41 public:
43  qSlicerSubjectHierarchySceneViewsPlugin(QObject* parent = nullptr);
45 
46 public:
55  vtkMRMLNode* node,
56  vtkIdType parentItemID=vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID )const override;
57 
64  double canOwnSubjectHierarchyItem(vtkIdType itemID)const override;
65 
68  Q_INVOKABLE const QString roleForPlugin()const override;
69 
72  QIcon icon(vtkIdType itemID) override;
73 
76 
79  void showContextMenuActionsForItem(vtkIdType itemID) override;
80 
81 protected slots:
83  void restoreCurrentSceneView()const;
84 
85 protected:
86  QScopedPointer<qSlicerSubjectHierarchySceneViewsPluginPrivate> d_ptr;
87 
88 private:
89  Q_DECLARE_PRIVATE(qSlicerSubjectHierarchySceneViewsPlugin);
91 };
92 
93 #endif
virtual QIcon icon(vtkIdType itemID)
virtual Q_INVOKABLE const QString roleForPlugin() const
virtual double canAddNodeToSubjectHierarchy(vtkMRMLNode *node, vtkIdType parentItemID=vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID) const
Abstract plugin for handling Subject Hierarchy items.
MRML node to represent a complete subject hierarchy tree.
QScopedPointer< qSlicerSubjectHierarchySceneViewsPluginPrivate > d_ptr
virtual Q_INVOKABLE void showContextMenuActionsForItem(vtkIdType itemID)
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
virtual Q_INVOKABLE double canOwnSubjectHierarchyItem(vtkIdType itemID) const
virtual Q_INVOKABLE QList< QAction * > itemContextMenuActions() const