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
qMRMLTransformDisplayNodeWidget.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
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 Andras Lasso and Franklin King at
17 PerkLab, Queen's University and was supported through the Applied Cancer
18 Research Unit program of Cancer Care Ontario with funds provided by the
19 Ontario Ministry of Health and Long-Term Care.
20
21==============================================================================*/
22
23
24#ifndef __qMRMLTransformDisplayNodeWidget_h
25#define __qMRMLTransformDisplayNodeWidget_h
26
27// CTK includes
28#include <ctkPimpl.h>
29#include <ctkVTKObject.h>
30
31// Slicer includes
32#include "qMRMLWidget.h"
33
34#include "qSlicerTransformsModuleWidgetsExport.h"
35
36class qMRMLTransformDisplayNodeWidgetPrivate;
38class vtkMRMLNode;
39
40class Q_SLICER_MODULE_TRANSFORMS_WIDGETS_EXPORT
42 : public qMRMLWidget
43{
44 Q_OBJECT
45 QVTK_OBJECT
46
47public:
49 qMRMLTransformDisplayNodeWidget(QWidget *newParent = nullptr);
51
52public slots:
53
57
61
62 void setVisibility(bool);
63 void setVisibility2d(bool);
64 void setVisibility3d(bool);
65
69
70 void updateGlyphSourceOptions(int sourceOption);
73 void setGlyphSpacingMm(double spacing);
74 void setGlyphScalePercent(double scale);
75 void setGlyphDisplayRangeMm(double min, double max);
76 void setGlyphType(int glyphType);
77 void setGlyphTipLengthPercent(double length);
78 void setGlyphDiameterMm(double diameterMm);
79 void setGlyphShaftDiameterPercent(double diameterPercent);
80 void setGlyphResolution(double resolution);
81 void setGridScalePercent(double scale);
82 void setGridSpacingMm(double spacing);
83 void setGridLineDiameterMm(double diameterMm);
84 void setGridResolutionMm(double resolutionMm);
85 void setGridShowNonWarped(bool show);
86 void setContourLevelsMm(QString values_str);
87 void setContourResolutionMm(double resolutionMm);
88 void setContourOpacityPercent(double opacity);
89
90 void setEditorVisibility(bool enabled);
91 void setEditorVisibility3d(bool enabled);
92 void setEditorVisibility2d(bool enabled);
93
94 void setEditorTranslationEnabled(bool enabled);
96
97 void setEditorRotationEnabled(bool enabled);
99
100 void setEditorScalingEnabled(bool enabled);
102
104
109
110 void setColorTableNode(vtkMRMLNode* colorTableNode);
111
115
116protected slots:
118
121
122protected:
123 QScopedPointer<qMRMLTransformDisplayNodeWidgetPrivate> d_ptr;
124
125private:
126 Q_DECLARE_PRIVATE(qMRMLTransformDisplayNodeWidget);
127 Q_DISABLE_COPY(qMRMLTransformDisplayNodeWidget);
128
129};
130
131#endif
void setMRMLTransformNode(vtkMRMLNode *node)
void setEditorRotationEnabled(bool enabled)
void updateGlyphSourceOptions(int sourceOption)
void setEditorTranslationEnabled(bool enabled)
void setGlyphSpacingMm(double spacing)
void setGridScalePercent(double scale)
void glyphPointsNodeChanged(vtkMRMLNode *node)
void setEditorRotationSliceEnabled(bool enabled)
void setGridSpacingMm(double spacing)
void setGlyphScalePercent(double scale)
void setGlyphDisplayRangeMm(double min, double max)
void setEditorVisibility2d(bool enabled)
void setColorTableNode(vtkMRMLNode *colorTableNode)
void setGridLineDiameterMm(double diameterMm)
void setGlyphShaftDiameterPercent(double diameterPercent)
void setContourResolutionMm(double resolutionMm)
void setMRMLTransformNode(vtkMRMLTransformNode *transformNode)
void setEditorScalingEnabled(bool enabled)
void setGridShowNonWarped(bool show)
void setGlyphDiameterMm(double diameterMm)
void setContourOpacityPercent(double opacity)
void setEditorScalingSliceEnabled(bool enabled)
void setGlyphType(int glyphType)
void setEditorVisibility(bool enabled)
qMRMLTransformDisplayNodeWidget(QWidget *newParent=nullptr)
void setGridResolutionMm(double resolutionMm)
void setEditorVisibility3d(bool enabled)
void setGlyphResolution(double resolution)
void setGlyphTipLengthPercent(double length)
void setEditorTranslationSliceEnabled(bool enabled)
void setContourLevelsMm(QString values_str)
QScopedPointer< qMRMLTransformDisplayNodeWidgetPrivate > d_ptr
void regionNodeChanged(vtkMRMLNode *node)
qMRMLWidget(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Abstract Superclass for all specific types of MRML nodes.
MRML node for representing a transformation between this node space and a parent node space.