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
qMRMLSegmentationGeometryDialog.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4 Queen's University, Kingston, ON, Canada. All Rights Reserved.
5
6 See COPYRIGHT.txt
7 or http://www.slicer.org/copyright/copyright.txt for details.
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14
15 This file was originally developed by Csaba Pinter, PerkLab, Queen's University
16 and was supported through the Applied Cancer Research Unit program of Cancer Care
17 Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
18 and CANARIE.
19
20==============================================================================*/
21
22#ifndef __qMRMLSegmentationGeometryDialog_h
23#define __qMRMLSegmentationGeometryDialog_h
24
25// Qt includes
26#include <QObject>
27
28// Segmentations includes
29#include "qSlicerSegmentationsModuleWidgetsExport.h"
30
32
34class qMRMLSegmentationGeometryDialogPrivate;
35
37class Q_SLICER_MODULE_SEGMENTATIONS_WIDGETS_EXPORT qMRMLSegmentationGeometryDialog : public QObject
38{
39public:
40 Q_OBJECT
41
44 Q_PROPERTY(bool editEnabled READ editEnabled WRITE setEditEnabled)
50
51public:
52 typedef QObject Superclass;
53 qMRMLSegmentationGeometryDialog(vtkMRMLSegmentationNode* segmentationNode, QObject* parent=nullptr);
55
56public:
60 virtual bool exec();
61
63 Q_INVOKABLE bool execDialog() { return this->exec(); };
64
65 bool editEnabled()const;
66 bool resampleLabelmaps()const;
67
68public slots:
69 void setEditEnabled(bool aEditEnabled);
70 void setResampleLabelmaps(bool aResampleLabelmaps);
71
72protected:
73 QScopedPointer<qMRMLSegmentationGeometryDialogPrivate> d_ptr;
74
75private:
76 Q_DECLARE_PRIVATE(qMRMLSegmentationGeometryDialog);
77 Q_DISABLE_COPY(qMRMLSegmentationGeometryDialog);
78};
79
80#endif
Q_INVOKABLE bool execDialog()
Python compatibility function for showing dialog (calls exec)
void setEditEnabled(bool aEditEnabled)
QScopedPointer< qMRMLSegmentationGeometryDialogPrivate > d_ptr
qMRMLSegmentationGeometryDialog(vtkMRMLSegmentationNode *segmentationNode, QObject *parent=nullptr)
void setResampleLabelmaps(bool aResampleLabelmaps)
MRML node containing segmentations.