Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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
41class Q_SLICER_MODULE_TRANSFORMS_WIDGETS_EXPORT
43 : public qMRMLWidget
44{
45 Q_OBJECT
46 QVTK_OBJECT
47
48public:
50 qMRMLTransformDisplayNodeWidget(QWidget *newParent = nullptr);
52
53public slots:
54
58
62
63 void setVisibility(bool);
64 void setVisibility2d(bool);
65 void setVisibility3d(bool);
66
70
71 void updateGlyphSourceOptions(int sourceOption);
74 void setGlyphSpacingMm(double spacing);
75 void setGlyphScalePercent(double scale);
76 void setGlyphDisplayRangeMm(double min, double max);
77 void setGlyphType(int glyphType);
78 void setGlyphTipLengthPercent(double length);
79 void setGlyphDiameterMm(double diameterMm);
80 void setGlyphShaftDiameterPercent(double diameterPercent);
81 void setGlyphResolution(double resolution);
82 void setGridScalePercent(double scale);
83 void setGridSpacingMm(double spacing);
84 void setGridLineDiameterMm(double diameterMm);
85 void setGridResolutionMm(double resolutionMm);
86 void setGridShowNonWarped(bool show);
87 void setContourLevelsMm(QString values_str);
88 void setContourResolutionMm(double resolutionMm);
89 void setContourOpacityPercent(double opacity);
90
91 void setEditorVisibility(bool enabled);
92 void setEditorTranslationEnabled(bool enabled);
93 void setEditorRotationEnabled(bool enabled);
94 void setEditorScalingEnabled(bool enabled);
96
97 void setColorTableNode(vtkMRMLNode* colorTableNode);
98
102
103protected slots:
105
106protected:
107 QScopedPointer<qMRMLTransformDisplayNodeWidgetPrivate> d_ptr;
108
109private:
110 Q_DECLARE_PRIVATE(qMRMLTransformDisplayNodeWidget);
111 Q_DISABLE_COPY(qMRMLTransformDisplayNodeWidget);
112
113};
114
115#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 setGridSpacingMm(double spacing)
void setGlyphScalePercent(double scale)
void setGlyphDisplayRangeMm(double min, double max)
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 setGlyphType(int glyphType)
void setEditorVisibility(bool enabled)
qMRMLTransformDisplayNodeWidget(QWidget *newParent=nullptr)
void setGridResolutionMm(double resolutionMm)
void setGlyphResolution(double resolution)
void setGlyphTipLengthPercent(double length)
void setContourLevelsMm(QString values_str)
QScopedPointer< qMRMLTransformDisplayNodeWidgetPrivate > d_ptr
void regionNodeChanged(vtkMRMLNode *node)
Base class for any widget that requires a MRML Scene.
Definition qMRMLWidget.h:36
Abstract Superclass for all specific types of MRML nodes.
MRML node for representing a transformation between this node space and a parent node space.