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
160 virtual
void UpdateReferences() VTK_OVERRIDE;
164 virtual
void UpdateReferenceID(const
char *oldID, const
char *newID) VTK_OVERRIDE;
167 void ResetClippingRange();
196 void RotateAround(
RASAxis axis,
bool clockWise);
199 void RotateAround(
RASAxis axis,
double angle = 15.);
203 void TranslateAlong(
ScreenAxis axis,
bool positive);
212 void Reset(
bool resetRotation,
213 bool resetTranslation =
true,
214 bool resetDistance =
true,
215 vtkRenderer* renderer = 0);
223 void SetCamera(vtkCamera* camera);
224 void SetAndObserveCamera(vtkCamera *camera);
229 void SetInternalActiveTag(
const char*
id);
238 double pos[3] = {x, y, z};
239 this->SetPosition(pos);
245 double pos[3] = {x, y, z};
246 this->SetFocalPoint(pos);
252 double viewUp[3] = {vx, vy, vz};
253 this->SetViewUp(viewUp);
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.