Slicer 5.6
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
qMRMLClipNodeWidget.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Kitware Inc.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 This file was originally developed by Julien Finet, Kitware Inc.
17 and was partially funded by NIH grant 3P41RR013218-12S1
18
19==============================================================================*/
20
21#ifndef __qMRMLClipNodeWidget_h
22#define __qMRMLClipNodeWidget_h
23
24// Qt includes
25#include <QWidget>
26
27// CTK includes
28#include <ctkVTKObject.h>
29
30// qMRML includes
31#include "qMRMLWidgetsExport.h"
33
34class qMRMLClipNodeWidgetPrivate;
35class vtkMRMLNode;
37
38class QMRML_WIDGETS_EXPORT qMRMLClipNodeWidget : public QWidget
39{
40 Q_OBJECT
41 QVTK_OBJECT
42public:
43 qMRMLClipNodeWidget(QWidget *parent=nullptr);
45
47
48 int clipType()const;
53
54 void setClipType(int);
59
60public slots:
65
66protected slots:
68
74
75protected:
76 QScopedPointer<qMRMLClipNodeWidgetPrivate> d_ptr;
77
78private:
79 Q_DECLARE_PRIVATE(qMRMLClipNodeWidget);
80 Q_DISABLE_COPY(qMRMLClipNodeWidget);
81};
82
83#endif
int yellowSliceClipState() const
QScopedPointer< qMRMLClipNodeWidgetPrivate > d_ptr
void setMRMLClipNode(vtkMRMLNode *node)
Utility function to be connected to signals/slots.
void setClippingMethod(vtkMRMLClipModelsNode::ClippingMethodType)
void updateNodeGreenClipState()
void updateNodeClippingMethod()
void updateNodeYellowClipState()
qMRMLClipNodeWidget(QWidget *parent=nullptr)
vtkMRMLClipModelsNode * mrmlClipNode() const
int redSliceClipState() const
void setRedSliceClipState(int)
void setMRMLClipNode(vtkMRMLClipModelsNode *node)
Set the clip node to represent.
void setGreenSliceClipState(int)
int greenSliceClipState() const
void updateNodeRedClipState()
~qMRMLClipNodeWidget() override
vtkMRMLClipModelsNode::ClippingMethodType clippingMethod() const
void setYellowSliceClipState(int)
int clipType() const
MRML node to represent three clipping planes.
Abstract Superclass for all specific types of MRML nodes.