vhdOSG::JointTransform Class Reference

#include <JointTransform.h>

List of all members.

Public Member Functions

 JointTransform ()
 JointTransform (const JointTransform &pat, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Node (osg, JointTransform)
virtual JointTransformasJointTransform ()
virtual const JointTransformasJointTransform () const
void setPosition (const osg::Vec3 &pos)
const osg::Vec3 & getPosition () const
void setRotation (const osg::Quat &quat)
const osg::QuatgetRotation () const
void setRotation (const osg::Vec3 &axis, double angle)
void getRotation (osg::Vec3 &axis, double &angle)
void setCenter (const osg::Vec3 &center)
const osg::Vec3 & getCenter () const
virtual bool computeLocalToWorldMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const
virtual bool computeWorldToLocalMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const

Protected Member Functions

virtual ~JointTransform ()

Protected Attributes

osg::Vec3 _position
osg::Quat _rotation
osg::Vec3 _center


Detailed Description

JointTransform - is Transform the set the coordinates transform up via a Vec3 position and Quat rotation that occurs around Vec3 center.


Constructor & Destructor Documentation

JointTransform::JointTransform (  ) 

vhdOSG::JointTransform::JointTransform ( const JointTransform pat,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
) [inline]

virtual vhdOSG::JointTransform::~JointTransform (  )  [inline, protected, virtual]


Member Function Documentation

vhdOSG::JointTransform::META_Node ( osg  ,
JointTransform   
)

virtual JointTransform* vhdOSG::JointTransform::asJointTransform (  )  [inline, virtual]

virtual const JointTransform* vhdOSG::JointTransform::asJointTransform (  )  const [inline, virtual]

void vhdOSG::JointTransform::setPosition ( const osg::Vec3 &  pos  )  [inline]

Sets the translation part of the transform

const osg::Vec3& vhdOSG::JointTransform::getPosition (  )  const [inline]

Gets the translation part of the transform

void vhdOSG::JointTransform::setRotation ( const osg::Quat quat  )  [inline]

Sets the orientation part of the transform using quaternion

const osg::Quat& vhdOSG::JointTransform::getRotation (  )  const [inline]

Gets the orientation part of the transform using quaternion

void vhdOSG::JointTransform::setRotation ( const osg::Vec3 &  axis,
double  angle 
) [inline]

Sets the orientation part of the transform using axis angle (in radians). For convenience, internally converted into quaternion.

void vhdOSG::JointTransform::getRotation ( osg::Vec3 &  axis,
double &  angle 
) [inline]

Gets the orientation part of the transform using axis angle (in radians) For convenience, internally converted from quaternion.

void vhdOSG::JointTransform::setCenter ( const osg::Vec3 &  center  )  [inline]

Sets the rotation center offset

const osg::Vec3& vhdOSG::JointTransform::getCenter (  )  const [inline]

Gets the rotation center offset

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

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


Member Data Documentation

osg::Vec3 vhdOSG::JointTransform::_position [protected]

osg::Quat vhdOSG::JointTransform::_rotation [protected]

osg::Vec3 vhdOSG::JointTransform::_center [protected]


Generated on Thu Jan 18 10:06:29 2007 for vhdPLUS by  doxygen 1.5.1-p1