50 #ifndef FRAMEANIMATIONT_HH
51 #define FRAMEANIMATIONT_HH
53 #include "AnimationT.hh"
55 template<
class Po
intT>
63 typedef typename Point::value_type Scalar;
94 inline Pose *
pose(
unsigned int _iFrame);
138 #if defined(INCLUDE_TEMPLATES) && !defined(FRAMEANIMATIONT_C)
139 #define FRAMEANIMATIONT_TEMPLATES
140 #include "FrameAnimationT.cc"
144 #endif //FRAMEANIMATIONT_HH
virtual void updateFromGlobal(unsigned int _index)
Updates the local matrix using the global matrix.
void insertJointAt(unsigned int _index)
Called by the skeleton as a new joint is inserted.
virtual AnimationT< PointT > * copy()
Copy Function.
A general pose, used to store the frames of the animation.
FrameAnimationT(const PoseT< PointT > &_pose)
Constructor - Creates a new animation consisting of a single pose.
SkeletonT< ACG::Vec3d > Skeleton
Simple Name for the Skeleton, based on double vectors.
Skeleton * skeleton_
Pointer to associated skeleton.
Pose * pose(unsigned int _iFrame)
Returns a pointer to the pose stored in the given frame.
std::vector< Pose * > poses_
Every entry in this vector is a frame of the animation.
void removeJointAt(unsigned int _index)
Called by the skeleton as a joint is deleted.
void setFrameCount(unsigned int _frames)
Set number of frames stored in this pose.
Stores a single animation.
virtual ~FrameAnimationT()
Destructor.
unsigned int frameCount()
Returns the number of frames stored in this pose.