Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
qSlicerSequencesModule.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 __qSlicerSequencesModule_h
19#define __qSlicerSequencesModule_h
20
21// CTK includes
22#include <ctkVTKObject.h>
23
24// Slicer includes
26
27#include "qSlicerSequencesModuleExport.h"
28
30class vtkMRMLScene;
32class vtkObject;
33
34class qSlicerSequencesModulePrivate;
35
36class Q_SLICER_QTMODULES_SEQUENCES_EXPORT qSlicerSequencesModule : public qSlicerLoadableModule
37{
38 Q_OBJECT
39 QVTK_OBJECT;
40 Q_PLUGIN_METADATA(IID "org.slicer.modules.loadable.qSlicerLoadableModule/1.0");
41 Q_INTERFACES(qSlicerLoadableModule);
42
46
47public:
49 explicit qSlicerSequencesModule(QObject* parent = 0);
51
52 qSlicerGetTitleMacro(tr("Sequences"));
53
54 QString helpText() const override;
55 QString acknowledgementText() const override;
56 QStringList contributors() const override;
57
58 QIcon icon() const override;
59
60 QStringList categories() const override;
61 QStringList dependencies() const override;
62
64 QStringList associatedNodeTypes() const override;
65
69 Q_INVOKABLE bool autoShowToolBar();
70 Q_INVOKABLE bool isToolBarVisible();
72
75 Q_INVOKABLE static bool showSequenceBrowser(vtkMRMLSequenceBrowserNode* browserNode);
76
77protected:
79 void setup() override;
80
83
86
87public slots:
88 void setMRMLScene(vtkMRMLScene*) override;
89 void setToolBarVisible(bool visible);
91 void setAutoShowToolBar(bool autoShow);
92 void onNodeAddedEvent(vtkObject*, vtkObject*);
93 void onNodeRemovedEvent(vtkObject*, vtkObject*);
95
97
98protected:
99 QScopedPointer<qSlicerSequencesModulePrivate> d_ptr;
100
101private:
102 Q_DECLARE_PRIVATE(qSlicerSequencesModule);
103 Q_DISABLE_COPY(qSlicerSequencesModule);
104};
105
106#endif
qSlicerLoadableModule(QObject *parent=nullptr)
qSlicerGetTitleMacro(tr("Sequences"))
void setAutoShowToolBar(bool autoShow)
Enables automatic showing sequence browser toolbar when a new sequence is loaded.
QScopedPointer< qSlicerSequencesModulePrivate > d_ptr
void setMRMLScene(vtkMRMLScene *) override
QIcon icon() const override
void onNodeAddedEvent(vtkObject *, vtkObject *)
QString acknowledgementText() const override
qSlicerSequencesModule(QObject *parent=0)
QStringList contributors() const override
Return the contributors of the module.
QStringList dependencies() const override
vtkMRMLAbstractLogic * createLogic() override
Create and return the logic associated to this module.
void setToolBarVisible(bool visible)
static Q_INVOKABLE bool showSequenceBrowser(vtkMRMLSequenceBrowserNode *browserNode)
void setToolBarActiveBrowserNode(vtkMRMLSequenceBrowserNode *browserNode)
QStringList associatedNodeTypes() const override
Specify editable node types.
void setup() override
Initialize the module. Register the volumes reader/writer.
qSlicerLoadableModule Superclass
QStringList categories() const override
void updateAllVirtualOutputNodes()
qSlicerAbstractModuleRepresentation * createWidgetRepresentation() override
Create and return the widget representation associated to this module.
Q_INVOKABLE qMRMLSequenceBrowserToolBar * toolBar()
QString helpText() const override
Return help/acknowledgement text.
Q_INVOKABLE bool isToolBarVisible()
void onNodeRemovedEvent(vtkObject *, vtkObject *)
bool toolBarVisible
Visibility of the sequence browser toolbar.
Superclass for MRML logic classes.
A set of MRML Nodes that supports serialization and undo/redo.