Slicer  5.0
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 
65 
68 
69 signals:
71  void conversionDone();
72 
73 public slots:
75  void setSegmentationNode(vtkMRMLNode* node);
76 
78  void setTargetRepresentationName(QString representationName);
79 
80 protected slots:
82  void populatePathsTable();
83 
85  void populateParametersTable();
86 
88  void onParameterChanged(QTableWidgetItem* changedItem);
89 
92  void onSpecifyGeometryButtonClicked();
93 
95  void applyConversion();
96 
97 protected:
98  QScopedPointer<qMRMLSegmentationConversionParametersWidgetPrivate> d_ptr;
99 
100 private:
103 };
104 
105 #endif
QScopedPointer< qMRMLSegmentationConversionParametersWidgetPrivate > d_ptr
std::vector< vtkSegmentationConverterRule * > ConversionPathType
std::map< std::string, std::pair< std::string, std::string > > ConversionParameterListType
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167