Slicer  4.8
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 // SlicerQT 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 #ifdef Slicer_HAVE_QT5
21  Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
22 #endif
23  Q_INTERFACES(qSlicerLoadableModule);
24 public:
25 
27  qSlicerAnnotationsModule(QObject *parent=0);
28  virtual ~qSlicerAnnotationsModule();
29 
31  virtual QString helpText()const;
32  virtual QString acknowledgementText()const;
33  virtual QStringList contributors()const;
34  virtual QStringList dependencies() const;
35 
37  virtual QIcon icon()const;
38 
39  virtual QStringList categories()const;
40 
42  virtual QStringList associatedNodeTypes()const;
43 
44  qSlicerGetTitleMacro(QTMODULE_TITLE);
45 
46 protected:
47 
49  virtual void setup();
50 
51  // Description:
52  // Create and return the widget representation associated to this module
54 
55  // Description:
56  // Create and return the logic associated to this module
58 
59 public slots:
64  void showScreenshotDialog();
65 
66 protected:
67  QScopedPointer<qSlicerAnnotationsModulePrivate> d_ptr;
68 
69 private:
70  Q_DECLARE_PRIVATE(qSlicerAnnotationsModule);
71  Q_DISABLE_COPY(qSlicerAnnotationsModule);
72 };
73 
74 #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)
virtual void setup()
All initialization code should be done in the setup.
virtual vtkMRMLAbstractLogic * createLogic()=0
qSlicerLoadableModule Superclass
virtual QString helpText() const
Return help/acknowledgement text.
QScopedPointer< qSlicerAnnotationsModulePrivate > d_ptr
virtual QStringList associatedNodeTypes() const
Return node types associated with this module (e.g., node types this module can edit) ...
virtual QString acknowledgementText() const
virtual QStringList dependencies() const
virtual QStringList categories() const