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
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
39class vtkMRMLNode;
40class qMRMLSegmentationConversionParametersWidgetPrivate;
41class QTableWidgetItem;
42class QItemSelectionModel;
43
44class Q_SLICER_MODULE_SEGMENTATIONS_WIDGETS_EXPORT qMRMLSegmentationConversionParametersWidget : public QWidget
45{
46 Q_OBJECT
47 QVTK_OBJECT
48
50
51public:
53 explicit qMRMLSegmentationConversionParametersWidget(QWidget* parent = nullptr);
56
59
62
65
69
70signals:
73
74public slots:
77
79 void setTargetRepresentationName(QString representationName);
80
81protected slots:
84
87
89 void onParameterChanged(QTableWidgetItem* changedItem);
90
94
97
98protected:
99 QScopedPointer<qMRMLSegmentationConversionParametersWidgetPrivate> d_ptr;
100
101private:
104};
105
106#endif
void conversionDone()
Emitted when conversion is done.
void applyConversion()
Create selected representation.
void populatePathsTable()
Populate paths table according to the conversion.
vtkSegmentationConversionPath * selectedPath()
Return selected path.
vtkSegmentationConversionParameters * conversionParameters()
void setTargetRepresentationName(QString representationName)
Set target representation name.
~qMRMLSegmentationConversionParametersWidget() override
Destructor.
void onParameterChanged(QTableWidgetItem *changedItem)
Handle editing of generic conversation parameters.
void setSegmentationNode(vtkMRMLNode *node)
Set segmentation MRML node.
QString targetRepresentationName()
Get target representation name.
QScopedPointer< qMRMLSegmentationConversionParametersWidgetPrivate > d_ptr
vtkMRMLNode * segmentationNode()
Get segmentation MRML node.
qMRMLSegmentationConversionParametersWidget(QWidget *parent=nullptr)
Constructor.
void populateParametersTable()
Populate parameters table according to the selected path.
Abstract Superclass for all specific types of MRML nodes.
Store a segmentation conversion path.