Developer Documentation
Loading...
Searching...
No Matches
AnimationT< PointT > Class Template Referenceabstract

Stores a single animation. More...

#include <Type-Skeleton/ObjectTypes/Skeleton/Animation/AnimationT.hh>

Inheritance diagram for AnimationT< PointT >:
InterpolationAnimationT< ACG::Vec3d > FrameAnimationT< PointT > InterpolationAnimationT< PointT > MultiInterpolationAnimationT< PointT >

Public Types

typedef PointT Point
 
typedef Point::value_type Scalar
 
typedef PoseT< PointT > Pose
 

Public Member Functions

 AnimationT (std::string _name="")
 
virtual AnimationTcopy ()=0
 
Frame access

There is one pose per frame.

virtual Posepose (unsigned int _iFrame)=0
 
virtual unsigned int frameCount ()=0
 

Friends

template<typename >
class SkeletonT
 

Synchronization

Use these methods to keep the poses in sync with the number (and indices) of the joints.

std::string name_
 
int fps_
 
virtual void insertJointAt (unsigned int _index)=0
 
virtual void removeJointAt (unsigned int _index)=0
 
virtual void updateFromGlobal (unsigned int _index)=0
 
virtual void clearPoseCache ()
 
std::string name ()
 
void setName (std::string _name)
 
int fps ()
 
void setFps (int _fps)
 

Detailed Description

template<class PointT>
class AnimationT< PointT >

Stores a single animation.

This class is used by a skeleton to store a single animation. An animation is an array of different Poses. Both the reference pose and the skeleton hierarchy are not used by the animation class itself, but are passed to the poses.

Definition at line 58 of file AnimationT.hh.

Member Typedef Documentation

◆ Point

template<class PointT >
typedef PointT AnimationT< PointT >::Point

Definition at line 64 of file AnimationT.hh.

◆ Pose

template<class PointT >
typedef PoseT<PointT> AnimationT< PointT >::Pose

Definition at line 66 of file AnimationT.hh.

◆ Scalar

template<class PointT >
typedef Point::value_type AnimationT< PointT >::Scalar

Definition at line 65 of file AnimationT.hh.

Constructor & Destructor Documentation

◆ AnimationT()

template<class PointT >
AnimationT< PointT >::AnimationT ( std::string  _name = "")
inlineexplicit

Definition at line 69 of file AnimationT.hh.

◆ ~AnimationT()

template<class PointT >
virtual AnimationT< PointT >::~AnimationT ( )
inlinevirtual

Definition at line 71 of file AnimationT.hh.

Member Function Documentation

◆ clearPoseCache()

template<class PointT >
virtual void AnimationT< PointT >::clearPoseCache ( )
inlinevirtual

Definition at line 93 of file AnimationT.hh.

◆ copy()

template<class PointT >
virtual AnimationT * AnimationT< PointT >::copy ( )
pure virtual

Implemented in FrameAnimationT< PointT >.

◆ fps()

template<class PointT >
int AnimationT< PointT >::fps ( )
inline

Definition at line 103 of file AnimationT.hh.

◆ frameCount()

template<class PointT >
virtual unsigned int AnimationT< PointT >::frameCount ( )
pure virtual

◆ insertJointAt()

template<class PointT >
virtual void AnimationT< PointT >::insertJointAt ( unsigned int  _index)
pure virtual

◆ name()

template<class PointT >
std::string AnimationT< PointT >::name ( )
inline

Definition at line 95 of file AnimationT.hh.

◆ pose()

template<class PointT >
virtual Pose * AnimationT< PointT >::pose ( unsigned int  _iFrame)
pure virtual

◆ removeJointAt()

template<class PointT >
virtual void AnimationT< PointT >::removeJointAt ( unsigned int  _index)
pure virtual

◆ setFps()

template<class PointT >
void AnimationT< PointT >::setFps ( int  _fps)
inline

Definition at line 107 of file AnimationT.hh.

◆ setName()

template<class PointT >
void AnimationT< PointT >::setName ( std::string  _name)
inline

Definition at line 99 of file AnimationT.hh.

◆ updateFromGlobal()

template<class PointT >
virtual void AnimationT< PointT >::updateFromGlobal ( unsigned int  _index)
pure virtual

Friends And Related Symbol Documentation

◆ SkeletonT

template<class PointT >
template<typename >
friend class SkeletonT
friend

Definition at line 61 of file AnimationT.hh.

Member Data Documentation

◆ fps_

template<class PointT >
int AnimationT< PointT >::fps_
protected

Definition at line 113 of file AnimationT.hh.

◆ name_

template<class PointT >
std::string AnimationT< PointT >::name_
protected

Definition at line 112 of file AnimationT.hh.


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