Slicer  4.10
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 // SlicerQt 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 #ifdef Slicer_HAVE_QT5
43  Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
44 #endif
45  Q_INTERFACES(qSlicerLoadableModule);
46  QVTK_OBJECT
47 
48 public:
50  explicit qSlicerSubjectHierarchyModule(QObject *parent=0);
52 
53  qSlicerGetTitleMacro(QTMODULE_TITLE);
54 
56  virtual QString helpText()const;
57 
59  virtual QString acknowledgementText()const;
60 
62  virtual QStringList contributors()const;
63 
65  virtual QIcon icon()const;
66 
68  virtual QStringList categories()const;
69 
71  virtual bool isHidden()const { return true; };
72 
73 protected:
75  virtual void setup();
76 
79 
82 
83 protected slots:
86  void onLogicModified();
87 
88 protected:
89  QScopedPointer<qSlicerSubjectHierarchyModulePrivate> d_ptr;
90 
91 private:
92  Q_DECLARE_PRIVATE(qSlicerSubjectHierarchyModule);
93  Q_DISABLE_COPY(qSlicerSubjectHierarchyModule);
94 };
95 
96 #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.
#define qSlicerGetTitleMacro(_TITLE)
virtual void setup()
All initialization code should be done in the setup.
virtual vtkMRMLAbstractLogic * createLogic()=0
virtual QString helpText() const
Return help/acknowledgement text.
virtual QString acknowledgementText() const
virtual QStringList categories() const
virtual bool isHidden() const
Make this module hidden.