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
qMRMLDisplayNodeWidget.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 __qMRMLDisplayNodeWidget_h
22#define __qMRMLDisplayNodeWidget_h
23
24// Qt includes
25#include <QWidget>
26
27// CTK includes
28#include <ctkVTKObject.h>
29
30// qMRML includes
31#include "qMRMLWidgetsExport.h"
32
33class qMRMLDisplayNodeWidgetPrivate;
34class vtkMRMLNode;
36
37class QMRML_WIDGETS_EXPORT qMRMLDisplayNodeWidget : public QWidget
38{
39 Q_OBJECT
40 QVTK_OBJECT
41public:
42 qMRMLDisplayNodeWidget(QWidget *parent=nullptr);
44
46
47 bool visibility()const;
48 bool selected()const;
49 bool clipping()const;
50 bool threeDVisible()const;
54
55public slots:
62 void setMRMLDisplayableNode(vtkMRMLNode* displayableNode);
63
64 void setVisibility(bool);
65 void setSelected(bool);
66 void setClipping(bool);
67 void setThreeDVisible(bool);
71
82
83protected slots:
86
87protected:
88 QScopedPointer<qMRMLDisplayNodeWidgetPrivate> d_ptr;
89
90private:
91 Q_DECLARE_PRIVATE(qMRMLDisplayNodeWidget);
92 Q_DISABLE_COPY(qMRMLDisplayNodeWidget);
93};
94
95#endif
void setSliceIntersectionVisibleVisible(bool)
void setSelectedVisible(bool)
void setSliceIntersectionThickness(int)
vtkMRMLDisplayNode * mrmlDisplayNode() const
void setSliceIntersectionOpacity(double)
void setSliceIntersectionOpacityVisible(bool)
qMRMLDisplayNodeWidget(QWidget *parent=nullptr)
int sliceIntersectionThickness() const
bool threeDVisible() const
void setThreeDVisible(bool)
void setVisibilityVisible(bool)
~qMRMLDisplayNodeWidget() override
void setThreeDVisibleVisible(bool)
bool visibility() const
void setSliceIntersectionThicknessVisible(bool)
QScopedPointer< qMRMLDisplayNodeWidgetPrivate > d_ptr
void setClippingVisible(bool)
void setSliceIntersectionVisible(bool)
void setMRMLDisplayNode(vtkMRMLNode *node)
Utility function to be connected with generic signals.
bool sliceIntersectionVisible() const
double sliceIntersectionOpacity() const
void setMRMLDisplayNode(vtkMRMLDisplayNode *node)
Set the volume node to display.
void setMRMLDisplayableNode(vtkMRMLNode *displayableNode)
Abstract class that contains graphical display properties for displayable nodes.
Abstract Superclass for all specific types of MRML nodes.