Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerMarkupsModule.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
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 ==============================================================================*/
17 
18 #ifndef __qSlicerMarkupsModule_h
19 #define __qSlicerMarkupsModule_h
20 
21 // Slicer includes
22 #include "qSlicerLoadableModule.h"
23 
24 #include "qSlicerMarkupsModuleExport.h"
25 
26 class qSlicerMarkupsModulePrivate;
28 
30 class Q_SLICER_QTMODULES_MARKUPS_EXPORT qSlicerMarkupsModule :
32 {
33  Q_OBJECT
34  Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
35  Q_INTERFACES(qSlicerLoadableModule);
36 
37 public:
38 
40  explicit qSlicerMarkupsModule(QObject *parent=nullptr);
41  ~qSlicerMarkupsModule() override;
42 
43  qSlicerGetTitleMacro(QTMODULE_TITLE);
44 
46  QString helpText()const override;
47 
49  QString acknowledgementText()const override;
50 
52  QStringList contributors()const override;
53 
55  QIcon icon()const override;
56 
58  QStringList categories()const override;
59 
61  QStringList associatedNodeTypes()const override;
62 
63  void setMRMLScene(vtkMRMLScene* scene) override;
64 
65  static void readDefaultMarkupsDisplaySettings(vtkMRMLMarkupsDisplayNode* markupsDisplayNode);
66  static void writeDefaultMarkupsDisplaySettings(vtkMRMLMarkupsDisplayNode* markupsDisplayNode);
67 
68 protected:
69 
71  void setup() override;
72 
75 
78 
79  QScopedPointer<qSlicerMarkupsModulePrivate> d_ptr;
80 
81 private:
82  Q_DECLARE_PRIVATE(qSlicerMarkupsModule);
83  Q_DISABLE_COPY(qSlicerMarkupsModule);
84 
85 };
86 
87 #endif
virtual void setMRMLScene(vtkMRMLScene *)
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.
QScopedPointer< qSlicerMarkupsModulePrivate > d_ptr
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.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:61
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