Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 
36 class qMRMLTransformDisplayNodeWidgetPrivate;
38 class vtkMRMLNode;
39 
41 class Q_SLICER_MODULE_TRANSFORMS_WIDGETS_EXPORT
43  : public qMRMLWidget
44 {
45  Q_OBJECT
46  QVTK_OBJECT
47 
48 public:
50  qMRMLTransformDisplayNodeWidget(QWidget *newParent = nullptr);
52 
53 public slots:
54 
57  void setMRMLTransformNode(vtkMRMLTransformNode* transformNode);
58 
61  void setMRMLTransformNode(vtkMRMLNode* node);
62 
63  void setVisibility(bool);
64  void setVisibility2d(bool);
65  void setVisibility3d(bool);
66 
67  void setGlyphVisualizationMode(bool);
68  void setGridVisualizationMode(bool);
69  void setContourVisualizationMode(bool);
70 
71  void updateGlyphSourceOptions(int sourceOption);
72  void regionNodeChanged(vtkMRMLNode* node);
73  void glyphPointsNodeChanged(vtkMRMLNode* node);
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);
95  void updateEditorBounds();
96 
97  void setColorTableNode(vtkMRMLNode* colorTableNode);
98 
99  void colorUpdateRange();
100  void onColorInteractionEvent();
101  void onColorModifiedEvent();
102 
103 protected slots:
104  void updateWidgetFromDisplayNode();
105 
106 protected:
107  QScopedPointer<qMRMLTransformDisplayNodeWidgetPrivate> d_ptr;
108 
109 private:
110  Q_DECLARE_PRIVATE(qMRMLTransformDisplayNodeWidget);
111  Q_DISABLE_COPY(qMRMLTransformDisplayNodeWidget);
112 
113 };
114 
115 #endif
MRML node for representing a transformation between this node space and a parent node space...
QScopedPointer< qMRMLTransformDisplayNodeWidgetPrivate > d_ptr
Base class for any widget that requires a MRML Scene.
Definition: qMRMLWidget.h:35
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167