banner



What Is Focal Point In Camera Vtk

vtkCamera Class Reference

#include <vtkCamera.h>

Inheritance diagram for vtkCamera:

Inheritance graph
[legend]

Collaboration diagram for vtkCamera:

Collaboration graph
[legend]

List of all members.


Detailed Description

a virtual camera for 3D rendering

vtkCamera is a virtual photographic camera for 3D rendering. Information technology provides methods to position and orient the view point and focal point. Convenience methods for moving nigh the focal point besides are provided. More complex methods let the manipulation of the reckoner graphics model including view up vector, clipping planes, and photographic camera perspective.

See also:
vtkPerspectiveTransform
Created by:
  • Martin, Ken
CVS contributions (if > 5%):
  • Martin, Ken (47%)
  • Gobbi, David (26%)
  • Law, Charles (seven%)
  • Schroeder, Will (6%)
CVS logs (CVSweb):
  • .h (/Rendering/vtkCamera.h)
  • .cxx (/Rendering/vtkCamera.cxx)
Examples:
vtkCamera (Examples)
Tests:
vtkCamera (Tests)

Definition at line 58 of file vtkCamera.h.


Public Types

typedef vtkObject Superclass

Public Member Functions

void PrintSelf (ostream &os, vtkIndent indent)
virtual const char * GetClassName ()
virtual int IsA (const char *type)
void OrthogonalizeViewUp ()
void SetDistance (double)
void Dolly (double distance)
void Roll (double angle)
void Azimuth (double bending)
void Yaw (double bending)
void Tiptop (double bending)
void Pitch (double angle)
void Zoom (double factor)
void SetObliqueAngles (double alpha, double beta)
void ApplyTransform (vtkTransform *t)
virtual vtkMatrix4x4 * GetViewTransformMatrix ()
virtual void Render (vtkRenderer *)
unsigned long GetViewingRaysMTime ()
void ViewingRaysModified ()
virtual void GetFrustumPlanes (double attribute, double planes[24])
void ComputeViewPlaneNormal ()
vtkMatrix4x4 * GetCameraLightTransformMatrix ()
virtual void UpdateViewport (vtkRenderer *vtkNotUsed(ren))
virtual vtkTransform * GetViewTransformObject ()
void SetPosition (double x, double y, double z)
void SetPosition (const double a[3])
virtual double * GetPosition ()
virtual void GetPosition (double &, double &, double &)
virtual void GetPosition (double[3])
void SetFocalPoint (double x, double y, double z)
void SetFocalPoint (const double a[3])
virtual double * GetFocalPoint ()
virtual void GetFocalPoint (double &, double &, double &)
virtual void GetFocalPoint (double[3])
void SetViewUp (double vx, double vy, double vz)
void SetViewUp (const double a[3])
virtual double * GetViewUp ()
virtual void GetViewUp (double &, double &, double &)
virtual void GetViewUp (double[3])
virtual double GetDistance ()
virtual double * GetDirectionOfProjection ()
virtual void GetDirectionOfProjection (double &, double &, double &)
virtual void GetDirectionOfProjection (double[3])
void SetRoll (double angle)
double GetRoll ()
void SetParallelProjection (int flag)
virtual int GetParallelProjection ()
virtual void ParallelProjectionOn ()
virtual void ParallelProjectionOff ()
void SetUseHorizontalViewAngle (int flag)
virtual int GetUseHorizontalViewAngle ()
virtual void UseHorizontalViewAngleOn ()
virtual void UseHorizontalViewAngleOff ()
void SetViewAngle (double bending)
virtual double GetViewAngle ()
void SetParallelScale (double scale)
virtual double GetParallelScale ()
void SetClippingRange (double virtually, double far)
void SetClippingRange (const double a[ii])
virtual double * GetClippingRange ()
virtual void GetClippingRange (double &, double &)
virtual void GetClippingRange (double[ii])
void SetThickness (double)
virtual double GetThickness ()
void SetWindowCenter (double x, double y)
virtual double * GetWindowCenter ()
virtual void GetWindowCenter (double &, double &)
virtual void GetWindowCenter (double[2])
virtual double * GetViewPlaneNormal ()
virtual void GetViewPlaneNormal (double &, double &, double &)
virtual void GetViewPlaneNormal (double[3])
void SetViewShear (double dxdz, double dydz, double eye)
void SetViewShear (double d[3])
virtual double * GetViewShear ()
virtual void GetViewShear (double &, double &, double &)
virtual void GetViewShear (double[three])
virtual void SetEyeAngle (double)
virtual double GetEyeAngle ()
virtual void SetFocalDisk (double)
virtual double GetFocalDisk ()
virtual vtkMatrix4x4 * GetPerspectiveTransformMatrix (double aspect, double nearz, double farz)
virtual vtkMatrix4x4 * GetCompositePerspectiveTransformMatrix (double aspect, double nearz, double farz)
void SetUserTransform (vtkHomogeneousTransform *transform)
virtual vtkHomogeneousTransform * GetUserTransform ()
double * GetOrientation ()
double * GetOrientationWXYZ ()
void SetViewPlaneNormal (double ten, double y, double z)
void SetViewPlaneNormal (const double a[3])

Static Public Member Functions

int IsTypeOf (const char *type)
vtkCamera * SafeDownCast (vtkObject *o)
vtkCamera * New ()

Protected Fellow member Functions

vtkCamera ()
~vtkCamera ()
void ComputeDistance ()
void ComputeViewTransform ()
void ComputePerspectiveTransform (double aspect, double nearz, double farz)
void ComputeCompositePerspectiveTransform (double aspect, double nearz, double farz)
void ComputeCameraLightTransform ()

Protected Attributes

double WindowCenter [ii]
double ObliqueAngles [two]
double FocalPoint [3]
double Position [3]
double ViewUp [iii]
double ViewAngle
double ClippingRange [2]
double EyeAngle
int ParallelProjection
double ParallelScale
int Stereo
int LeftEye
double Thickness
double Distance
double DirectionOfProjection [three]
double ViewPlaneNormal [3]
double ViewShear [iii]
int UseHorizontalViewAngle
vtkHomogeneousTransform * UserTransform
vtkTransform * ViewTransform
vtkPerspectiveTransform * PerspectiveTransform
vtkPerspectiveTransform * Transform
vtkTransform * CameraLightTransform
double FocalDisk
vtkTimeStamp ViewingRaysMTime


Fellow member Typedef Documentation


Constructor & Destructor Documentation

vtkCamera::vtkCamera (  ) [protected]


Member Office Documentation

void vtkCamera::PrintSelf ( ostream & os,
vtkIndent indent
) [virtual]

Methods invoked by print to print information near the object including superclasses. Typically non called by the user (use Print() instead) but used in the hierarchical print procedure to combine the output of several classes.

Reimplemented from vtkObject.

Reimplemented in vtkMesaCamera, and vtkOpenGLCamera.

virtual const char* vtkCamera::GetClassName (  ) [virtual]

int vtkCamera::IsTypeOf ( const char * type  ) [static]

Return i if this class blazon is the same blazon of (or a subclass of) the named grade. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkMesaCamera, and vtkOpenGLCamera.

virtual int vtkCamera::IsA ( const char * blazon  ) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named course. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro institute in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkMesaCamera, and vtkOpenGLCamera.

Construct photographic camera case with its focal point at the origin, and position=(0,0,1). The view up is along the y-axis, view angle is 30 degrees, and the clipping range is (.1,1000).

Reimplemented from vtkObject.

Reimplemented in vtkMesaCamera, and vtkOpenGLCamera.

void vtkCamera::SetPosition ( double x,
double y,
double z
)

Set/Get the position of the camera in earth coordinates. The default position is (0,0,1).

void vtkCamera::SetPosition ( const double a[3]  ) [inline]

Set/Get the position of the photographic camera in world coordinates. The default position is (0,0,1).

Definition at line 73 of file vtkCamera.h.

virtual double* vtkCamera::GetPosition (  ) [virtual]

Ready/Get the position of the camera in world coordinates. The default position is (0,0,1).

virtual void vtkCamera::GetPosition ( double & ,
double & ,
double &
) [virtual]

Set up/Get the position of the camera in earth coordinates. The default position is (0,0,1).

virtual void vtkCamera::GetPosition ( double [3]  ) [virtual]

Gear up/Get the position of the photographic camera in world coordinates. The default position is (0,0,1).

void vtkCamera::SetFocalPoint ( double ten,
double y,
double z
)

Prepare/Go the focal of the photographic camera in world coordinates. The default focal bespeak is the origin.

void vtkCamera::SetFocalPoint ( const double a[three]  ) [inline]

Set/Get the focal of the camera in world coordinates. The default focal signal is the origin.

Definition at line 82 of file vtkCamera.h.

virtual double* vtkCamera::GetFocalPoint (  ) [virtual]

Fix/Get the focal of the camera in globe coordinates. The default focal betoken is the origin.

virtual void vtkCamera::GetFocalPoint ( double & ,
double & ,
double &
) [virtual]

Set/Get the focal of the camera in world coordinates. The default focal signal is the origin.

virtual void vtkCamera::GetFocalPoint ( double [3]  ) [virtual]

Prepare/Become the focal of the camera in earth coordinates. The default focal point is the origin.

void vtkCamera::SetViewUp ( double vx,
double vy,
double vz
)

Prepare/Become the view up direction for the camera. The default is (0,1,0).

void vtkCamera::SetViewUp ( const double a[3]  ) [inline]

Set/Become the view up direction for the camera. The default is (0,1,0).

Definition at line 91 of file vtkCamera.h.

virtual double* vtkCamera::GetViewUp (  ) [virtual]

Prepare/Become the view up direction for the camera. The default is (0,1,0).

virtual void vtkCamera::GetViewUp ( double & ,
double & ,
double &
) [virtual]

Set/Get the view up direction for the camera. The default is (0,1,0).

virtual void vtkCamera::GetViewUp ( double [3]  ) [virtual]

Set/Become the view up direction for the camera. The default is (0,ane,0).

void vtkCamera::OrthogonalizeViewUp (  )

Recompute the ViewUp vector to strength it to be perpendicular to photographic camera->focalpoint vector. Unless you are going to use Yaw or Azimuth on the photographic camera, in that location is no need to practise this.

void vtkCamera::SetDistance ( double  )

Motion the focal indicate so that information technology is the specified distance from the camera position. This altitude must exist positive.

virtual double vtkCamera::GetDistance (  ) [virtual]

Return the distance from the camera position to the focal point. This distance is positive.

virtual double* vtkCamera::GetDirectionOfProjection (  ) [virtual]

Get the vector in the direction from the camera position to the focal signal. This is unremarkably the opposite of the ViewPlaneNormal, the vector perpendicular to the screen, unless the view is oblique.

virtual void vtkCamera::GetDirectionOfProjection ( double & ,
double & ,
double &
) [virtual]

Get the vector in the direction from the photographic camera position to the focal point. This is ordinarily the contrary of the ViewPlaneNormal, the vector perpendicular to the screen, unless the view is oblique.

virtual void vtkCamera::GetDirectionOfProjection ( double [three]  ) [virtual]

Get the vector in the direction from the photographic camera position to the focal bespeak. This is unremarkably the opposite of the ViewPlaneNormal, the vector perpendicular to the screen, unless the view is oblique.

void vtkCamera::Dolly ( double distance  )

Movement the position of the camera along the direction of projection. Moving towards the focal signal (due east.g., greater than 1) is a dolly-in, moving away from the focal indicate (e.one thousand., less than 1) is a dolly-out.

void vtkCamera::SetRoll ( double angle  )

Prepare the roll bending of the camera about the direction of projection.

double vtkCamera::GetRoll (  )

Set the roll angle of the camera almost the management of project.

void vtkCamera::Roll ( double bending  )

Rotate the camera nigh the direction of project.

void vtkCamera::Azimuth ( double bending  )

Rotate the camera well-nigh the view upwards vector centered at the focal point. Annotation that the view up vector is not necessarily perpendicular to the direction of project.

void vtkCamera::Yaw ( double angle  )

Rotate the focal point well-nigh the view up vector centered at the camera'southward position. Note that the view up vector is not necessarily perpendicular to the direction of projection.

void vtkCamera::Elevation ( double bending  )

Rotate the photographic camera about the cross product of the direction of projection and the view up vector centered on the focal point.

void vtkCamera::Pitch ( double angle  )

Rotate the focal signal almost the cantankerous product of the view up vector and the management of projection, centered at the photographic camera's position.

void vtkCamera::SetParallelProjection ( int flag  )

Set/Get the value of the ParallelProjection case variable. This determines if the camera should do a perspective or parallel project.

virtual int vtkCamera::GetParallelProjection (  ) [virtual]

Ready/Get the value of the ParallelProjection case variable. This determines if the camera should exercise a perspective or parallel projection.

virtual void vtkCamera::ParallelProjectionOn (  ) [virtual]

Set/Become the value of the ParallelProjection case variable. This determines if the photographic camera should do a perspective or parallel projection.

virtual void vtkCamera::ParallelProjectionOff (  ) [virtual]

Set/Get the value of the ParallelProjection instance variable. This determines if the camera should practice a perspective or parallel projection.

void vtkCamera::SetUseHorizontalViewAngle ( int flag  )

Set/Get the value of the UseHorizontalViewAngle case variable. If set, the photographic camera's view angle represents a horizontal view angle, rather than the default vertical view angle. This is useful if the application uses a display device which whose specs signal a particular horizontal view bending, or if the application varies the window height just wants to keep the perspective transform unchanges.

virtual int vtkCamera::GetUseHorizontalViewAngle (  ) [virtual]

Set/Get the value of the UseHorizontalViewAngle instance variable. If set, the photographic camera'southward view angle represents a horizontal view bending, rather than the default vertical view angle. This is useful if the application uses a display device which whose specs bespeak a particular horizontal view bending, or if the application varies the window height but wants to keep the perspective transform unchanges.

virtual void vtkCamera::UseHorizontalViewAngleOn (  ) [virtual]

Set/Get the value of the UseHorizontalViewAngle instance variable. If set, the photographic camera's view bending represents a horizontal view angle, rather than the default vertical view angle. This is useful if the application uses a brandish device which whose specs indicate a item horizontal view angle, or if the awarding varies the window top but wants to proceed the perspective transform unchanges.

virtual void vtkCamera::UseHorizontalViewAngleOff (  ) [virtual]

Set/Go the value of the UseHorizontalViewAngle case variable. If fix, the camera's view angle represents a horizontal view angle, rather than the default vertical view angle. This is useful if the application uses a display device which whose specs indicate a particular horizontal view angle, or if the application varies the window top just wants to keep the perspective transform unchanges.

void vtkCamera::SetViewAngle ( double angle  )

Set/Become the photographic camera view angle, which is the angular height of the camera view measured in degrees. The default angle is 30 degrees. This method has no result in parallel projection mode. The formula for setting the bending up for perfect perspective viewing is: angle = 2*atan((h/two)/d) where h is the elevation of the RenderWindow (measured in mm by holding a ruler upwardly to your screen) and d is the distance from your eyes to the screen.

virtual double vtkCamera::GetViewAngle (  ) [virtual]

Set/Get the camera view angle, which is the angular height of the camera view measured in degrees. The default angle is xxx degrees. This method has no effect in parallel projection style. The formula for setting the angle up for perfect perspective viewing is: bending = 2*atan((h/2)/d) where h is the acme of the RenderWindow (measured in mm by property a ruler up to your screen) and d is the altitude from your eyes to the screen.

void vtkCamera::SetParallelScale ( double scale  )

Prepare/Go the scaling used for a parallel projection, i.e. the height of the viewport in world-coordinate distances. The default is one. Note that the "scale" parameter works as an "inverse scale" --- larger numbers produce smaller images. This method has no effect in perspective projection mode.

virtual double vtkCamera::GetParallelScale (  ) [virtual]

Set/Get the scaling used for a parallel projection, i.eastward. the tiptop of the viewport in world-coordinate distances. The default is i. Note that the "scale" parameter works equally an "inverse calibration" --- larger numbers produce smaller images. This method has no effect in perspective projection mode.

void vtkCamera::Zoom ( double gene  )

In perspective mode, decrease the view angle by the specified gene. In parallel mode, decrease the parallel scale past the specified cistron. A value greater than 1 is a zoom-in, a value less than 1 is a zoom-out.

void vtkCamera::SetClippingRange ( double near,
double far
)

Set/Get the location of the nearly and far clipping planes along the management of projection. Both of these values must be positive. How the clipping planes are gear up can have a large bear on on how well z-buffering works. In particular the front clipping plane can make a very large divergence. Setting information technology to 0.01 when it really could be 1.0 tin can have a big impact on your z-buffer resolution further away. The default clipping range is (0.i,1000).

void vtkCamera::SetClippingRange ( const double a[2]  ) [inline]

Set/Get the location of the most and far clipping planes along the direction of projection. Both of these values must be positive. How the clipping planes are prepare can have a big impact on how well z-buffering works. In particular the forepart clipping plane can brand a very big difference. Setting it to 0.01 when it actually could be 1.0 can have a big impact on your z-buffer resolution farther away. The default clipping range is (0.i,1000).

Definition at line 208 of file vtkCamera.h.

virtual double* vtkCamera::GetClippingRange (  ) [virtual]

Set/Go the location of the nigh and far clipping planes along the direction of project. Both of these values must exist positive. How the clipping planes are set tin can take a big affect on how well z-buffering works. In particular the front clipping plane can make a very big difference. Setting it to 0.01 when it really could be 1.0 can have a big impact on your z-buffer resolution farther away. The default clipping range is (0.1,m).

virtual void vtkCamera::GetClippingRange ( double & ,
double &
) [virtual]

Set up/Go the location of the well-nigh and far clipping planes forth the direction of projection. Both of these values must be positive. How the clipping planes are set tin can have a large impact on how well z-buffering works. In particular the front clipping airplane can make a very big difference. Setting it to 0.01 when it really could exist i.0 can have a large impact on your z-buffer resolution further away. The default clipping range is (0.ane,yard).

virtual void vtkCamera::GetClippingRange ( double [2]  ) [virtual]

Set up/Become the location of the nearly and far clipping planes along the direction of projection. Both of these values must be positive. How the clipping planes are set can have a big touch on how well z-buffering works. In detail the front clipping plane can make a very large difference. Setting it to 0.01 when it really could be 1.0 can have a big impact on your z-buffer resolution farther away. The default clipping range is (0.1,1000).

void vtkCamera::SetThickness ( double  )

Set the distance between clipping planes. This method adjusts the far clipping plane to be set a distance 'thickness' beyond the near clipping aeroplane.

virtual double vtkCamera::GetThickness (  ) [virtual]

Ready the altitude between clipping planes. This method adjusts the far clipping plane to exist set a distance 'thickness' beyond the virtually clipping plane.

void vtkCamera::SetWindowCenter ( double ten,
double y
)

Set/Become the center of the window in viewport coordinates. The viewport coordinate range is ([-1,+i],[-one,+1]). This method is for if you lot have i window which consists of several viewports, or if you have several screens which you want to act together equally i large screen.

virtual double* vtkCamera::GetWindowCenter (  ) [virtual]

Set/Become the center of the window in viewport coordinates. The viewport coordinate range is ([-ane,+one],[-i,+1]). This method is for if you have i window which consists of several viewports, or if you lot have several screens which you want to human action together every bit 1 big screen.

virtual void vtkCamera::GetWindowCenter ( double & ,
double &
) [virtual]

Set/Become the center of the window in viewport coordinates. The viewport coordinate range is ([-1,+ane],[-ane,+1]). This method is for if you have one window which consists of several viewports, or if you take several screens which you desire to act together equally one large screen.

virtual void vtkCamera::GetWindowCenter ( double [2]  ) [virtual]

Set/Go the center of the window in viewport coordinates. The viewport coordinate range is ([-i,+1],[-1,+one]). This method is for if you have i window which consists of several viewports, or if you take several screens which you want to human activity together equally one big screen.

void vtkCamera::SetObliqueAngles ( double alpha,
double beta
)

Get/Set the oblique viewing angles. The offset angle, alpha, is the bending (measured from the horizontal) that rays along the direction of projection will follow once projected onto the 2d screen. The 2d angle, beta, is the bending between the view plane and the direction of projection. This creates a shear transform x' = 10 + dz*cos(alpha)/tan(beta), y' = dz*sin(alpha)/tan(beta) where dz is the distance of the point from the focal plane. The angles are (45,90) by default. Oblique projections unremarkably employ (30,63.435).

Apply a transform to the photographic camera. The photographic camera position, focal-indicate, and view-upwardly are re-calulated using the transform's matrix to multiply the onetime points by the new transform.

virtual double* vtkCamera::GetViewPlaneNormal (  ) [virtual]

Become the ViewPlaneNormal. This vector will bespeak opposite to the management of projection, unless yous accept created an sheared output view using SetViewShear/SetObliqueAngles.

virtual void vtkCamera::GetViewPlaneNormal ( double & ,
double & ,
double &
) [virtual]

Become the ViewPlaneNormal. This vector volition signal opposite to the direction of projection, unless you have created an sheared output view using SetViewShear/SetObliqueAngles.

virtual void vtkCamera::GetViewPlaneNormal ( double [three]  ) [virtual]

Get the ViewPlaneNormal. This vector will point reverse to the direction of projection, unless y'all have created an sheared output view using SetViewShear/SetObliqueAngles.

void vtkCamera::SetViewShear ( double dxdz,
double dydz,
double heart
)

Set/get the shear transform of the viewing frustum. Parameters are dx/dz, dy/dz, and middle. middle is a factor that describes where to shear around. The distance dshear from the photographic camera where no shear occurs is given past (dshear = centre * FocalDistance).

void vtkCamera::SetViewShear ( double d[3]  )

Set/get the shear transform of the viewing frustum. Parameters are dx/dz, dy/dz, and eye. center is a factor that describes where to shear around. The distance dshear from the photographic camera where no shear occurs is given by (dshear = heart * FocalDistance).

virtual double* vtkCamera::GetViewShear (  ) [virtual]

Set/get the shear transform of the viewing frustum. Parameters are dx/dz, dy/dz, and center. center is a factor that describes where to shear around. The altitude dshear from the camera where no shear occurs is given by (dshear = center * FocalDistance).

virtual void vtkCamera::GetViewShear ( double & ,
double & ,
double &
) [virtual]

Prepare/go the shear transform of the viewing frustum. Parameters are dx/dz, dy/dz, and centre. center is a factor that describes where to shear around. The altitude dshear from the camera where no shear occurs is given by (dshear = heart * FocalDistance).

virtual void vtkCamera::GetViewShear ( double [3]  ) [virtual]

Set/get the shear transform of the viewing frustum. Parameters are dx/dz, dy/dz, and center. center is a factor that describes where to shear around. The distance dshear from the camera where no shear occurs is given by (dshear = center * FocalDistance).

virtual void vtkCamera::SetEyeAngle ( double  ) [virtual]

Ready/Get the separation betwixt eyes (in degrees). This is used when generating stereo images.

virtual double vtkCamera::GetEyeAngle (  ) [virtual]

Set/Become the separation between eyes (in degrees). This is used when generating stereo images.

virtual void vtkCamera::SetFocalDisk ( double  ) [virtual]

Set the size of the cameras lens in world coordinates. This is only used when the renderer is doing focal depth rendering. When that is being done the size of the focal disk will effect how significant the depth effects will be.

virtual double vtkCamera::GetFocalDisk (  ) [virtual]

Set the size of the cameras lens in earth coordinates. This is merely used when the renderer is doing focal depth rendering. When that is beingness done the size of the focal disk volition effect how pregnant the depth effects volition be.

virtual vtkMatrix4x4* vtkCamera::GetViewTransformMatrix (  ) [virtual]

Return the matrix of the view transform.

virtual vtkMatrix4x4* vtkCamera::GetPerspectiveTransformMatrix ( double aspect,
double nearz,
double farz
) [virtual]

Return the perspective transform matrix, which converts from camera coordinates to viewport coordinates. The 'attribute' is the width/height for the viewport, and the nearz and farz are the Z-buffer values that map to the near and far clipping planes. The viewport coordinates are in the range ([-1,+1],[-1,+1],[nearz,farz]).

virtual vtkMatrix4x4* vtkCamera::GetCompositePerspectiveTransformMatrix ( double aspect,
double nearz,
double farz
) [virtual]

Return the concatenation of the ViewTransform and the PerspectiveTransform. This transform volition convert globe coordinates to viewport coordinates. The 'attribute' is the width/elevation for the viewport, and the nearz and farz are the Z-buffer values that map to the most and far clipping planes. The viewport coordinates are in the range ([-1,+1],[-1,+1],[nearz,farz]).

In addition to the instance variables such as position and orientation, y'all can add an boosted transformation for your ain utilise. This transformation is concatenated to the camera'south PerspectiveTransform

In addition to the instance variables such as position and orientation, you can add an additional transformation for your own use. This transformation is concatenated to the camera's PerspectiveTransform

virtual void vtkCamera::Render ( vtkRenderer *  ) [inline, virtual]

This method causes the camera to fix whatever is required for viewing the scene. This is actually handled past an subclass of vtkCamera, which is created through New()

Reimplemented in vtkMesaCamera, and vtkOpenGLCamera.

Definition at line 317 of file vtkCamera.h.

unsigned long vtkCamera::GetViewingRaysMTime (  )

Render the MTime that concerns recomputing the view rays of the camera.

void vtkCamera::ViewingRaysModified (  )

Mark that something has changed which requires the view rays to be recomputed.

virtual void vtkCamera::GetFrustumPlanes ( double aspect,
double planes[24]
) [virtual]

Get the aeroplane equations that spring the view frustum. The plane normals betoken inward. The planes assortment contains six aeroplane equations of the form (Ax+By+Cz+D=0), the commencement four values are (A,B,C,D) which repeats for each of the planes. The aspect of the viewport is needed to correctly compute the planes

double* vtkCamera::GetOrientation (  )

Get the orientation of the photographic camera.

double* vtkCamera::GetOrientationWXYZ (  )

Get the orientation of the camera.

void vtkCamera::SetViewPlaneNormal ( double x,
double y,
double z
)

These methods have been deprecated. The view plane normal is automatically set from the DirectionOfProjection according to the ViewShear.

void vtkCamera::SetViewPlaneNormal ( const double a[3]  ) [inline]

These methods have been deprecated. The view plane normal is automatically set from the DirectionOfProjection according to the ViewShear.

Definition at line 345 of file vtkCamera.h.

void vtkCamera::ComputeViewPlaneNormal (  )

This method is chosen automatically whenever necessary, it should never exist used outside of vtkCamera.cxx.

vtkMatrix4x4* vtkCamera::GetCameraLightTransformMatrix (  )

Returns a transformation matrix for a coordinate frame attached to the camera, where the camera is located at (0, 0, i) looking at the focal point at (0, 0, 0), with up being (0, 1, 0).

virtual void vtkCamera::UpdateViewport ( vtkRenderer * vtkNotUsed(ren)  ) [inline, virtual]

virtual vtkTransform* vtkCamera::GetViewTransformObject (  ) [inline, virtual]

void vtkCamera::ComputeDistance (  ) [protected]

These methods should but be used within vtkCamera.cxx.

void vtkCamera::ComputeViewTransform (  ) [protected]

These methods should only exist used within vtkCamera.cxx.

void vtkCamera::ComputePerspectiveTransform ( double attribute,
double nearz,
double farz
) [protected]

These methods should only exist used within vtkCamera.cxx.

void vtkCamera::ComputeCompositePerspectiveTransform ( double aspect,
double nearz,
double farz
) [protected]

These methods should only be used within vtkCamera.cxx.

void vtkCamera::ComputeCameraLightTransform (  ) [protected]

These methods should only exist used inside vtkCamera.cxx.


Fellow member Data Documentation


The documentation for this grade was generated from the following file:

  • dox/Rendering/vtkCamera.h

Source: http://davis.lbl.gov/Manuals/VTK-4.5/classvtkCamera.html

Posted by: freyfacharnmethe.blogspot.com

0 Response to "What Is Focal Point In Camera Vtk"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel