Slicer  5.1
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 // Slicer 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  Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
40  Q_INTERFACES(qSlicerLoadableModule);
41  QVTK_OBJECT
42 
43 public:
45  explicit qSlicerSegmentationsModule(QObject *parent=nullptr);
46  ~qSlicerSegmentationsModule() override;
47 
48  qSlicerGetTitleMacro(QTMODULE_TITLE);
49 
51  QString helpText()const override;
52 
54  QString acknowledgementText()const override;
55 
57  QStringList contributors()const override;
58 
60  QStringList dependencies()const override;
61 
63  QIcon icon()const override;
64 
66  QStringList categories()const override;
67 
69  QStringList associatedNodeTypes()const override;
70 
71 public slots:
73  void setMRMLScene(vtkMRMLScene* scene) override;
74 
75 protected:
77  void setup() override;
78 
81 
84 
85 protected slots:
88  void onNodeAdded(vtkObject* scene, vtkObject* nodeObject);
89 
90 protected:
91  QScopedPointer<qSlicerSegmentationsModulePrivate> d_ptr;
92 
93 private:
94  Q_DECLARE_PRIVATE(qSlicerSegmentationsModule);
95  Q_DISABLE_COPY(qSlicerSegmentationsModule);
96 
97 };
98 
99 #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)
QString acknowledgementText() const override
QScopedPointer< qSlicerSegmentationsModulePrivate > d_ptr
virtual vtkMRMLAbstractLogic * createLogic()=0
void setup() override
All initialization code should be done in the setup.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
virtual QStringList associatedNodeTypes() const
Return node types associated with this module (e.g., node types this module can edit) ...
virtual QStringList dependencies() const
QString helpText() const override
Return help/acknowledgement text.
virtual QStringList categories() const