Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerSubjectHierarchyTextsPlugin.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4  Queen's University, Kingston, ON, Canada. All Rights Reserved.
5 
6  See COPYRIGHT.txt
7  or http://www.slicer.org/copyright/copyright.txt for details.
8 
9  Unless required by applicable law or agreed to in writing, software
10  distributed under the License is distributed on an "AS IS" BASIS,
11  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  See the License for the specific language governing permissions and
13  limitations under the License.
14 
15  This file was originally developed by Kyle Sunderland, PerkLab, Queen's University
16  and was supported through CANARIE's Research Software Program, and Cancer
17  Care Ontario.
18 
19 ==============================================================================*/
20 
21 #ifndef __qSlicerSubjectHierarchyTextsPlugin_h
22 #define __qSlicerSubjectHierarchyTextsPlugin_h
23 
24 // SubjectHierarchy includes
26 
27 #include "qSlicerTextsSubjectHierarchyPluginsExport.h"
28 
29 class qSlicerSubjectHierarchyTextsPluginPrivate;
30 
32 class Q_SLICER_TEXTS_SUBJECT_HIERARCHY_PLUGINS_EXPORT qSlicerSubjectHierarchyTextsPlugin : public qSlicerSubjectHierarchyAbstractPlugin
33 {
34 public:
35  Q_OBJECT
36 
37 public:
39  qSlicerSubjectHierarchyTextsPlugin(QObject* parent = nullptr);
41 
42 public:
51  vtkMRMLNode* node,
52  vtkIdType parentItemID=vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID )const override;
53 
60  double canOwnSubjectHierarchyItem(vtkIdType itemID)const override;
61 
64  Q_INVOKABLE const QString roleForPlugin()const override;
65 
68  QIcon icon(vtkIdType itemID) override;
69 
71  QString tooltip(vtkIdType itemID)const override;
72 
73 protected:
74  QScopedPointer<qSlicerSubjectHierarchyTextsPluginPrivate> d_ptr;
75 
76 private:
77  Q_DECLARE_PRIVATE(qSlicerSubjectHierarchyTextsPlugin);
78  Q_DISABLE_COPY(qSlicerSubjectHierarchyTextsPlugin);
79 };
80 
81 #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
virtual Q_INVOKABLE QString tooltip(vtkIdType itemID) const
Generate tooltip for a owned subject hierarchy item.
qSlicerSubjectHierarchyAbstractPlugin Superclass
Abstract plugin for handling Subject Hierarchy items.
QScopedPointer< qSlicerSubjectHierarchyTextsPluginPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
virtual Q_INVOKABLE double canOwnSubjectHierarchyItem(vtkIdType itemID) const