Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qMRMLSegmentationFileExportWidget.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
6 Queen's University, Kingston, ON, Canada. All Rights Reserved.
7
8 See COPYRIGHT.txt
9 or http://www.slicer.org/copyright/copyright.txt for details.
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17 This file was originally developed by Andras Lasso, PerkLab, Queen's University
18 and was supported through CANARIE's Research Software Program, and Cancer
19 Care Ontario.
20
21==============================================================================*/
22
23#ifndef __qMRMLSegmentationFileExportWidget_h
24#define __qMRMLSegmentationFileExportWidget_h
25
26// MRMLWidgets includes
27#include "qMRMLWidget.h"
28
29#include "qSlicerSegmentationsModuleWidgetsExport.h"
30
31// CTK includes
32#include <ctkPimpl.h>
33#include <ctkVTKObject.h>
34
35class qMRMLSegmentationFileExportWidgetPrivate;
36
37class vtkMRMLNode;
40class QItemSelection;
41
44class Q_SLICER_MODULE_SEGMENTATIONS_WIDGETS_EXPORT qMRMLSegmentationFileExportWidget : public qMRMLWidget
45{
46 Q_OBJECT
47 QVTK_OBJECT
48
52 Q_PROPERTY(QString settingsKey READ settingsKey WRITE setSettingsKey)
53
54public:
56 explicit qMRMLSegmentationFileExportWidget(QWidget* parent = nullptr);
59
60 QString settingsKey()const;
61 void setSettingsKey(const QString& key);
62
66 Q_INVOKABLE QString segmentationNodeID();
67
68signals:
71
72public slots:
74
78
80
82
85
87
89
90protected slots:
91
92 void setFileFormat(const QString&);
93 void setColorNodeID(const QString&);
94 void setUseLabelsFromColorNode(bool useColorNode);
95
96protected:
97 QScopedPointer<qMRMLSegmentationFileExportWidgetPrivate> d_ptr;
98
99private:
100 Q_DECLARE_PRIVATE(qMRMLSegmentationFileExportWidget);
101 Q_DISABLE_COPY(qMRMLSegmentationFileExportWidget);
102};
103
104#endif
void setColorNodeID(const QString &)
~qMRMLSegmentationFileExportWidget() override
Destructor.
void setMRMLScene(vtkMRMLScene *mrmlScene) override
void setSettingsKey(const QString &key)
Q_INVOKABLE QString segmentationNodeID()
Get current segmentation node's ID.
void exportToFilesDone()
Emitted when conversion is done.
void setUseLabelsFromColorNode(bool useColorNode)
void setSegmentationNode(vtkMRMLNode *node)
Q_INVOKABLE vtkMRMLSegmentationNode * segmentationNode() const
Get current segmentation node.
void setFileFormat(const QString &)
void setSegmentationNode(vtkMRMLSegmentationNode *node)
Set segmentation MRML node.
QScopedPointer< qMRMLSegmentationFileExportWidgetPrivate > d_ptr
qMRMLSegmentationFileExportWidget(QWidget *parent=nullptr)
Constructor.
Q_INVOKABLE vtkMRMLScene * mrmlScene() const
Return a pointer on the current MRML scene.
qMRMLWidget(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.
MRML node for representing segmentation display attributes.
MRML node containing segmentations.