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
qSlicerModelsModule.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Kitware Inc.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 This file was originally developed by Julien Finet, Kitware Inc.
17 and was partially funded by NIH grant 3P41RR013218-12S1
18
19==============================================================================*/
20
21#ifndef __qSlicerModelsModule_h
22#define __qSlicerModelsModule_h
23
24// CTK includes
25#include <ctkPimpl.h>
26
27// Slicer includes
29
30#include "qSlicerModelsModuleExport.h"
31
32class qSlicerModelsModulePrivate;
33
34class Q_SLICER_QTMODULES_MODELS_EXPORT qSlicerModelsModule :
36{
37 Q_OBJECT
38 Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
39 Q_INTERFACES(qSlicerLoadableModule);
40
41public:
42
44 explicit qSlicerModelsModule(QObject *parent=nullptr);
46
47 qSlicerGetTitleMacro(tr("Models"));
48
49 QString helpText()const override;
50 QString acknowledgementText()const override;
51 QStringList contributors()const override;
52
54 QIcon icon()const override;
55
56 QStringList categories()const override;
57 QStringList dependencies() const override;
58
60 QStringList associatedNodeTypes()const override;
61
62protected:
64 void setup() override;
65
68
71
72protected:
73 QScopedPointer<qSlicerModelsModulePrivate> d_ptr;
74
75private:
76 Q_DECLARE_PRIVATE(qSlicerModelsModule);
77 Q_DISABLE_COPY(qSlicerModelsModule);
78
79};
80
81#endif
qSlicerLoadableModule(QObject *parent=nullptr)
qSlicerModelsModule(QObject *parent=nullptr)
QStringList contributors() const override
Return the contributors of the module.
QStringList associatedNodeTypes() const override
Specify editable node types.
QScopedPointer< qSlicerModelsModulePrivate > d_ptr
QStringList dependencies() const override
vtkMRMLAbstractLogic * createLogic() override
Create and return the logic associated to this module.
void setup() override
Initialize the module. Register the volumes reader/writer.
qSlicerAbstractModuleRepresentation * createWidgetRepresentation() override
Create and return the widget representation associated to this module.
qSlicerLoadableModule Superclass
~qSlicerModelsModule() override
QString acknowledgementText() const override
QIcon icon() const override
Return a custom icon for the module.
qSlicerGetTitleMacro(tr("Models"))
QStringList categories() const override
QString helpText() const override
Return help/acknowledgement text.
Superclass for MRML logic classes.