osgAnimation::Bone Class Reference

Inheritance diagram for osgAnimation::Bone:
Inheritance graph
[legend]

List of all members.

Classes

struct  BoneMapVisitor
struct  FindNearestParentAnimationManager
class  UpdateBone

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

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

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.

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

Reimplemented in osgAnimation::Skeleton.

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]
const osg::Matrix& osgAnimation::Bone::getBindMatrixInBoneSpace (  )  const [inline]
BoneMap osgAnimation::Bone::getBoneMap (  ) 
const Bone* osgAnimation::Bone::getBoneParent (  )  const
Bone* osgAnimation::Bone::getBoneParent (  ) 
const osg::Matrix& osgAnimation::Bone::getInvBindMatrixInSkeletonSpace (  )  const [inline]
osg::Matrix osgAnimation::Bone::getMatrixInBoneSpace (  )  const [inline]
const osg::Matrix& osgAnimation::Bone::getMatrixInSkeletonSpace (  )  const [inline]
const osg::Quat& osgAnimation::Bone::getRotation (  )  const [inline]
const osg::Vec3& osgAnimation::Bone::getTranslation (  )  const [inline]
osgAnimation::Bone::META_Node ( osgAnimation  ,
Bone   
)

Reimplemented in osgAnimation::Skeleton.

bool osgAnimation::Bone::needLink (  )  const
bool osgAnimation::Bone::needToComputeBindMatrix (  )  [inline]
void osgAnimation::Bone::setBindMatrixInBoneSpace ( const osg::Matrix matrix  )  [inline]
void osgAnimation::Bone::setDefaultUpdateCallback ( const std::string &  name = ""  ) 
void osgAnimation::Bone::setMatrixInSkeletonSpace ( const osg::Matrix matrix  )  [inline]
void osgAnimation::Bone::setNeedToComputeBindMatrix ( bool  state  )  [inline]
void osgAnimation::Bone::setRotation ( const osg::Quat quat  )  [inline]
void osgAnimation::Bone::setScale ( const osg::Vec3 scale  )  [inline]
void osgAnimation::Bone::setTranslation ( const osg::Vec3 trans  )  [inline]

Member Data Documentation


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

osg logo
Generated at Tue Jul 20 05:46:07 2010 for the OpenSceneGraph by doxygen 1.6.1.