44 #define FRAMEANIMATIONT_C 61 template<
class Po
intT>
63 skeleton_(_pose.skeleton_)
74 template<
class Po
intT>
91 template<
class Po
intT>
95 for(
unsigned int i = 0; i < _iNumFrames; ++i)
109 template<
class Po
intT>
114 for(
typename std::vector<Pose*>::const_iterator it = _other.
poses_.begin(); it != _other.
poses_.end(); ++it)
123 template<
class Po
intT>
126 for(
typename std::vector<Pose*>::iterator it =
poses_.begin(); it !=
poses_.end(); ++it)
136 template<
class Po
intT>
144 template<
class Po
intT>
147 assert(_iFrame <
poses_.size());
154 template<
class Po
intT>
162 template<
class Po
intT>
166 while ( _frames <
poses_.size() ){
173 while ( _frames >
poses_.size() )
180 template<
class Po
intT>
183 for(
typename std::vector<Pose*>::iterator it =
poses_.begin(); it !=
poses_.end(); ++it)
184 (*it)->insertJointAt(_index);
190 template<
class Po
intT>
193 for(
typename std::vector<Pose*>::iterator it =
poses_.begin(); it !=
poses_.end(); ++it)
194 (*it)->removeJointAt(_index);
206 template<
class Po
intT>
209 for(
typename std::vector<Pose*>::iterator it =
poses_.begin(); it !=
poses_.end(); ++it)
210 (*it)->updateFromGlobal(_index);
virtual ~FrameAnimationT()
Destructor.
Pose * pose(unsigned int _iFrame)
Returns a pointer to the pose stored in the given frame.
Skeleton * skeleton_
Pointer to associated skeleton.
unsigned int frameCount()
Returns the number of frames stored in this pose.
FrameAnimationT(const PoseT< PointT > &_pose)
Constructor - Creates a new animation consisting of a single pose.
A general pose, used to store the frames of the animation.
virtual void updateFromGlobal(unsigned int _index)
Updates the local matrix using the global matrix.
void setFrameCount(unsigned int _frames)
Set number of frames stored in this pose.
virtual AnimationT< PointT > * copy()
Copy Function.
Stores a single animation.
void removeJointAt(unsigned int _index)
Called by the skeleton as a joint is deleted.
std::vector< Pose * > poses_
Every entry in this vector is a frame of the animation.
void insertJointAt(unsigned int _index)
Called by the skeleton as a new joint is inserted.