Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 
34 class qMRMLSegmentationGeometryDialogPrivate;
35 
38 class Q_SLICER_MODULE_SEGMENTATIONS_WIDGETS_EXPORT qMRMLSegmentationGeometryDialog : public QObject
39 {
40 public:
41  Q_OBJECT
42 
45  Q_PROPERTY(bool editEnabled READ editEnabled WRITE setEditEnabled)
50  Q_PROPERTY(bool resampleLabelmaps READ resampleLabelmaps WRITE setResampleLabelmaps)
51 
52 public:
53  typedef QObject Superclass;
54  qMRMLSegmentationGeometryDialog(vtkMRMLSegmentationNode* segmentationNode, QObject* parent=nullptr);
56 
57 public:
61  virtual bool exec();
62 
64  Q_INVOKABLE bool execDialog() { return this->exec(); };
65 
66  bool editEnabled()const;
67  bool resampleLabelmaps()const;
68 
69 public slots:
70  void setEditEnabled(bool aEditEnabled);
71  void setResampleLabelmaps(bool aResampleLabelmaps);
72 
73 protected:
74  QScopedPointer<qMRMLSegmentationGeometryDialogPrivate> d_ptr;
75 
76 private:
77  Q_DECLARE_PRIVATE(qMRMLSegmentationGeometryDialog);
78  Q_DISABLE_COPY(qMRMLSegmentationGeometryDialog);
79 };
80 
81 #endif
QScopedPointer< qMRMLSegmentationGeometryDialogPrivate > d_ptr
Qt dialog for changing segmentation labelmap geometry.
MRML node containing segmentationsSegmentation node stores a set of segments (also known as contours ...