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
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
29class qSlicerSubjectHierarchyTextsPluginPrivate;
30
31class Q_SLICER_TEXTS_SUBJECT_HIERARCHY_PLUGINS_EXPORT qSlicerSubjectHierarchyTextsPlugin : public qSlicerSubjectHierarchyAbstractPlugin
32{
33public:
34 Q_OBJECT
35
36public:
38 qSlicerSubjectHierarchyTextsPlugin(QObject* parent = nullptr);
40
41public:
50 vtkMRMLNode* node,
51 vtkIdType parentItemID=vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID )const override;
52
59 double canOwnSubjectHierarchyItem(vtkIdType itemID)const override;
60
63 Q_INVOKABLE const QString roleForPlugin()const override;
64
67 QIcon icon(vtkIdType itemID) override;
68
70 QString tooltip(vtkIdType itemID)const override;
71
72protected:
73 QScopedPointer<qSlicerSubjectHierarchyTextsPluginPrivate> d_ptr;
74
75private:
76 Q_DECLARE_PRIVATE(qSlicerSubjectHierarchyTextsPlugin);
78};
79
80#endif
qSlicerSubjectHierarchyAbstractPlugin(QObject *parent=nullptr)
qSlicerSubjectHierarchyTextsPlugin(QObject *parent=nullptr)
double canAddNodeToSubjectHierarchy(vtkMRMLNode *node, vtkIdType parentItemID=vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID) const override
qSlicerSubjectHierarchyAbstractPlugin Superclass
QIcon icon(vtkIdType itemID) override
QScopedPointer< qSlicerSubjectHierarchyTextsPluginPrivate > d_ptr
double canOwnSubjectHierarchyItem(vtkIdType itemID) const override
QString tooltip(vtkIdType itemID) const override
Generate tooltip for a owned subject hierarchy item.
Q_INVOKABLE const QString roleForPlugin() const override
Abstract Superclass for all specific types of MRML nodes.