Slicer 5.9
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#ifndef __qMRMLTransformDisplayNodeWidget_h
24#define __qMRMLTransformDisplayNodeWidget_h
25
26// CTK includes
27#include <ctkPimpl.h>
28#include <ctkVTKObject.h>
29
30// Slicer includes
31#include "qMRMLWidget.h"
32
33#include "qSlicerTransformsModuleWidgetsExport.h"
34
35class qMRMLTransformDisplayNodeWidgetPrivate;
37class vtkMRMLNode;
38
39class Q_SLICER_MODULE_TRANSFORMS_WIDGETS_EXPORT qMRMLTransformDisplayNodeWidget : public qMRMLWidget
40{
41 Q_OBJECT
42 QVTK_OBJECT
43
44public:
46 qMRMLTransformDisplayNodeWidget(QWidget* newParent = nullptr);
48
49public slots:
50
54
58
59 void setVisibility(bool);
60 void setVisibility2d(bool);
61 void setVisibility3d(bool);
62
66
67 void updateGlyphSourceOptions(int sourceOption);
70 void setGlyphSpacingMm(double spacing);
71 void setGlyphScalePercent(double scale);
72 void setGlyphDisplayRangeMm(double min, double max);
73 void setGlyphType(int glyphType);
74 void setGlyphTipLengthPercent(double length);
75 void setGlyphDiameterMm(double diameterMm);
76 void setGlyphShaftDiameterPercent(double diameterPercent);
77 void setGlyphResolution(double resolution);
78 void setGridScalePercent(double scale);
79 void setGridSpacingMm(double spacing);
80 void setGridLineDiameterMm(double diameterMm);
81 void setGridResolutionMm(double resolutionMm);
82 void setGridShowNonWarped(bool show);
83 void setContourLevelsMm(QString values_str);
84 void setContourResolutionMm(double resolutionMm);
85 void setContourOpacityPercent(double opacity);
86
87 void setEditorVisibility(bool enabled);
88 void setEditorVisibility3d(bool enabled);
89 void setEditorVisibility2d(bool enabled);
90
91 void setEditorTranslationEnabled(bool enabled);
93
94 void setEditorRotationEnabled(bool enabled);
96
97 void setEditorScalingEnabled(bool enabled);
98 void setEditorScalingSliceEnabled(bool enabled);
99
101
106
107 void setColorTableNode(vtkMRMLNode* colorTableNode);
108
112
113protected slots:
115
118
119protected:
120 QScopedPointer<qMRMLTransformDisplayNodeWidgetPrivate> d_ptr;
121
122private:
123 Q_DECLARE_PRIVATE(qMRMLTransformDisplayNodeWidget);
124 Q_DISABLE_COPY(qMRMLTransformDisplayNodeWidget);
125};
126
127#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.