15 #ifndef __vtkMRMLCameraNode_h 16 #define __vtkMRMLCameraNode_h 34 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
48 virtual
void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
57 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "Camera";};
62 const char* GetActiveTag();
63 virtual void SetActiveTag(
const char *);
67 vtkGetObjectMacro(Camera, vtkCamera);
71 void SetParallelProjection(
int parallelProjection);
75 int GetParallelProjection();
79 void SetParallelScale(
double scale);
83 double GetParallelScale();
89 void SetViewAngle(
double viewAngle);
95 double GetViewAngle();
100 void SetPosition(
double position[3]);
101 inline void SetPosition(
double x,
double y,
double z);
106 double *GetPosition();
107 void GetPosition(
double position[3]);
113 void SetFocalPoint(
double focalPoint[3]);
114 inline void SetFocalPoint(
double x,
double y,
double z);
119 double *GetFocalPoint();
120 void GetFocalPoint(
double focalPoint[3]);
125 void SetViewUp(
double viewUp[3]);
126 inline void SetViewUp(
double vx,
double vy,
double vz);
132 void GetViewUp(
double viewUp[3]);
138 void * ) VTK_OVERRIDE;
144 vtkGetObjectMacro(AppliedTransform, vtkMatrix4x4);
145 virtual void SetAppliedTransform(vtkMatrix4x4* appliedTransform);
151 ActiveTagModifiedEvent = 30000,
152 CameraInteractionEvent = 31000,
153 ResetCameraClippingEvent = 32000,
162 virtual
void UpdateReferences() VTK_OVERRIDE;
166 virtual
void UpdateReferenceID(const
char* oldID, const
char* newID) VTK_OVERRIDE;
169 void ResetClippingRange();
194 void RotateTo(Direction position);
198 void RotateAround(RASAxis axis,
bool clockWise);
201 void RotateAround(RASAxis axis,
double angle = 15.);
205 void TranslateAlong(ScreenAxis axis,
bool positive);
214 void Reset(
bool resetRotation,
215 bool resetTranslation =
true,
216 bool resetDistance =
true,
217 vtkRenderer* renderer = 0);
224 void SetInteracting(
int);
225 vtkGetMacro(Interacting,
int);
226 vtkBooleanMacro(Interacting,
int);
248 void SetInteractionFlags(
unsigned int);
249 vtkGetMacro(InteractionFlags,
unsigned int);
258 void SetCamera(vtkCamera* camera);
259 void SetAndObserveCamera(vtkCamera* camera);
264 void SetInternalActiveTag(
const char*
id);
276 double pos[3] = {x, y, z};
283 double pos[3] = {x, y, z};
290 double viewUp[3] = {vx, vy, vz};
unsigned int InteractionFlags
virtual void Reset(vtkMRMLNode *defaultNode)
Reset node attributes to the initial state as defined in the constructor or the passed default node...
vtkMatrix4x4 * AppliedTransform
void SetFocalPoint(double focalPoint[3])
virtual void SetSceneReferences()
Update the references of the node to the scene.
MRML node to represent camera node.
void SetPosition(double position[3])
void SetViewUp(double viewUp[3])
Abstract Superclass for all specific types of MRML nodes.