Slicer  4.10
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 // SlicerQt 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 = 0);
52 
53 public slots:
54 
57  void setMRMLTransformNode(vtkMRMLTransformNode* transformNode);
58 
61  void setMRMLTransformNode(vtkMRMLNode* node);
62 
63  void setVisible2d(bool);
64  void setVisible3d(bool);
65 
66  void setGlyphVisualizationMode(bool);
67  void setGridVisualizationMode(bool);
68  void setContourVisualizationMode(bool);
69 
70  void updateGlyphSourceOptions(int sourceOption);
71  void regionNodeChanged(vtkMRMLNode* node);
72  void glyphPointsNodeChanged(vtkMRMLNode* node);
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 setEditorTranslationEnabled(bool enabled);
92  void setEditorRotationEnabled(bool enabled);
93  void setEditorScalingEnabled(bool enabled);
94  void updateEditorBounds();
95 
96  void setColorTableNode(vtkMRMLNode* colorTableNode);
97 
98  void colorUpdateRange();
99  void onColorInteractionEvent();
100  void onColorModifiedEvent();
101 
102 protected slots:
103  void updateWidgetFromDisplayNode();
104 
105 protected:
106  QScopedPointer<qMRMLTransformDisplayNodeWidgetPrivate> d_ptr;
107 
108 private:
109  Q_DECLARE_PRIVATE(qMRMLTransformDisplayNodeWidget);
110  Q_DISABLE_COPY(qMRMLTransformDisplayNodeWidget);
111 
112 };
113 
114 #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:138