version 3.3

VRS::DOF Class Reference

#include <vrs/dof.h>

Inheritance diagram for VRS::DOF:

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

List of all members.

Public Member Functions

 DOF (const Vector &dof=Vector(0.0, 0.0, 1.0))
 Constructs a DOF transform by its direction.
void setDof (const Vector &dof)
 Sets the direction the z-axis should be transformed to.
Vector getDof () const
 Returns the direction the z-axis is transformed to.
virtual const Matrixmatrix (Engine *engine=NULL) const
 The matrix that corresponds to this transformation.
 VRS_TYPEINFO (DOF, Transform)
 VRS_SERIALIZABLE (DOF)

Static Public Member Functions

static Matrix transformation (const Vector &dof)


Detailed Description

Direction of Flight Transformation. The DOF transform transforms the current z axis so that it heads in the direction given by the DOF vector. See Foley et al., "Introduction to Computer Graphics", pp. 186-187. VRS_Assertion abs(dof)>0 .

Constructor & Destructor Documentation

VRS::DOF::DOF ( const Vector dof = Vector(0.0, 0.0, 1.0)  ) 

Constructs a DOF transform by its direction.


Member Function Documentation

void VRS::DOF::setDof ( const Vector dof  ) 

Sets the direction the z-axis should be transformed to.

The length of the given vector must not be zero.

Vector VRS::DOF::getDof (  )  const [inline]

Returns the direction the z-axis is transformed to.

virtual const Matrix& VRS::DOF::matrix ( Engine engine = NULL  )  const [virtual]

The matrix that corresponds to this transformation.

Implements VRS::Transform.

static Matrix VRS::DOF::transformation ( const Vector dof  )  [static]

VRS::DOF::VRS_TYPEINFO ( DOF  ,
Transform   
)

VRS::DOF::VRS_SERIALIZABLE ( DOF   ) 


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

Generated on Mon May 21 06:00:17 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact