Slicer
5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Modules
Loadable
Texts
SubjectHierarchyPlugins
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
25
#include "
qSlicerSubjectHierarchyAbstractPlugin.h
"
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
:
38
typedef
qSlicerSubjectHierarchyAbstractPlugin
Superclass
;
39
qSlicerSubjectHierarchyTextsPlugin
(QObject* parent =
nullptr
);
40
~
qSlicerSubjectHierarchyTextsPlugin
()
override
;
41
42
public
:
50
double
canAddNodeToSubjectHierarchy
(
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
qSlicerSubjectHierarchyTextsPlugin
Definition:
qSlicerSubjectHierarchyTextsPlugin.h:32
qSlicerSubjectHierarchyAbstractPlugin::icon
virtual QIcon icon(vtkIdType itemID)
qSlicerSubjectHierarchyAbstractPlugin::roleForPlugin
virtual Q_INVOKABLE const QString roleForPlugin() const
vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID
static const vtkIdType INVALID_ITEM_ID
Definition:
vtkMRMLSubjectHierarchyNode.h:59
qSlicerSubjectHierarchyAbstractPlugin::canAddNodeToSubjectHierarchy
virtual double canAddNodeToSubjectHierarchy(vtkMRMLNode *node, vtkIdType parentItemID=vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID) const
qSlicerSubjectHierarchyAbstractPlugin::tooltip
virtual Q_INVOKABLE QString tooltip(vtkIdType itemID) const
Generate tooltip for a owned subject hierarchy item.
qSlicerSubjectHierarchyTextsPlugin::Superclass
qSlicerSubjectHierarchyAbstractPlugin Superclass
Definition:
qSlicerSubjectHierarchyTextsPlugin.h:38
qSlicerSubjectHierarchyAbstractPlugin
Abstract plugin for handling Subject Hierarchy items.
Definition:
qSlicerSubjectHierarchyAbstractPlugin.h:65
qSlicerSubjectHierarchyTextsPlugin::d_ptr
QScopedPointer< qSlicerSubjectHierarchyTextsPluginPrivate > d_ptr
Definition:
qSlicerSubjectHierarchyTextsPlugin.h:74
qSlicerSubjectHierarchyAbstractPlugin.h
vtkMRMLNode
Abstract Superclass for all specific types of MRML nodes.
Definition:
vtkMRMLNode.h:167
qSlicerSubjectHierarchyAbstractPlugin::canOwnSubjectHierarchyItem
virtual Q_INVOKABLE double canOwnSubjectHierarchyItem(vtkIdType itemID) const
Generated on Fri Jul 8 2022 05:39:17 for Slicer by
1.8.14