Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 
24 class VTK_MRML_EXPORT vtkMRMLViewNode
26 {
27 public:
28  static vtkMRMLViewNode *New();
30  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
31 
32  //--------------------------------------------------------------------------
34  //--------------------------------------------------------------------------
35 
36  virtual vtkMRMLNode* CreateNodeInstance() VTK_OVERRIDE;
37 
40  virtual void ReadXMLAttributes( const char** atts) VTK_OVERRIDE;
41 
44  virtual void WriteXML(ostream& of, int indent) VTK_OVERRIDE;
45 
48  virtual void Copy(vtkMRMLNode *node) VTK_OVERRIDE;
49 
52  virtual const char* GetNodeTagName() VTK_OVERRIDE;
53 
55  static double* defaultBackgroundColor();
56  static double* defaultBackgroundColor2();
57 
60  vtkGetMacro(BoxVisible, int);
61  vtkSetMacro(BoxVisible, int);
62 
65  vtkGetMacro(AxisLabelsVisible, int);
66  vtkSetMacro(AxisLabelsVisible, int);
67 
70  vtkGetMacro(AxisLabelsCameraDependent, int);
71  vtkSetMacro(AxisLabelsCameraDependent, int);
72 
75  vtkGetMacro (FiducialsVisible, int );
76  vtkSetMacro (FiducialsVisible, int );
77 
78  vtkGetMacro (FiducialLabelsVisible, int );
79  vtkSetMacro (FiducialLabelsVisible, int );
80 
83  vtkGetMacro(FieldOfView, double);
84  vtkSetMacro(FieldOfView, double);
85 
88  vtkGetMacro(LetterSize, double);
89  vtkSetMacro(LetterSize, double);
90 
93  vtkGetMacro (AnimationMode, int );
94  vtkSetMacro (AnimationMode, int );
95 
97  vtkGetMacro (ViewAxisMode, int );
98  vtkSetMacro (ViewAxisMode, int );
99 
102  vtkGetMacro ( SpinDirection, int );
103  vtkSetMacro ( SpinDirection, int );
104 
107  vtkGetMacro ( SpinDegrees, double );
108  vtkSetMacro ( SpinDegrees, double );
109 
110  vtkGetMacro ( RotateDegrees, double );
111  vtkSetMacro ( RotateDegrees, double );
112 
115  vtkGetMacro ( AnimationMs, int );
116  vtkSetMacro ( AnimationMs, int );
117 
120  vtkGetMacro ( RockLength, int );
121  vtkSetMacro ( RockLength, int );
122 
125  vtkGetMacro ( RockCount, int );
126  vtkSetMacro ( RockCount, int );
127 
130  vtkGetMacro ( StereoType, int );
131  vtkSetMacro ( StereoType, int );
132 
135  vtkGetMacro (RenderMode, int );
136  vtkSetMacro (RenderMode, int );
137 
140  vtkGetMacro ( UseDepthPeeling, int );
141  vtkSetMacro ( UseDepthPeeling, int );
142 
145  vtkGetMacro ( FPSVisible, int );
146  vtkSetMacro ( FPSVisible, int );
147 
149  enum
150  {
151  RotateAround = 0,
152  LookFrom
153  };
154 
156  enum
157  {
158  PitchUp = 0,
163  YawRight
164  };
165 
167  enum
168  {
169  NoStereo = 0,
176  UserDefined_3
177  };
178 
180  enum
181  {
182  Perspective = 0,
183  Orthographic
184  };
185 
187  enum
188  {
189  Off = 0,
191  Rock
192  };
193 
195  enum
196  {
197  GraphicalResourcesCreatedEvent = 19001,
199  };
200 
201 protected:
202  vtkMRMLViewNode();
203  ~vtkMRMLViewNode();
205  void operator=(const vtkMRMLViewNode&);
206 
212  double FieldOfView;
213  double LetterSize;
214 
219  double SpinDegrees;
221 
226 
231 
235 
239 
244 
247 
250 };
251 
252 #endif
int AnimationMode
parameters of automatic spin
void operator=(const vtkMRMLAbstractViewNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
int FPSVisible
Show the Frame per second as text on the lower right part of the view.
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
int StereoType
parameters for stereo viewing
int RenderMode
Specifies orthographic or perspective rendering.
MRML node to represent a 3D view.
int UseDepthPeeling
Use the depth peeling rendering mode.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:135
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
int RockLength
parameters of automatic rock