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

osg::DOFTransform Class Reference

DOFTransform - encapsulates Multigen DOF behavior. More...

Inheritance diagram for osg::DOFTransform:

Inheritance graph
[legend]
List of all members.

Public Methods

 DOFTransform ()
 constructor

 DOFTransform (const DOFTransform &dof, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 copy constructor

 META_Node (osg, DOFTransform)
virtual void traverse (NodeVisitor &nv)
 Traverse downwards : calls children's accept method with NodeVisitor.

void setMinHPR (const Vec3 &hpr)
const Vec3 & getMinHPR () const
void setMaxHPR (const Vec3 &hpr)
const Vec3 & getMaxHPR () const
void setIncrementHPR (const Vec3 &hpr)
const Vec3 & getIncrementHPR () const
void setCurrentHPR (const Vec3 &hpr)
const Vec3 & getCurrentHPR () const
void updateCurrentHPR (const Vec3 &hpr)
void setMinTranslate (const Vec3 &translate)
const Vec3 & getMinTranslate () const
void setMaxTranslate (const Vec3 &translate)
const Vec3 & getMaxTranslate () const
void setIncrementTranslate (const Vec3 &translate)
const Vec3 & getIncrementTranslate () const
void setCurrentTranslate (const Vec3 &translate)
const Vec3 & getCurrentTranslate () const
void updateCurrentTranslate (const Vec3 &translate)
void setMinScale (const Vec3 &scale)
const Vec3 & getMinScale () const
void setMaxScale (const Vec3 &scale)
const Vec3 & getMaxScale () const
void setIncrementScale (const Vec3 &scale)
const Vec3 & getIncrementScale () const
void setCurrentScale (const Vec3 &scale)
const Vec3 & getCurrentScale () const
void updateCurrentScale (const Vec3 &scale)
void setPutMatrix (const Matrix &put)
const Matrix & getPutMatrix () const
void setInversePutMatrix (const Matrix &inversePut)
const Matrix & getInversePutMatrix () const
void setLimitationFlags (unsigned long flags)
unsigned long getLimitationFlags () const
void setAnimationOn (bool do_animate)
bool getAnimationOn () const
void animate ()
virtual const bool computeLocalToWorldMatrix (Matrix &matrix, NodeVisitor *nv) const
virtual const bool computeWorldToLocalMatrix (Matrix &matrix, NodeVisitor *nv) const

Protected Methods

virtual ~DOFTransform ()

Protected Attributes

Vec3 _minHPR
Vec3 _maxHPR
Vec3 _currentHPR
Vec3 _incrementHPR
Vec3 _minTranslate
Vec3 _maxTranslate
Vec3 _currentTranslate
Vec3 _incrementTranslate
Vec3 _minScale
Vec3 _maxScale
Vec3 _currentScale
Vec3 _incrementScale
Matrix _Put
Matrix _inversePut
unsigned long _limitationFlags
bool _animationOn
unsigned short _increasingFlags
 flags indicating whether value is incerasing or decreasing in animation bits form right to left, 1 means increasing while 0 is decreasing 0 = x translation 1 = y translation 2 = z translation 3 = pitch 4 = roll 5 = yaw 6 = x scale 7 = y scale 8 = z scale


Detailed Description

DOFTransform - encapsulates Multigen DOF behavior.


Constructor & Destructor Documentation

osg::DOFTransform::DOFTransform (    ) 
 

constructor

osg::DOFTransform::DOFTransform (  const DOFTransform &    dof,
const CopyOp &    copyop = CopyOp::SHALLOW_COPY
)  [inline]
 

copy constructor

virtual osg::DOFTransform::~DOFTransform (    )  [inline, protected, virtual]
 


Member Function Documentation

void osg::DOFTransform::animate (    ) 
 

virtual const bool osg::DOFTransform::computeLocalToWorldMatrix (  Matrix &    matrix,
NodeVisitor *    nv
)  const [virtual]
 

Reimplemented from osg::Transform.

virtual const bool osg::DOFTransform::computeWorldToLocalMatrix (  Matrix &    matrix,
NodeVisitor *    nv
)  const [virtual]
 

Reimplemented from osg::Transform.

bool osg::DOFTransform::getAnimationOn (    )  const [inline]
 

const Vec3& osg::DOFTransform::getCurrentHPR (    )  const [inline]
 

const Vec3& osg::DOFTransform::getCurrentScale (    )  const [inline]
 

const Vec3& osg::DOFTransform::getCurrentTranslate (    )  const [inline]
 

const Vec3& osg::DOFTransform::getIncrementHPR (    )  const [inline]
 

const Vec3& osg::DOFTransform::getIncrementScale (    )  const [inline]
 

const Vec3& osg::DOFTransform::getIncrementTranslate (    )  const [inline]
 

const Matrix& osg::DOFTransform::getInversePutMatrix (    )  const [inline]
 

unsigned long osg::DOFTransform::getLimitationFlags (    )  const [inline]
 

const Vec3& osg::DOFTransform::getMaxHPR (    )  const [inline]
 

const Vec3& osg::DOFTransform::getMaxScale (    )  const [inline]
 

const Vec3& osg::DOFTransform::getMaxTranslate (    )  const [inline]
 

const Vec3& osg::DOFTransform::getMinHPR (    )  const [inline]
 

const Vec3& osg::DOFTransform::getMinScale (    )  const [inline]
 

const Vec3& osg::DOFTransform::getMinTranslate (    )  const [inline]
 

const Matrix& osg::DOFTransform::getPutMatrix (    )  const [inline]
 

osg::DOFTransform::META_Node (  osg   ,
DOFTransform   
) 
 

void osg::DOFTransform::setAnimationOn (  bool    do_animate )  [inline]
 

void osg::DOFTransform::setCurrentHPR (  const Vec3 &    hpr )  [inline]
 

void osg::DOFTransform::setCurrentScale (  const Vec3 &    scale )  [inline]
 

void osg::DOFTransform::setCurrentTranslate (  const Vec3 &    translate )  [inline]
 

void osg::DOFTransform::setIncrementHPR (  const Vec3 &    hpr )  [inline]
 

void osg::DOFTransform::setIncrementScale (  const Vec3 &    scale )  [inline]
 

void osg::DOFTransform::setIncrementTranslate (  const Vec3 &    translate )  [inline]
 

void osg::DOFTransform::setInversePutMatrix (  const Matrix &    inversePut )  [inline]
 

void osg::DOFTransform::setLimitationFlags (  unsigned long    flags )  [inline]
 

void osg::DOFTransform::setMaxHPR (  const Vec3 &    hpr )  [inline]
 

void osg::DOFTransform::setMaxScale (  const Vec3 &    scale )  [inline]
 

void osg::DOFTransform::setMaxTranslate (  const Vec3 &    translate )  [inline]
 

void osg::DOFTransform::setMinHPR (  const Vec3 &    hpr )  [inline]
 

void osg::DOFTransform::setMinScale (  const Vec3 &    scale )  [inline]
 

void osg::DOFTransform::setMinTranslate (  const Vec3 &    translate )  [inline]
 

void osg::DOFTransform::setPutMatrix (  const Matrix &    put )  [inline]
 

virtual void osg::DOFTransform::traverse (  NodeVisitor &    nv )  [virtual]
 

Traverse downwards : calls children's accept method with NodeVisitor.

Reimplemented from osg::Group.

void osg::DOFTransform::updateCurrentHPR (  const Vec3 &    hpr ) 
 

void osg::DOFTransform::updateCurrentScale (  const Vec3 &    scale ) 
 

void osg::DOFTransform::updateCurrentTranslate (  const Vec3 &    translate ) 
 


Member Data Documentation

bool osg::DOFTransform::_animationOn [protected]
 

Vec3 osg::DOFTransform::_currentHPR [protected]
 

Vec3 osg::DOFTransform::_currentScale [protected]
 

Vec3 osg::DOFTransform::_currentTranslate [protected]
 

unsigned short osg::DOFTransform::_increasingFlags [protected]
 

flags indicating whether value is incerasing or decreasing in animation bits form right to left, 1 means increasing while 0 is decreasing 0 = x translation 1 = y translation 2 = z translation 3 = pitch 4 = roll 5 = yaw 6 = x scale 7 = y scale 8 = z scale

Vec3 osg::DOFTransform::_incrementHPR [protected]
 

Vec3 osg::DOFTransform::_incrementScale [protected]
 

Vec3 osg::DOFTransform::_incrementTranslate [protected]
 

Matrix osg::DOFTransform::_inversePut [protected]
 

unsigned long osg::DOFTransform::_limitationFlags [protected]
 

Vec3 osg::DOFTransform::_maxHPR [protected]
 

Vec3 osg::DOFTransform::_maxScale [protected]
 

Vec3 osg::DOFTransform::_maxTranslate [protected]
 

Vec3 osg::DOFTransform::_minHPR [protected]
 

Vec3 osg::DOFTransform::_minScale [protected]
 

Vec3 osg::DOFTransform::_minTranslate [protected]
 

Matrix osg::DOFTransform::_Put [protected]
 


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