version 3.3

VRS::Perspective Class Reference

Perspective View Transformation. More...

#include <vrs/perspective.h>

Inheritance diagram for VRS::Perspective:

VRS::Transform VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 Perspective (double fovy=45.0, double nearDistance=0.1, double farDistance=100)
void setFovy (double angle)
void setNear (double nearP)
void setFar (double farP)
double getFovy () const
double getNear () const
double getFar () const
virtual const Matrixmatrix (Engine *engine=0) const
 Returns the perspective matrix.
 VRS_TYPEINFO (Perspective, Transform)
 VRS_SERIALIZABLE (Perspective)


Detailed Description

Perspective View Transformation.

Constructor & Destructor Documentation

VRS::Perspective::Perspective ( double  fovy = 45.0,
double  nearDistance = 0.1,
double  farDistance = 100 
)

A perspective transformation creates a symmetric perspective-view frustum. The frustum is clipped by perpendicular planes specified by their distance to the center of projection (near and far distances). The field of view (fovy) specifies the angle of the view volume.


Member Function Documentation

void VRS::Perspective::setFovy ( double  angle  ) 

void VRS::Perspective::setNear ( double  nearP  ) 

void VRS::Perspective::setFar ( double  farP  ) 

double VRS::Perspective::getFovy (  )  const [inline]

double VRS::Perspective::getNear (  )  const [inline]

double VRS::Perspective::getFar (  )  const [inline]

The angle of view is defined by 'fovy'. It is specified in degrees. The 'near' and 'far' values are the distances between the viewpoint and the clipping planes, along the negative z-axis. They should be always positive. The distance is measured between starting from the observer's point.

virtual const Matrix& VRS::Perspective::matrix ( Engine engine = 0  )  const [virtual]

Returns the perspective matrix.

Implements VRS::Transform.

VRS::Perspective::VRS_TYPEINFO ( Perspective  ,
Transform   
)

VRS::Perspective::VRS_SERIALIZABLE ( Perspective   ) 


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

Generated on Tue May 22 06:00:26 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact