Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
29
30#include "qSlicerSegmentationsModuleExport.h"
31
32class qSlicerSegmentationsModulePrivate;
33
34class Q_SLICER_QTMODULES_SEGMENTATIONS_EXPORT qSlicerSegmentationsModule :
36{
37 Q_OBJECT
38 Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
39 Q_INTERFACES(qSlicerLoadableModule);
40 QVTK_OBJECT
41
42public:
44 explicit qSlicerSegmentationsModule(QObject *parent=nullptr);
46
47 qSlicerGetTitleMacro(tr("Segmentations"));
48
50 QString helpText()const override;
51
53 QString acknowledgementText()const override;
54
56 QStringList contributors()const override;
57
59 QStringList dependencies()const override;
60
62 QIcon icon()const override;
63
65 QStringList categories()const override;
66
68 QStringList associatedNodeTypes()const override;
69
70public slots:
72 void setMRMLScene(vtkMRMLScene* scene) override;
73
74protected:
76 void setup() override;
77
80
83
84protected slots:
87 void onNodeAdded(vtkObject* scene, vtkObject* nodeObject);
88
89protected:
90 QScopedPointer<qSlicerSegmentationsModulePrivate> d_ptr;
91
92private:
93 Q_DECLARE_PRIVATE(qSlicerSegmentationsModule);
94 Q_DISABLE_COPY(qSlicerSegmentationsModule);
95
96};
97
98#endif
qSlicerLoadableModule(QObject *parent=nullptr)
QStringList dependencies() const override
Return module dependencies.
QStringList associatedNodeTypes() const override
Define associated node types.
QStringList contributors() const override
Return the authors of the module.
qSlicerGetTitleMacro(tr("Segmentations"))
QString helpText() const override
Help to use the module.
QStringList categories() const override
Return the categories for the module.
QIcon icon() const override
Return a custom icon for the module.
void onNodeAdded(vtkObject *scene, vtkObject *nodeObject)
void setMRMLScene(vtkMRMLScene *scene) override
Set up MRML scene events.
~qSlicerSegmentationsModule() override
vtkMRMLAbstractLogic * createLogic() override
Create and return the logic associated to this module.
qSlicerAbstractModuleRepresentation * createWidgetRepresentation() override
Create and return the widget representation associated to this module.
qSlicerSegmentationsModule(QObject *parent=nullptr)
QScopedPointer< qSlicerSegmentationsModulePrivate > d_ptr
void setup() override
Initialize the module. Register the volumes reader/writer.
QString acknowledgementText() const override
Return acknowledgments.
Superclass for MRML logic classes.
A set of MRML Nodes that supports serialization and undo/redo.