Slicer  4.8
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 // SlicerQt includes
22 #include "qSlicerLoadableModule.h"
23 
24 #include "qSlicerMarkupsModuleExport.h"
25 
26 class qSlicerMarkupsModulePrivate;
27 
29 class Q_SLICER_QTMODULES_MARKUPS_EXPORT qSlicerMarkupsModule :
31 {
32  Q_OBJECT
33 #ifdef Slicer_HAVE_QT5
34  Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
35 #endif
36  Q_INTERFACES(qSlicerLoadableModule);
37 
38 public:
39 
41  explicit qSlicerMarkupsModule(QObject *parent=0);
42  virtual ~qSlicerMarkupsModule();
43 
44  qSlicerGetTitleMacro(QTMODULE_TITLE);
45 
47  virtual QString helpText()const;
48 
50  virtual QString acknowledgementText()const;
51 
53  virtual QStringList contributors()const;
54 
56  virtual QIcon icon()const;
57 
59  virtual QStringList categories()const;
60 
62  virtual QStringList associatedNodeTypes()const;
63 
64 protected:
65 
67  virtual void setup();
68 
71 
74 
75  QScopedPointer<qSlicerMarkupsModulePrivate> d_ptr;
76 
77 private:
78  Q_DECLARE_PRIVATE(qSlicerMarkupsModule);
79  Q_DISABLE_COPY(qSlicerMarkupsModule);
80 
81 };
82 
83 #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.
QScopedPointer< qSlicerMarkupsModulePrivate > d_ptr
qSlicerLoadableModule Superclass
#define qSlicerGetTitleMacro(_TITLE)
virtual void setup()
All initialization code should be done in the setup.
virtual vtkMRMLAbstractLogic * createLogic()=0
virtual QString helpText() const
Return help/acknowledgement text.
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 categories() const