1 #ifndef OPENMW_COMPONENTS_NIFOSG_SKELETON_H
2 #define OPENMW_COMPONENTS_NIFOSG_SKELETON_H
26 void update(
const osg::Matrixf* parentMatrixInSkeletonSpace);
45 Bone* getBone(
const std::string&
name);
48 void updateBoneMatrices(
unsigned int traversalNumber);
75 typedef std::map<std::string, std::pair<osg::NodePath, osg::MatrixTransform*> >
BoneCache;
virtual void childInserted(unsigned int)
Definition: skeleton.cpp:159
bool getActive() const
Definition: skeleton.cpp:132
void copy(const btTransform &src, Nif::Transformation &dst)
Definition: testbulletnifloader.cpp:269
std::map< std::string, std::pair< osg::NodePath, osg::MatrixTransform * > > BoneCache
Definition: skeleton.hpp:75
Handles the bone matrices for any number of child RigGeometries.
Definition: skeleton.hpp:36
BoneCache mBoneCache
Definition: skeleton.hpp:76
void operator=(const Bone &)
Definition: skeleton.hpp:52
unsigned int mLastCullFrameNumber
Definition: skeleton.hpp:84
bool mNeedToUpdateBoneMatrices
Definition: skeleton.hpp:79
void traverse(osg::NodeVisitor &nv)
Definition: skeleton.cpp:144
void update(const osg::Matrixf *parentMatrixInSkeletonSpace)
Update the skeleton-space matrix of this bone and all its children.
Definition: skeleton.cpp:181
bool mBoneCacheInit
Definition: skeleton.hpp:77
Bone()
Definition: skeleton.cpp:169
Like Active, but don't bother with Update (including new bounding box) if we're off-screen.
Definition: skeleton.hpp:54
std::unique_ptr< Bone > mRootBone
Definition: skeleton.hpp:73
ActiveType
Definition: skeleton.hpp:50
void markDirty()
Definition: skeleton.cpp:137
std::vector< Bone * > mChildren
Definition: skeleton.hpp:23
osg::MatrixTransform * mNode
Definition: skeleton.hpp:21
Defines a Bone hierarchy, used for updating of skeleton-space bone matrices.
Definition: skeleton.hpp:13
void setActive(ActiveType active)
Definition: skeleton.cpp:127
~Bone()
Definition: skeleton.cpp:174
osg::Matrixf mMatrixInSkeletonSpace
Definition: skeleton.hpp:19
ActiveType mActive
Definition: skeleton.hpp:81
unsigned int mLastFrameNumber
Definition: skeleton.hpp:83
Skeleton()
Definition: skeleton.cpp:35
virtual void childRemoved(unsigned int, unsigned int)
Definition: skeleton.cpp:164
Definition: skeleton.hpp:53
const char * name
Definition: crashcatcher.cpp:67