Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 
13 class qSlicerAnnotationsModulePrivate;
14 
16 class Q_SLICER_QTMODULES_ANNOTATIONS_EXPORT qSlicerAnnotationsModule :
18 {
19  Q_OBJECT
20  Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
21  Q_INTERFACES(qSlicerLoadableModule);
22 public:
23 
25  qSlicerAnnotationsModule(QObject *parent=nullptr);
26  ~qSlicerAnnotationsModule() override;
27 
29  QString helpText()const override;
30  QString acknowledgementText()const override;
31  QStringList contributors()const override;
32  QStringList dependencies() const override;
33 
35  QIcon icon()const override;
36 
37  QStringList categories()const override;
38 
40  QStringList associatedNodeTypes()const override;
41 
42  qSlicerGetTitleMacro(QTMODULE_TITLE);
43 
44 protected:
45 
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 
57 public slots:
62  void showScreenshotDialog();
63 
64 protected:
65  QScopedPointer<qSlicerAnnotationsModulePrivate> d_ptr;
66 
67 private:
68  Q_DECLARE_PRIVATE(qSlicerAnnotationsModule);
69  Q_DISABLE_COPY(qSlicerAnnotationsModule);
70 };
71 
72 #endif
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
virtual vtkMRMLAbstractLogic * createLogic()=0
void setup() override
All initialization code should be done in the setup.
qSlicerLoadableModule Superclass
QScopedPointer< qSlicerAnnotationsModulePrivate > d_ptr
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