00001 #ifndef BONEINTERPOLATOR_H_CIR341 00002 #define BONEINTERPOLATOR_H_CIR341 00003 00004 #include "global.h" 00005 #include "Keyframes.h" 00006 class Bone; 00007 00015 class BoneInterpolator { 00016 public: 00022 BoneInterpolator( Bone* targetBone, const AnimationKeys& keys, 00023 float startTime, float endTime ); 00024 00028 ~BoneInterpolator(); 00029 00034 bool hasAnyKeys() const; 00035 00042 float getStartTime(); 00043 00050 float getEndTime(); 00051 00056 void timeShift( float shift ); 00057 00068 void animate( float t ); 00069 00070 private: 00071 BoneInterpolator(); 00072 BoneInterpolator( const BoneInterpolator& o ); 00073 BoneInterpolator& operator = ( const BoneInterpolator& rhs ); 00074 00075 RKeyList rKeys; 00076 SKeyList sKeys; 00077 TKeyList tKeys; 00078 00079 Bone* target; 00080 }; 00081 00082 #endif 00083
1.2.18