Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::MatrixTransform Class Reference

MatrixTransform - is a subclass of Transform which has an osg::Matrix which represent a 4x4 transformation of its children from local cordinates into the Transform's parent coordinates. More...

Inheritance diagram for osg::MatrixTransform:

Inheritance graph
[legend]
List of all members.

Public Methods

 MatrixTransform ()
 MatrixTransform (const MatrixTransform &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.

 MatrixTransform (const Matrix &matix)
 META_Node (osg, MatrixTransform)
void setMatrix (const Matrix &mat)
 Set the transform's matrix.

const MatrixgetMatrix () const
 Get the matrix.

void preMult (const Matrix &mat)
 pre multiply the transforms matrix.

void postMult (const Matrix &mat)
 post multiply the transforms matrix.

const MatrixgetInverseMatrix () const
 Get the inverse matrix.

virtual const bool computeLocalToWorldMatrix (Matrix &matrix, NodeVisitor *) const
virtual const bool computeWorldToLocalMatrix (Matrix &matrix, NodeVisitor *) const

Protected Methods

virtual ~MatrixTransform ()

Protected Attributes

ref_ptr< Matrix_matrix
ref_ptr< Matrix_inverse
bool _inverseDirty

Detailed Description

MatrixTransform - is a subclass of Transform which has an osg::Matrix which represent a 4x4 transformation of its children from local cordinates into the Transform's parent coordinates.


Constructor & Destructor Documentation

osg::MatrixTransform::MatrixTransform  
 

osg::MatrixTransform::MatrixTransform const MatrixTransform &   ,
const CopyOp   copyop = CopyOp::SHALLOW_COPY
 

Copy constructor using CopyOp to manage deep vs shallow copy.

osg::MatrixTransform::MatrixTransform const Matrix   matix
 

virtual osg::MatrixTransform::~MatrixTransform   [protected, virtual]
 


Member Function Documentation

virtual const bool osg::MatrixTransform::computeLocalToWorldMatrix Matrix   matrix,
NodeVisitor  
const [inline, virtual]
 

Reimplemented from osg::Transform.

virtual const bool osg::MatrixTransform::computeWorldToLocalMatrix Matrix   matrix,
NodeVisitor  
const [inline, virtual]
 

Reimplemented from osg::Transform.

const Matrix& osg::MatrixTransform::getInverseMatrix   const [inline]
 

Get the inverse matrix.

const Matrix& osg::MatrixTransform::getMatrix   const [inline]
 

Get the matrix.

osg::MatrixTransform::META_Node osg   ,
MatrixTransform   
 

void osg::MatrixTransform::postMult const Matrix   mat [inline]
 

post multiply the transforms matrix.

void osg::MatrixTransform::preMult const Matrix   mat [inline]
 

pre multiply the transforms matrix.

void osg::MatrixTransform::setMatrix const Matrix   mat [inline]
 

Set the transform's matrix.


Member Data Documentation

ref_ptr<Matrix> osg::MatrixTransform::_inverse [protected]
 

bool osg::MatrixTransform::_inverseDirty [protected]
 

ref_ptr<Matrix> osg::MatrixTransform::_matrix [protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:33 2002 for the Open Scene Graph by doxygen 1.2.16.