Go to the documentation of this file.
38 #include "vtkRenderingCoreModule.h"
48 class vtkCameraCallbackCommand;
70 this->SetPosition(a[0], a[1], a[2]); };
71 vtkGetVector3Macro(Position,
double);
81 this->SetFocalPoint(a[0], a[1], a[2]);};
82 vtkGetVector3Macro(FocalPoint,
double);
92 this->SetViewUp(a[0], a[1], a[2]); }
93 vtkGetVector3Macro(ViewUp,
double);
114 vtkGetMacro(Distance,
double);
123 vtkGetVector3Macro(DirectionOfProjection,
double);
221 vtkGetMacro(ViewAngle,
double);
235 vtkGetMacro(ParallelScale ,
double);
263 { this->SetClippingRange(a[0], a[1]); }
264 vtkGetVector2Macro(ClippingRange,
double);
276 vtkGetMacro(Thickness,
double);
290 vtkGetVector2Macro(WindowCenter,
double);
321 vtkGetVector3Macro(ViewPlaneNormal,
double);
335 vtkGetVector3Macro(ViewShear,
double);
343 vtkSetMacro(EyeAngle,
double);
344 vtkGetMacro(EyeAngle,
double);
354 vtkSetMacro(FocalDisk,
double);
355 vtkGetMacro(FocalDisk,
double);
379 vtkSetVector3Macro(ScreenBottomLeft,
double);
380 vtkGetVector3Macro(ScreenBottomLeft,
double);
389 vtkSetVector3Macro(ScreenBottomRight,
double);
390 vtkGetVector3Macro(ScreenBottomRight,
double);
399 vtkSetVector3Macro(ScreenTopRight,
double);
400 vtkGetVector3Macro(ScreenTopRight,
double);
409 vtkSetMacro(EyeSeparation,
double);
410 vtkGetMacro(EyeSeparation,
double);
511 vtkSetMacro(UseExplicitProjectionTransformMatrix,
bool)
512 vtkGetMacro(UseExplicitProjectionTransformMatrix,
bool)
513 vtkBooleanMacro(UseExplicitProjectionTransformMatrix,
bool)
552 virtual
vtkMatrix4x4 *GetCompositeProjectionTransformMatrix(
double aspect,
626 void ComputeViewPlaneNormal();
644 vtkSetMacro(LeftEye,
int);
645 vtkGetMacro(LeftEye,
int);
670 vtkSetMacro(FreezeFocalPoint,
bool);
671 vtkGetMacro(FreezeFocalPoint,
bool);
678 vtkSetMacro(UseScissor,
bool);
679 vtkGetMacro(UseScissor,
bool);
743 double WindowCenter[2];
744 double ObliqueAngles[2];
745 double FocalPoint[3];
749 double ClippingRange[2];
757 double DirectionOfProjection[3];
758 double ViewPlaneNormal[3];
764 double ScreenBottomLeft[3];
765 double ScreenBottomRight[3];
766 double ScreenTopRight[3];
793 friend class vtkCameraCallbackCommand;
807 void operator=(
const vtkCamera&) =
delete;
vtkTransform * ViewTransform
void DeepCopy(vtkCamera *source)
Copy the properties of ‘source’ into ‘this’.
vtkTransform * CameraLightTransform
virtual vtkMatrix4x4 * GetViewTransformMatrix()
For backward compatibility.
vtkMTimeType GetViewingRaysMTime()
Return the MTime that concerns recomputing the view rays of the camera.
vtkTypeBool ParallelProjection
void PartialCopy(vtkCamera *source)
Copy the ivars.
virtual vtkMatrix4x4 * GetModelViewTransformMatrix()
Return the model view matrix of model view transform.
void GetEyePosition(double eyePosition[3])
void OrthogonalizeViewUp()
Recompute the ViewUp vector to force it to be perpendicular to camera->focalpoint vector.
record modification and/or execution time
void SetDistance(double)
Move the focal point so that it is the specified distance from the camera position.
static vtkCamera * New()
Construct camera instance with its focal point at the origin, and position=(0,0,1).
vtkTimeStamp ViewingRaysMTime
void SetViewUp(const double a[3])
abstract base class for most VTK objects
void SetClippingRange(const double a[2])
void SetObliqueAngles(double alpha, double beta)
Get/Set the oblique viewing angles.
vtkPerspectiveTransform * Transform
void SetFocalPoint(double x, double y, double z)
Set/Get the focal of the camera in world coordinates.
vtkTypeBool UseOffAxisProjection
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
virtual vtkTransform * GetViewTransformObject()
For backward compatibility.
bool UseExplicitProjectionTransformMatrix
void ViewingRaysModified()
Mark that something has changed which requires the view rays to be recomputed.
#define VTK_SIZEHINT(...)
void SetParallelProjection(vtkTypeBool flag)
Set/Get the value of the ParallelProjection instance variable.
void ComputeCameraLightTransform()
void ComputeWorldToScreenMatrix()
Given screen screen top, bottom left and top right calculate screen rotation.
void SetEyePosition(double eyePosition[3])
Set/Get the eye position (center point between two eyes).
vtkMatrix4x4 * ExplicitProjectionTransformMatrix
void SetScissorRect(vtkRecti scissorRect)
Set/Get the vtkRect value of the scissor.
void ComputeModelViewMatrix()
Compute model view matrix for the camera.
void SetParallelScale(double scale)
Set/Get the scaling used for a parallel projection, i.e.
virtual vtkTransform * GetModelViewTransformObject()
Return the model view transform.
void SetUseHorizontalViewAngle(vtkTypeBool flag)
Set/Get the value of the UseHorizontalViewAngle instance variable.
void GetScissorRect(vtkRecti &scissorRect)
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
vtkMatrix4x4 * ModelTransformMatrix
void SetViewAngle(double angle)
Set/Get the camera view angle, which is the angular height of the camera view measured in degrees.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a virtual camera for 3D rendering
virtual void SetExplicitProjectionTransformMatrix(vtkMatrix4x4 *)
Set/get an explicit 4x4 projection matrix to use, rather than computing one from other state variable...
void SetPosition(const double a[3])
virtual void GetFrustumPlanes(double aspect, double planes[24])
Get the plane equations that bound the view frustum.
vtkTimeStamp WorldToScreenMatrixMTime
void SetPosition(double x, double y, double z)
Set/Get the position of the camera in world coordinates.
void ComputeCompositeProjectionTransform(double aspect, double nearz, double farz)
These methods should only be used within vtkCamera.cxx.
void SetEyeTransformMatrix(vtkMatrix4x4 *matrix)
Set/Get eye transformation matrix.
virtual void ComputeProjectionTransform(double aspect, double nearz, double farz)
These methods should only be used within vtkCamera.cxx.
void ShallowCopy(vtkCamera *source)
Copy the properties of ‘source’ into ‘this’.
void SetViewShear(double dxdz, double dydz, double center)
Set/get the shear transform of the viewing frustum.
void SetEyeTransformMatrix(const double elements[16])
Set the eye transform matrix.
void SetThickness(double)
Set the distance between clipping planes.
vtkHomogeneousTransform * UserTransform
void ComputeOffAxisProjectionFrustum()
Compute and use frustum using offaxis method.
void SetModelTransformMatrix(const double elements[16])
Set model transformation matrix.
abstract specification for renderers
void Zoom(double factor)
In perspective mode, decrease the view angle by the specified factor.
vtkPerspectiveTransform * ProjectionTransform
void SetRoll(double angle)
Set the roll angle of the camera about the direction of projection.
supports function callbacks
vtkTypeBool UseHorizontalViewAngle
void SetViewShear(double d[3])
void SetWindowCenter(double x, double y)
Set/Get the center of the window in viewport coordinates.
void SetClippingRange(double dNear, double dFar)
Set/Get the location of the near and far clipping planes along the direction of projection.
vtkCameraCallbackCommand * UserViewTransformCallbackCommand
void Roll(double angle)
Rotate the camera about the direction of projection.
void SetFocalPoint(const double a[3])
double * GetOrientation()
Get the orientation of the camera.
void ComputeDistance()
These methods should only be used within vtkCamera.cxx.
void Pitch(double angle)
Rotate the focal point about the cross product of the view up vector and the direction of projection,...
void Yaw(double angle)
Rotate the focal point about the view up vector, using the camera's position as the center of rotatio...
void Elevation(double angle)
Rotate the camera about the cross product of the negative of the direction of projection and the view...
void Dolly(double value)
Divide the camera's distance from the focal point by the given dolly value.
void SetViewUp(double vx, double vy, double vz)
Set/Get the view up direction for the camera.
void Azimuth(double angle)
Rotate the camera about the view up vector centered at the focal point.
vtkHomogeneousTransform * UserViewTransform
void ApplyTransform(vtkTransform *t)
Apply a transform to the camera.
void SetModelTransformMatrix(vtkMatrix4x4 *matrix)
Set/Get model transformation matrix.
vtkTransform * ModelViewTransform
vtkMatrix4x4 * EyeTransformMatrix
void GetEyePlaneNormal(double normal[3])
Get normal vector from eye to screen rotated by EyeTransformMatrix.
vtkTypeUInt32 vtkMTimeType
virtual void ComputeViewTransform()
vtkMatrix4x4 * WorldToScreenMatrix