Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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
45class Q_SLICER_MODULE_SEGMENTATIONS_WIDGETS_EXPORT qMRMLSegmentationFileExportWidget : public qMRMLWidget
46{
47 Q_OBJECT
48 QVTK_OBJECT
49
53 Q_PROPERTY(QString settingsKey READ settingsKey WRITE setSettingsKey)
54
55public:
57 explicit qMRMLSegmentationFileExportWidget(QWidget* parent = nullptr);
60
61 QString settingsKey()const;
62 void setSettingsKey(const QString& key);
63
67 Q_INVOKABLE QString segmentationNodeID();
68
69signals:
72
73public slots:
74 void setMRMLScene(vtkMRMLScene* mrmlScene) override;
75
79
81
83
86
88
90
91protected slots:
92
93 void setFileFormat(const QString&);
94 void setColorNodeID(const QString&);
95 void setUseLabelsFromColorNode(bool useColorNode);
96
97protected:
98 QScopedPointer<qMRMLSegmentationFileExportWidgetPrivate> d_ptr;
99
100private:
101 Q_DECLARE_PRIVATE(qMRMLSegmentationFileExportWidget);
102 Q_DISABLE_COPY(qMRMLSegmentationFileExportWidget);
103};
104
105#endif
Qt widget for selecting a single segment from a segmentation. If multiple segments are needed,...
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.
Base class for any widget that requires a MRML Scene.
Definition qMRMLWidget.h:36
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.