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
qMRMLSegmentationRepresentationsListView.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 __qMRMLSegmentationRepresentationsListView_h
24#define __qMRMLSegmentationRepresentationsListView_h
25
26// Qt includes
27#include <QWidget>
28
29// Segmentations includes
30#include "qSlicerSegmentationsModuleWidgetsExport.h"
31
32// CTK includes
33#include <ctkPimpl.h>
34#include <ctkVTKObject.h>
35
36class vtkMRMLNode;
37class qMRMLSegmentationRepresentationsListViewPrivate;
38
39class Q_SLICER_MODULE_SEGMENTATIONS_WIDGETS_EXPORT qMRMLSegmentationRepresentationsListView : public QWidget
40{
41 Q_OBJECT
42 QVTK_OBJECT
43
44public:
46 explicit qMRMLSegmentationRepresentationsListView(QWidget* parent = nullptr);
49
52
53public slots:
56
57protected slots:
60
63
66
69
71 void makeSource();
72
73protected:
74 QScopedPointer<qMRMLSegmentationRepresentationsListViewPrivate> d_ptr;
75
76private:
79};
80
81#endif
~qMRMLSegmentationRepresentationsListView() override
Destructor.
void removeRepresentation()
Remove selected representation.
void populateRepresentationsList()
Populate representations list according to the segmentation node.
QScopedPointer< qMRMLSegmentationRepresentationsListViewPrivate > d_ptr
vtkMRMLNode * segmentationNode()
Get segmentation MRML node.
qMRMLSegmentationRepresentationsListView(QWidget *parent=nullptr)
Constructor.
void createRepresentationDefault()
Create selected representation using default parameters.
void createRepresentationAdvanced()
Create selected representation using custom parameters (pops up parameters widget)
void setSegmentationNode(vtkMRMLNode *node)
Set segmentation MRML node.
void makeSource()
Make selected representation the source representation in segmentation.
Abstract Superclass for all specific types of MRML nodes.