Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerSegmentationsModule.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 Csaba Pinter, PerkLab, Queen's University
16  and was supported through the Applied Cancer Research Unit program of Cancer Care
17  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
18 
19 ==============================================================================*/
20 
21 #ifndef __qSlicerSegmentationsModule_h
22 #define __qSlicerSegmentationsModule_h
23 
24 // CTK includes
25 #include "ctkVTKObject.h"
26 
27 // SlicerQt includes
28 #include "qSlicerLoadableModule.h"
29 
30 #include "qSlicerSegmentationsModuleExport.h"
31 
32 class qSlicerSegmentationsModulePrivate;
33 
35 class Q_SLICER_QTMODULES_SEGMENTATIONS_EXPORT qSlicerSegmentationsModule :
37 {
38  Q_OBJECT
39 #ifdef Slicer_HAVE_QT5
40  Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
41 #endif
42  Q_INTERFACES(qSlicerLoadableModule);
43  QVTK_OBJECT
44 
45 public:
47  explicit qSlicerSegmentationsModule(QObject *parent=0);
48  virtual ~qSlicerSegmentationsModule();
49 
50  qSlicerGetTitleMacro(QTMODULE_TITLE);
51 
53  virtual QString helpText()const;
54 
56  virtual QString acknowledgementText()const;
57 
59  virtual QStringList contributors()const;
60 
62  virtual QStringList dependencies()const;
63 
65  virtual QIcon icon()const;
66 
68  virtual QStringList categories()const;
69 
71  virtual QStringList associatedNodeTypes()const;
72 
73 public slots:
75  virtual void setMRMLScene(vtkMRMLScene* scene);
76 
77 protected:
79  virtual void setup();
80 
83 
86 
87 protected slots:
90  void onNodeAdded(vtkObject* scene, vtkObject* nodeObject);
91 
92 protected:
93  QScopedPointer<qSlicerSegmentationsModulePrivate> d_ptr;
94 
95 private:
96  Q_DECLARE_PRIVATE(qSlicerSegmentationsModule);
97  Q_DISABLE_COPY(qSlicerSegmentationsModule);
98 
99 };
100 
101 #endif
virtual void setMRMLScene(vtkMRMLScene *)
virtual QStringList contributors() const
Return the contributors of the module.
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.
QScopedPointer< qSlicerSegmentationsModulePrivate > d_ptr
virtual vtkMRMLAbstractLogic * createLogic()=0
virtual QString helpText() const
Return help/acknowledgement text.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
virtual QStringList associatedNodeTypes() const
Return node types associated with this module (e.g., node types this module can edit) ...
virtual QString acknowledgementText() const
virtual QStringList dependencies() const
virtual QStringList categories() const