osgAnimation::Bone Class Reference

Inheritance diagram for osgAnimation::Bone:

Inheritance graph
[legend]

List of all members.

Public Types

typedef osg::ref_ptr< BonePointerType
typedef std::map< std::string,
PointerType
BoneMap
typedef osg::Matrix MatrixType

Public Member Functions

 META_Node (osgAnimation, Bone)
 Bone (const Bone &b, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Bone (const std::string &name="")
void setDefaultUpdateCallback (const std::string &name="")
virtual bool computeLocalToWorldMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const
virtual bool computeWorldToLocalMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const
BonegetBoneParent ()
const BonegetBoneParent () const
void setTranslation (const osg::Vec3 &trans)
void setRotation (const osg::Quat &quat)
void setScale (const osg::Vec3 &scale)
const osg::Vec3getTranslation () const
const osg::QuatgetRotation () const
osg::Matrix getMatrixInBoneSpace () const
const osg::MatrixgetBindMatrixInBoneSpace () const
const osg::MatrixgetMatrixInSkeletonSpace () const
const osg::MatrixgetInvBindMatrixInSkeletonSpace () const
void setMatrixInSkeletonSpace (const osg::Matrix &matrix)
void setBindMatrixInBoneSpace (const osg::Matrix &matrix)
bool needToComputeBindMatrix ()
virtual void computeBindMatrix ()
bool needLink () const
void setNeedToComputeBindMatrix (bool state)
virtual bool addChild (Node *child)
 Add Node to Group.
BoneMap getBoneMap ()

Protected Attributes

osg::Vec3 _position
osg::Quat _rotation
osg::Vec3 _scale
bool _needToRecomputeBindMatrix
osg::Matrix _bindInBoneSpace
osg::Matrix _invBindInSkeletonSpace
osg::Matrix _boneInSkeletonSpace

Classes

struct  BoneMapVisitor
struct  FindNearestParentAnimationManager
class  UpdateBone


Member Typedef Documentation

typedef std::map<std::string, PointerType > osgAnimation::Bone::BoneMap


Constructor & Destructor Documentation

osgAnimation::Bone::Bone ( const Bone b,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

osgAnimation::Bone::Bone ( const std::string &  name = ""  ) 


Member Function Documentation

osgAnimation::Bone::META_Node ( osgAnimation  ,
Bone   
)

void osgAnimation::Bone::setDefaultUpdateCallback ( const std::string &  name = ""  ) 

bool osgAnimation::Bone::computeLocalToWorldMatrix ( osg::Matrix matrix,
osg::NodeVisitor nv 
) const [inline, virtual]

bool osgAnimation::Bone::computeWorldToLocalMatrix ( osg::Matrix matrix,
osg::NodeVisitor nv 
) const [inline, virtual]

Bone* osgAnimation::Bone::getBoneParent (  ) 

const Bone* osgAnimation::Bone::getBoneParent (  )  const

void osgAnimation::Bone::setTranslation ( const osg::Vec3 trans  )  [inline]

void osgAnimation::Bone::setRotation ( const osg::Quat quat  )  [inline]

void osgAnimation::Bone::setScale ( const osg::Vec3 scale  )  [inline]

const osg::Vec3& osgAnimation::Bone::getTranslation (  )  const [inline]

const osg::Quat& osgAnimation::Bone::getRotation (  )  const [inline]

osg::Matrix osgAnimation::Bone::getMatrixInBoneSpace (  )  const [inline]

const osg::Matrix& osgAnimation::Bone::getBindMatrixInBoneSpace (  )  const [inline]

const osg::Matrix& osgAnimation::Bone::getMatrixInSkeletonSpace (  )  const [inline]

const osg::Matrix& osgAnimation::Bone::getInvBindMatrixInSkeletonSpace (  )  const [inline]

void osgAnimation::Bone::setMatrixInSkeletonSpace ( const osg::Matrix matrix  )  [inline]

void osgAnimation::Bone::setBindMatrixInBoneSpace ( const osg::Matrix matrix  )  [inline]

bool osgAnimation::Bone::needToComputeBindMatrix (  )  [inline]

virtual void osgAnimation::Bone::computeBindMatrix (  )  [virtual]

Reimplemented in osgAnimation::Skeleton.

bool osgAnimation::Bone::needLink (  )  const

void osgAnimation::Bone::setNeedToComputeBindMatrix ( bool  state  )  [inline]

virtual bool osgAnimation::Bone::addChild ( Node *  child  )  [virtual]

Add Node to Group.

If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes.

BoneMap osgAnimation::Bone::getBoneMap (  ) 


Member Data Documentation


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

osg logo
Generated at Mon Mar 30 09:06:10 2009 for the OpenSceneGraph by doxygen 1.5.5.