Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerSubjectHierarchyModule.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 __qSlicerSubjectHierarchyModule_h
24 #define __qSlicerSubjectHierarchyModule_h
25 
26 // CTK includes
27 #include "ctkVTKObject.h"
28 
29 // Slicer includes
30 #include "qSlicerLoadableModule.h"
31 
32 #include "qSlicerSubjectHierarchyModuleExport.h"
33 
34 class vtkObject;
35 class qSlicerSubjectHierarchyModulePrivate;
36 
38 class Q_SLICER_QTMODULES_SUBJECTHIERARCHY_EXPORT qSlicerSubjectHierarchyModule :
40 {
41  Q_OBJECT
42  Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
43  Q_INTERFACES(qSlicerLoadableModule);
44  QVTK_OBJECT
45 
46 public:
48  explicit qSlicerSubjectHierarchyModule(QObject *parent=nullptr);
50 
51  qSlicerGetTitleMacro(QTMODULE_TITLE);
52 
54  QString helpText()const override;
55 
57  QString acknowledgementText()const override;
58 
60  QStringList contributors()const override;
61 
63  QIcon icon()const override;
64 
66  QStringList categories()const override;
67 
69  bool isHidden()const override { return true; };
70 
71 protected:
73  void setup() override;
74 
77 
80 
81 protected slots:
84  void onLogicModified();
85 
86 protected:
87  QScopedPointer<qSlicerSubjectHierarchyModulePrivate> d_ptr;
88 
89 private:
90  Q_DECLARE_PRIVATE(qSlicerSubjectHierarchyModule);
91  Q_DISABLE_COPY(qSlicerSubjectHierarchyModule);
92 };
93 
94 #endif
virtual QStringList contributors() const
Return the contributors of the module.
QScopedPointer< qSlicerSubjectHierarchyModulePrivate > d_ptr
Superclass for MRML logic classes.
virtual QIcon icon() const
virtual qSlicerAbstractModuleRepresentation * createWidgetRepresentation()=0
Create and return a widget representation for the module.
bool isHidden() const override
Make this module hidden.
#define qSlicerGetTitleMacro(_TITLE)
QString acknowledgementText() const override
virtual vtkMRMLAbstractLogic * createLogic()=0
void setup() override
All initialization code should be done in the setup.
QString helpText() const override
Return help/acknowledgement text.
virtual QStringList categories() const