Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLSegmentationConversionParametersWidget.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 Csaba Pinter, PerkLab, Queen's University
18  and was supported through the Applied Cancer Research Unit program of Cancer Care
19  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
20 
21 ==============================================================================*/
22 
23 #ifndef __qMRMLSegmentationConversionParametersWidget_h
24 #define __qMRMLSegmentationConversionParametersWidget_h
25 
26 // Qt includes
27 #include <QWidget>
28 
29 // Segmentations includes
30 #include "qSlicerSegmentationsModuleWidgetsExport.h"
31 
34 
35 // CTK includes
36 #include <ctkPimpl.h>
37 #include <ctkVTKObject.h>
38 
39 class vtkMRMLNode;
40 class qMRMLSegmentationConversionParametersWidgetPrivate;
41 class QTableWidgetItem;
42 class QItemSelectionModel;
43 
44 class Q_SLICER_MODULE_SEGMENTATIONS_WIDGETS_EXPORT qMRMLSegmentationConversionParametersWidget : public QWidget
45 {
46  Q_OBJECT
47  QVTK_OBJECT
48 
49  Q_PROPERTY(QString targetRepresentationName READ targetRepresentationName WRITE setTargetRepresentationName)
50 
51 public:
53  explicit qMRMLSegmentationConversionParametersWidget(QWidget* parent = nullptr);
56 
58  vtkMRMLNode* segmentationNode();
59 
61  QString targetRepresentationName();
62 
64  vtkSegmentationConversionPath* selectedPath();
65 
68  vtkSegmentationConversionParameters* conversionParameters();
69 
70 signals:
72  void conversionDone();
73 
74 public slots:
76  void setSegmentationNode(vtkMRMLNode* node);
77 
79  void setTargetRepresentationName(QString representationName);
80 
81 protected slots:
83  void populatePathsTable();
84 
86  void populateParametersTable();
87 
89  void onParameterChanged(QTableWidgetItem* changedItem);
90 
93  void onSpecifyGeometryButtonClicked();
94 
96  void applyConversion();
97 
98 protected:
99  QScopedPointer<qMRMLSegmentationConversionParametersWidgetPrivate> d_ptr;
100 
101 private:
104 };
105 
106 #endif
QScopedPointer< qMRMLSegmentationConversionParametersWidgetPrivate > d_ptr
Store a list of conversion parameters.
Store a segmentation conversion path.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167