Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLViewNode.h
Go to the documentation of this file.
1/*=auto=========================================================================
2
3 Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4
5 See COPYRIGHT.txt
6 or http://www.slicer.org/copyright/copyright.txt for details.
7
8 Program: 3D Slicer
9 Module: $RCSfile: vtkMRMLViewNode.h,v $
10 Date: $Date: 2006/03/19 17:12:28 $
11 Version: $Revision: 1.6 $
12
13=========================================================================auto=*/
14
15#ifndef __vtkMRMLViewNode_h
16#define __vtkMRMLViewNode_h
17
18// VTK includes
20
24class VTK_MRML_EXPORT vtkMRMLViewNode : public vtkMRMLAbstractViewNode
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
31 //--------------------------------------------------------------------------
33 //--------------------------------------------------------------------------
34
36
38 void ReadXMLAttributes(const char** atts) override;
39
41 void WriteXML(ostream& of, int indent) override;
42
46
48 const char* GetNodeTagName() override;
49
51 static double* defaultBackgroundColor();
52 static double* defaultBackgroundColor2();
53
55 static void GetDefaultBoxColor(double color[3]);
56
58 vtkGetMacro(BoxVisible, int);
59 vtkSetMacro(BoxVisible, int);
60
62 vtkSetVector3Macro(BoxColor, double);
63 vtkGetVector3Macro(BoxColor, double);
64
66 vtkGetMacro(AxisLabelsVisible, int);
67 vtkSetMacro(AxisLabelsVisible, int);
68
70 vtkGetMacro(AxisLabelsCameraDependent, int);
71 vtkSetMacro(AxisLabelsCameraDependent, int);
72
74 vtkGetMacro(FiducialsVisible, int);
75 vtkSetMacro(FiducialsVisible, int);
76
77 vtkGetMacro(FiducialLabelsVisible, int);
78 vtkSetMacro(FiducialLabelsVisible, int);
79
81 vtkGetMacro(FieldOfView, double);
82 vtkSetMacro(FieldOfView, double);
83
85 vtkGetMacro(LetterSize, double);
86 vtkSetMacro(LetterSize, double);
87
89 vtkGetMacro(AnimationMode, int);
90 vtkSetMacro(AnimationMode, int);
91 static const char* GetAnimationModeAsString(int id);
92 static int GetAnimationModeFromString(const char* name);
93
94 vtkGetMacro(ViewAxisMode, int);
95 vtkSetMacro(ViewAxisMode, int);
96 static const char* GetViewAxisModeAsString(int id);
97 static int GetViewAxisModeFromString(const char* name);
98
100 vtkGetMacro(SpinDirection, int);
101 vtkSetMacro(SpinDirection, int);
102 static const char* GetSpinDirectionAsString(int id);
103 static int GetSpinDirectionFromString(const char* name);
104
106 vtkGetMacro(SpinDegrees, double);
107 vtkSetMacro(SpinDegrees, double);
108
109 vtkGetMacro(RotateDegrees, double);
110 vtkSetMacro(RotateDegrees, double);
111
113 vtkGetMacro(AnimationMs, int);
114 vtkSetMacro(AnimationMs, int);
115
117 vtkGetMacro(RockLength, int);
118 vtkSetMacro(RockLength, int);
119
121 vtkGetMacro(RockCount, int);
122 vtkSetMacro(RockCount, int);
123
125 vtkGetMacro(StereoType, int);
126 vtkSetMacro(StereoType, int);
127 static const char* GetStereoTypeAsString(int id);
128 static int GetStereoTypeFromString(const char* name);
129
131 vtkGetMacro(RenderMode, int);
132 vtkSetMacro(RenderMode, int);
133 static const char* GetRenderModeAsString(int id);
134 static int GetRenderModeFromString(const char* name);
135
138 vtkGetMacro(UseDepthPeeling, int);
139 vtkSetMacro(UseDepthPeeling, int);
140
143 vtkGetMacro(FPSVisible, int);
144 vtkSetMacro(FPSVisible, int);
145
148 vtkGetMacro(GPUMemorySize, int);
149 vtkSetMacro(GPUMemorySize, int);
150
159 vtkBooleanMacro(AutoReleaseGraphicsResources, bool);
161
163 vtkSetMacro(ExpectedFPS, double);
164 vtkGetMacro(ExpectedFPS, double);
165
166 vtkSetMacro(VolumeRenderingQuality, int);
167 vtkGetMacro(VolumeRenderingQuality, int);
168 static const char* GetVolumeRenderingQualityAsString(int id);
169 static int GetVolumeRenderingQualityFromString(const char* name);
170
172 vtkGetMacro(RaycastTechnique, int);
173 vtkSetMacro(RaycastTechnique, int);
174 static const char* GetRaycastTechniqueAsString(int id);
175 static int GetRaycastTechniqueFromString(const char* name);
176
182
189
191 enum
192 {
196 };
197
199 enum
200 {
208 };
209
211 enum
212 {
222 };
223
225 enum
226 {
230 };
231
233 enum
234 {
235 Off = 0,
239 };
240
242 enum
243 {
248 };
249
251 enum
252 {
253 Composite = 0, // Composite with directional lighting (default)
254 CompositeEdgeColoring, // Composite with fake lighting (edge coloring, faster) - Not used
260 };
261
263 enum
264 {
267 };
268
274 void SetInteracting(int);
275 vtkGetMacro(Interacting, int);
276 vtkBooleanMacro(Interacting, int);
277
307
310 vtkGetMacro(LinkedControl, int);
311 vtkSetMacro(LinkedControl, int);
312 vtkBooleanMacro(LinkedControl, int);
313
319 void SetInteractionFlags(unsigned int);
320 vtkGetMacro(InteractionFlags, unsigned int);
321
323
326 vtkGetMacro(ShadowsVisibility, bool);
327 vtkSetMacro(ShadowsVisibility, bool);
328 vtkBooleanMacro(ShadowsVisibility, bool);
330
332
335 vtkGetMacro(AmbientShadowsSizeScale, double);
336 vtkSetMacro(AmbientShadowsSizeScale, double);
338
340
344
346
350 vtkGetMacro(AmbientShadowsIntensityScale, double);
351 vtkSetMacro(AmbientShadowsIntensityScale, double);
353
355
359 vtkGetMacro(AmbientShadowsIntensityShift, double);
360 vtkSetMacro(AmbientShadowsIntensityShift, double);
362
363protected:
368
372 double BoxColor[3];
377
383
387
391
394
397
401
404
407
412
415
418
424
433
436
442
443 bool ShadowsVisibility{ false };
448
451 unsigned int InteractionFlags;
452};
453
454#endif
void SetInteractionFlags(unsigned int)
@ AmbientShadowsVolumeOpacityThresholdFlag
void PrintSelf(ostream &os, vtkIndent indent) override
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
int FPSVisible
Show the Frame per second as text on the lower right part of the view.
static const char * GetAnimationModeAsString(int id)
int StereoType
Parameters for stereo viewing.
double AmbientShadowsSizeScale
@ IllustrativeContextPreservingExploration
static const char * GetStereoTypeAsString(int id)
double VolumeRenderingOversamplingFactor
static double * defaultBackgroundColor()
Return the color the view nodes have for the background by default.
static int GetRaycastTechniqueFromString(const char *name)
void operator=(const vtkMRMLViewNode &)
@ Adaptive
quality determined from desired update rate
@ Maximum
high image quality, rendering time is not considered
@ Normal
good image quality at reasonable speed
static const char * GetVolumeRenderingQualityAsString(int id)
double AmbientShadowsIntensityShift
static const char * GetSpinDirectionAsString(int id)
int RenderMode
Specifies orthographic or perspective rendering.
double AmbientShadowsVolumeOpacityThreshold
static int GetVolumeRenderingQualityFromString(const char *name)
static const char * GetRenderModeAsString(int id)
static void GetDefaultBoxColor(double color[3])
Return default box color.
static int GetStereoTypeFromString(const char *name)
void SetInteracting(int)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
static int GetViewAxisModeFromString(const char *name)
static int GetSpinDirectionFromString(const char *name)
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
int UseDepthPeeling
Use the depth peeling rendering mode.
double ExpectedFPS
Expected frame per second rendered.
int RockLength
Parameters of automatic rock.
vtkMRMLViewNode(const vtkMRMLViewNode &)
vtkMRMLCopyContentMacro(vtkMRMLViewNode)
static const char * GetViewAxisModeAsString(int id)
static int GetRenderModeFromString(const char *name)
static const char * GetRaycastTechniqueAsString(int id)
int AnimationMode
Parameters of automatic spin.
static int GetAnimationModeFromString(const char *name)
~vtkMRMLViewNode() override
bool AutoReleaseGraphicsResources
Immediately release graphics resources when they are not in use.
unsigned int InteractionFlags
bool VolumeRenderingSurfaceSmoothing
Make surface appearance smoother in volume rendering. Off by default.
static vtkMRMLViewNode * New()
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
double AmbientShadowsIntensityScale
static double * defaultBackgroundColor2()