Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerSceneViewsModule.h
Go to the documentation of this file.
1 #ifndef __qSlicerSceneViewsModule_h
2 #define __qSlicerSceneViewsModule_h
3 
4 // Slicer includes
6 
7 // CTK includes
8 #include <ctkPimpl.h>
9 
10 #include "qSlicerSceneViewsModuleExport.h"
11 
13 class qSlicerSceneViewsModulePrivate;
14 
16 class Q_SLICER_QTMODULES_SCENEVIEWS_EXPORT qSlicerSceneViewsModule :
18 {
19  Q_OBJECT
20  Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
21  Q_INTERFACES(qSlicerLoadableModule);
22 public:
23 
25  qSlicerSceneViewsModule(QObject *parent=nullptr);
26  ~qSlicerSceneViewsModule() override;
27 
29  QString helpText()const override ;
30  QString acknowledgementText()const override;
31  QStringList contributors()const override;
32 
34  QIcon icon()const override;
35  QStringList categories()const override;
36 
38  QStringList associatedNodeTypes()const override;
39 
40  qSlicerGetTitleMacro(QTMODULE_TITLE);
41 
42 public slots:
47  void showSceneViewDialog();
48 
49 protected:
50 
52  void setup() override;
53 
54  // Description:
55  // Create and return the widget representation associated to this module
57 
58  // Description:
59  // Create and return the logic associated to this module
61 
62 protected:
63  QScopedPointer<qSlicerSceneViewsModulePrivate> d_ptr;
64 
65 private:
66  Q_DECLARE_PRIVATE(qSlicerSceneViewsModule);
67  Q_DISABLE_COPY(qSlicerSceneViewsModule);
68 };
69 
70 #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.
qSlicerLoadableModule Superclass
#define qSlicerGetTitleMacro(_TITLE)
QString acknowledgementText() const override
virtual vtkMRMLAbstractLogic * createLogic()=0
void setup() override
All initialization code should be done in the setup.
virtual QStringList associatedNodeTypes() const
Return node types associated with this module (e.g., node types this module can edit) ...
QString helpText() const override
Return help/acknowledgement text.
virtual QStringList categories() const
QScopedPointer< qSlicerSceneViewsModulePrivate > d_ptr