FixedMatrixGetter Class Reference

Simple matrix getter for fixed matrix or matrix controlled by external code. More...

#include <FixedMatrixGetter.h>

Inheritance diagram for FixedMatrixGetter:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 FixedMatrixGetter ()
 FixedMatrixGetter (const osg::Vec3 &EyePos, const osg::Vec3 &Dir, const osg::Vec3 &Up)
 FixedMatrixGetter (const osg::Matrix &matrix)
void setByFrame (const osg::Vec3 &EyePos, osg::Vec3 Dir, osg::Vec3 Up)
 Sets the matrix by giving a coordinates frame.
void setByMatrix (const osg::Matrix &matrix)
void setByInverseMatrix (const osg::Matrix &matrix)
virtual osg::Matrix getMatrix () const
virtual osg::Matrix getInverseMatrix () const

Protected Attributes

osg::Matrix mat
osg::Matrix invMat


Detailed Description

Simple matrix getter for fixed matrix or matrix controlled by external code.

Contains a matrix and its inverse (for performance reasons).

Definition at line 35 of file FixedMatrixGetter.h.


Constructor & Destructor Documentation

FixedMatrixGetter::FixedMatrixGetter (  )  [inline]

Definition at line 37 of file FixedMatrixGetter.h.

References setByFrame().

FixedMatrixGetter::FixedMatrixGetter ( const osg::Vec3 &  EyePos,
const osg::Vec3 &  Dir,
const osg::Vec3 &  Up 
) [inline]

Definition at line 38 of file FixedMatrixGetter.h.

References setByFrame().

FixedMatrixGetter::FixedMatrixGetter ( const osg::Matrix &  matrix  )  [inline]

Definition at line 39 of file FixedMatrixGetter.h.

References setByMatrix().


Member Function Documentation

virtual osg::Matrix FixedMatrixGetter::getInverseMatrix (  )  const [inline, virtual]

Implements MatrixGetter.

Definition at line 59 of file FixedMatrixGetter.h.

References invMat.

virtual osg::Matrix FixedMatrixGetter::getMatrix (  )  const [inline, virtual]

Implements MatrixGetter.

Definition at line 58 of file FixedMatrixGetter.h.

References mat.

void FixedMatrixGetter::setByFrame ( const osg::Vec3 &  EyePos,
osg::Vec3  Dir,
osg::Vec3  Up 
) [inline]

Sets the matrix by giving a coordinates frame.

Vectors Dir and Up do not need to be normalized (they are in the method).

Definition at line 43 of file FixedMatrixGetter.h.

References setByInverseMatrix().

Referenced by FixedMatrixGetter().

void FixedMatrixGetter::setByInverseMatrix ( const osg::Matrix &  matrix  )  [inline, virtual]

Implements MatrixGetter.

Definition at line 53 of file FixedMatrixGetter.h.

References invMat, and mat.

Referenced by setByFrame().

void FixedMatrixGetter::setByMatrix ( const osg::Matrix &  matrix  )  [inline, virtual]

Implements MatrixGetter.

Definition at line 49 of file FixedMatrixGetter.h.

References invMat, and mat.

Referenced by FixedMatrixGetter().


Member Data Documentation

osg::Matrix FixedMatrixGetter::invMat [protected]

Definition at line 62 of file FixedMatrixGetter.h.

Referenced by getInverseMatrix(), setByInverseMatrix(), and setByMatrix().

osg::Matrix FixedMatrixGetter::mat [protected]

Definition at line 62 of file FixedMatrixGetter.h.

Referenced by getMatrix(), setByInverseMatrix(), and setByMatrix().


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

Generated on Sun Jan 17 11:39:28 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9