Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
qSlicerAnnotationsModule.h
Go to the documentation of this file.
1#ifndef __qSlicerAnnotationsModule_h
2#define __qSlicerAnnotationsModule_h
3
4// Slicer includes
6
7// CTK includes
8#include <ctkPimpl.h>
9
10#include "qSlicerAnnotationsModuleExport.h"
11
13class qSlicerAnnotationsModulePrivate;
14
15class Q_SLICER_QTMODULES_ANNOTATIONS_EXPORT qSlicerAnnotationsModule : public qSlicerLoadableModule
16{
17 Q_OBJECT
18 Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
19 Q_INTERFACES(qSlicerLoadableModule);
20
21public:
23 qSlicerAnnotationsModule(QObject* parent = nullptr);
25
27 QString helpText() const override;
28 QString acknowledgementText() const override;
29 QStringList contributors() const override;
30 QStringList dependencies() const override;
31
33 QIcon icon() const override;
34
35 QStringList categories() const override;
36
38 QStringList associatedNodeTypes() const override;
39
40 qSlicerGetTitleMacro(tr("Annotations"));
41
44
45protected:
47 void setup() override;
48
49 // Description:
50 // Create and return the widget representation associated to this module
52
53 // Description:
54 // Create and return the logic associated to this module
56
57public slots:
63
64protected:
65 QScopedPointer<qSlicerAnnotationsModulePrivate> d_ptr;
66
67private:
68 Q_DECLARE_PRIVATE(qSlicerAnnotationsModule);
69 Q_DISABLE_COPY(qSlicerAnnotationsModule);
70};
71
72#endif
QStringList dependencies() const override
void setup() override
All initialization code should be done in the setup.
qSlicerAnnotationsModule(QObject *parent=nullptr)
~qSlicerAnnotationsModule() override
QStringList categories() const override
QString acknowledgementText() const override
QScopedPointer< qSlicerAnnotationsModulePrivate > d_ptr
void grabSnapShot()
Open the screen capture dialog.
qSlicerAbstractModuleRepresentation * createWidgetRepresentation() override
Create and return a widget representation for the module.
QStringList associatedNodeTypes() const override
Specify editable node types.
qSlicerGetTitleMacro(tr("Annotations"))
vtkMRMLAbstractLogic * createLogic() override
QIcon icon() const override
Return the icon of the Annotation module.
QStringList contributors() const override
Return the contributors of the module.
QString helpText() const override
Return the help and acknowledgement text for the Annotation module.
qSlicerLoadableModule(QObject *parent=nullptr)
Superclass for MRML logic classes.