149 #include "vtkRenderingCoreModule.h"
151 VTK_ABI_NAMESPACE_BEGIN
159 class vtkCameraCallbackCommand;
191 vtkGetVector3Macro(FocalPoint,
double);
201 vtkGetVector3Macro(ViewUp,
double);
222 vtkGetMacro(Distance,
double);
231 vtkGetVector3Macro(DirectionOfProjection,
double);
329 vtkGetMacro(ViewAngle,
double);
343 vtkGetMacro(ParallelScale,
double);
371 vtkGetVector2Macro(ClippingRange,
double);
383 vtkGetMacro(Thickness,
double);
397 vtkGetVector2Macro(WindowCenter,
double);
428 vtkGetVector3Macro(ViewPlaneNormal,
double);
442 vtkGetVector3Macro(ViewShear,
double);
450 vtkSetMacro(EyeAngle,
double);
451 vtkGetMacro(EyeAngle,
double);
461 vtkSetMacro(FocalDisk,
double);
462 vtkGetMacro(FocalDisk,
double);
474 vtkSetMacro(FocalDistance,
double);
475 vtkGetMacro(FocalDistance,
double);
507 vtkSetVector3Macro(ScreenBottomLeft,
double);
508 vtkGetVector3Macro(ScreenBottomLeft,
double);
517 vtkSetVector3Macro(ScreenBottomRight,
double);
518 vtkGetVector3Macro(ScreenBottomRight,
double);
527 vtkSetVector3Macro(ScreenTopRight,
double);
528 vtkGetVector3Macro(ScreenTopRight,
double);
537 vtkSetMacro(EyeSeparation,
double);
538 vtkGetMacro(EyeSeparation,
double);
639 vtkSetMacro(UseExplicitProjectionTransformMatrix,
bool);
640 vtkGetMacro(UseExplicitProjectionTransformMatrix,
bool);
641 vtkBooleanMacro(UseExplicitProjectionTransformMatrix,
bool);
649 vtkSetMacro(ExplicitAspectRatio,
double);
650 vtkGetMacro(ExplicitAspectRatio,
double);
659 vtkSetMacro(UseExplicitAspectRatio,
bool);
660 vtkGetMacro(UseExplicitAspectRatio,
bool);
661 vtkBooleanMacro(UseExplicitAspectRatio,
bool);
687 double aspect,
double nearz,
double farz);
701 double aspect,
double nearz,
double farz);
774 vtkGetVector3Macro(FocalPointShift,
double);
775 vtkGetMacro(FocalPointScale,
double);
776 vtkGetVector3Macro(NearPlaneShift,
double);
777 vtkGetMacro(NearPlaneScale,
double);
778 vtkSetMacro(ShiftScaleThreshold,
double);
779 vtkGetMacro(ShiftScaleThreshold,
double);
794 void ComputeViewPlaneNormal();
812 vtkGetMacro(Stereo,
int);
819 vtkSetMacro(LeftEye,
int);
820 vtkGetMacro(LeftEye,
int);
845 vtkSetMacro(FreezeFocalPoint,
bool);
846 vtkGetMacro(FreezeFocalPoint,
bool);
853 vtkSetMacro(UseScissor,
bool);
854 vtkGetMacro(UseScissor,
bool);
921 double WindowCenter[2];
922 double ObliqueAngles[2];
923 double FocalPoint[3];
927 double ClippingRange[2];
935 double DirectionOfProjection[3];
936 double ViewPlaneNormal[3];
942 double ScreenBottomLeft[3];
943 double ScreenBottomRight[3];
944 double ScreenTopRight[3];
945 double ScreenCenter[3];
974 double FocalPointShift[3];
976 double NearPlaneShift[3];
981 friend class vtkCameraCallbackCommand;
997 void operator=(
const vtkCamera&) =
delete;
1000 VTK_ABI_NAMESPACE_END
supports function callbacks
a virtual camera for 3D rendering
bool UseExplicitProjectionTransformMatrix
void ComputeOffAxisProjectionFrustum()
Compute and use frustum using offaxis method.
vtkInformation * Information
virtual void SetInformation(vtkInformation *)
Set/Get the information object associated with this camera.
vtkMatrix4x4 * EyeTransformMatrix
void Roll(double angle)
Rotate the camera about the direction of projection.
vtkTypeBool ParallelProjection
void ApplyTransform(vtkTransform *t)
Apply a transform to the camera.
void SetModelTransformMatrix(vtkMatrix4x4 *matrix)
Set/Get model transformation matrix.
double GetRoll()
Set the roll angle of the camera about the direction of projection.
vtkPerspectiveTransform * Transform
void ComputeCameraLightTransform()
void SetViewUp(const double a[3])
Set/Get the view up direction for the camera.
vtkTransform * ViewTransform
void SetUserTransform(vtkHomogeneousTransform *transform)
In addition to the instance variables such as position and orientation, you can add an additional tra...
virtual void ComputeViewTransform()
These methods should only be used within vtkCamera.cxx.
void SetEyePosition(double eyePosition[3])
Set/Get the eye position (center point between two eyes).
void SetPosition(const double a[3])
Set/Get the position of the camera in world coordinates.
virtual vtkMatrix4x4 * GetViewTransformMatrix()
For backward compatibility.
void Yaw(double angle)
Rotate the focal point about the view up vector, using the camera's position as the center of rotatio...
void SetRoll(double angle)
Set the roll angle of the camera about the direction of projection.
void PartialCopy(vtkCamera *source)
Copy the ivars.
void Elevation(double angle)
Rotate the camera about the cross product of the negative of the direction of projection and the view...
void Azimuth(double angle)
Rotate the camera about the view up vector centered at the focal point.
vtkHomogeneousTransform * UserTransform
void DeepCopy(vtkCamera *source)
Copy the properties of ‘source’ into ‘this’.
virtual vtkMatrix4x4 * GetProjectionTransformMatrix(double aspect, double nearz, double farz)
Return the projection transform matrix, which converts from camera coordinates to viewport coordinate...
void Pitch(double angle)
Rotate the focal point about the cross product of the view up vector and the direction of projection,...
vtkTypeBool UseOffAxisProjection
vtkMatrix4x4 * ExplicitProjectionTransformMatrix
void SetObliqueAngles(double alpha, double beta)
Get/Set the oblique viewing angles.
void SetParallelProjection(vtkTypeBool flag)
Set/Get the value of the ParallelProjection instance variable.
void ComputeModelViewMatrix()
Compute model view matrix for the camera.
virtual void GetFrustumPlanes(double aspect, double planes[24])
Get the plane equations that bound the view frustum.
void Zoom(double factor)
In perspective mode, decrease the view angle by the specified factor.
void SetPosition(double x, double y, double z)
Set/Get the position of the camera in world coordinates.
void SetViewUp(double vx, double vy, double vz)
Set/Get the view up direction for the camera.
vtkMatrix4x4 * ProjectionPlaneOrientationMatrix
double * GetOrientation()
Get the orientation of the camera.
vtkMatrix4x4 * ModelTransformMatrix
void ShallowCopy(vtkCamera *source)
Copy the properties of ‘source’ into ‘this’.
static vtkCamera * New()
Construct camera instance with its focal point at the origin, and position=(0,0,1).
bool UseExplicitAspectRatio
void SetModelTransformMatrix(const double elements[16])
Set model transformation matrix.
void SetClippingRange(double dNear, double dFar)
Set/Get the location of the near and far clipping planes along the direction of projection.
void SetThickness(double)
Set the distance between clipping planes.
void GetScissorRect(vtkRecti &scissorRect)
Set/Get the vtkRect value of the scissor.
virtual void Render(vtkRenderer *)
This method causes the camera to set up whatever is required for viewing the scene.
void ViewingRaysModified()
Mark that something has changed which requires the view rays to be recomputed.
void SetFocalPoint(const double a[3])
Set/Get the focal of the camera in world coordinates.
void SetEyeTransformMatrix(vtkMatrix4x4 *matrix)
Set/Get eye transformation matrix.
void GetEyePosition(double eyePosition[3])
Set/Get the eye position (center point between two eyes).
void SetDistance(double)
Move the focal point so that it is the specified distance from the camera position.
virtual vtkTransform * GetModelViewTransformObject()
Return the model view transform.
void SetWindowCenter(double x, double y)
Set/Get the center of the window in viewport coordinates.
void SetEyeTransformMatrix(const double elements[16])
Set the eye transform matrix.
void SetScissorRect(vtkRecti scissorRect)
Set/Get the vtkRect value of the scissor.
virtual vtkMatrix4x4 * GetProjectionTransformMatrix(vtkRenderer *ren)
Return the projection transform matrix, which converts from camera coordinates to viewport coordinate...
void ComputeCompositeProjectionTransform(double aspect, double nearz, double farz)
These methods should only be used within vtkCamera.cxx.
virtual vtkMatrix4x4 * GetModelViewTransformMatrix()
Return the model view matrix of model view transform.
vtkTransform * CameraLightTransform
void SetViewAngle(double angle)
Set/Get the camera view angle, which is the angular height of the camera view measured in degrees.
void GetEyePlaneNormal(double normal[3])
Get normal vector from eye to screen rotated by EyeTransformMatrix.
vtkTypeBool UseHorizontalViewAngle
void OrthogonalizeViewUp()
Recompute the ViewUp vector to force it to be perpendicular to camera->focalpoint vector.
void Dolly(double value)
Divide the camera's distance from the focal point by the given dolly value.
virtual void SetExplicitProjectionTransformMatrix(vtkMatrix4x4 *)
Set/get an explicit 4x4 projection matrix to use, rather than computing one from other state variable...
vtkMTimeType GetViewingRaysMTime()
Return the MTime that concerns recomputing the view rays of the camera.
void SetFocalPoint(double x, double y, double z)
Set/Get the focal of the camera in world coordinates.
void SetUseHorizontalViewAngle(vtkTypeBool flag)
Set/Get the value of the UseHorizontalViewAngle instance variable.
virtual vtkMatrix4x4 * GetCompositeProjectionTransformMatrix(double aspect, double nearz, double farz)
Return the concatenation of the ViewTransform and the ProjectionTransform.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetParallelScale(double scale)
Set/Get the scaling used for a parallel projection, i.e.
void SetViewShear(double d[3])
Set/get the shear transform of the viewing frustum.
void ComputeScreenOrientationMatrix()
Given screen screen top, bottom left and top right calculate screen orientation.
vtkHomogeneousTransform * UserViewTransform
vtkPerspectiveTransform * ProjectionTransform
vtkCameraCallbackCommand * UserViewTransformCallbackCommand
double ShiftScaleThreshold
virtual void ComputeProjectionTransform(double aspect, double nearz, double farz)
These methods should only be used within vtkCamera.cxx.
void SetUserViewTransform(vtkHomogeneousTransform *transform)
In addition to the instance variables such as position and orientation, you can add an additional tra...
void ComputeDistance()
These methods should only be used within vtkCamera.cxx.
double GetOffAxisClippingAdjustment()
Get adjustment to clipping thickness, computed by camera based on the physical size of the screen and...
virtual vtkTransform * GetViewTransformObject()
For backward compatibility.
void SetViewShear(double dxdz, double dydz, double center)
Set/get the shear transform of the viewing frustum.
virtual void UpdateIdealShiftScale(double aspect)
The following methods are used to support view dependent methods for normalizing data (typically poin...
virtual vtkPerspectiveTransform * GetProjectionTransformObject(double aspect, double nearz, double farz)
Return the projection transform matrix, which converts from camera coordinates to viewport coordinate...
vtkTransform * ModelViewTransform
double OffAxisClippingAdjustment
void SetClippingRange(const double a[2])
Set/Get the location of the near and far clipping planes along the direction of projection.
vtkTimeStamp ViewingRaysMTime
double ExplicitAspectRatio
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
abstract base class for most VTK objects
abstract specification for renderers
record modification and/or execution time
struct Position_t Position
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkTypeUInt32 vtkMTimeType
#define VTK_SIZEHINT(...)