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
qSlicerColorsModule.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 __qSlicerColorsModule_h
22#define __qSlicerColorsModule_h
23
26
28#include "qSlicerColorsModuleExport.h"
29
31class qSlicerColorsModulePrivate;
32
33class Q_SLICER_QTMODULES_COLORS_EXPORT qSlicerColorsModule
35{
36 Q_OBJECT
37 Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
38 Q_INTERFACES(qSlicerLoadableModule);
39
40public:
42 qSlicerColorsModule(QObject *parent=nullptr);
44
45 QStringList categories()const override;
46 QIcon icon()const override;
47
48 qSlicerGetTitleMacro(tr("Colors"));
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 QStringList associatedNodeTypes()const override;
64
65 void setMRMLScene(vtkMRMLScene* newMRMLScene) override;
66
67protected:
69 void setup() override;
70
73
76
77protected:
78 QScopedPointer<qSlicerColorsModulePrivate> d_ptr;
79
80private:
81 Q_DECLARE_PRIVATE(qSlicerColorsModule);
82 Q_DISABLE_COPY(qSlicerColorsModule);
83};
84
85#endif
QStringList associatedNodeTypes() const override
Specify editable node types.
void setup() override
Reimplemented to initialize the color logic.
QStringList dependencies() const override
List dependencies.
QScopedPointer< qSlicerColorsModulePrivate > d_ptr
void setMRMLScene(vtkMRMLScene *newMRMLScene) override
QStringList categories() const override
QIcon icon() const override
QStringList contributors() const override
Return the authors of the module.
~qSlicerColorsModule() override
qSlicerGetTitleMacro(tr("Colors"))
qSlicerAbstractModuleRepresentation * createWidgetRepresentation() override
Create and return the widget representation associated to this module.
vtkMRMLAbstractLogic * createLogic() override
Create and return the logic associated to this module.
qSlicerColorsModule(QObject *parent=nullptr)
QString helpText() const override
Help to use the module.
QString acknowledgementText() const override
Return acknowledgments.
qSlicerLoadableModule Superclass
qSlicerLoadableModule(QObject *parent=nullptr)
Superclass for MRML logic classes.
A set of MRML Nodes that supports serialization and undo/redo.