15 #ifndef OSGANIMATION_KEYFRAME_H
16 #define OSGANIMATION_KEYFRAME_H
19 #include <osg/Referenced>
20 #include <osgAnimation/Vec3Packed>
21 #include <osgAnimation/CubicBezier>
26 #include <osg/Matrixf>
57 void setValue(
const T& value) { _value = value;}
66 virtual unsigned int size()
const = 0;
81 virtual unsigned int size()
const {
return (
unsigned int)std::vector<TemplateKeyframe<T> >
::size(); }
virtual unsigned int size() const
TemplateKeyframeContainer< osg::Vec2 > Vec2KeyframeContainer
TemplateKeyframeContainer< float > FloatKeyframeContainer
TemplateKeyframeContainer< osg::Matrixf > MatrixKeyframeContainer
TemplateKeyframe< osg::Vec3 > Vec3Keyframe
void init(const osg::Vec3f &min, const osg::Vec3f &scale)
void setValue(const T &value)
TemplateKeyframeContainer< Vec4CubicBezier > Vec4CubicBezierKeyframeContainer
TemplateKeyframe< Vec3Packed > Vec3PackedKeyframe
TemplateKeyframeContainer< Vec3Packed > Vec3PackedKeyframeContainer
TemplateKeyframe< Vec3CubicBezier > Vec3CubicBezierKeyframe
TemplateKeyframeContainer< osg::Vec3 > Vec3KeyframeContainer
TemplateKeyframe< osg::Quat > QuatKeyframe
TemplateKeyframeContainer< osg::Quat > QuatKeyframeContainer
TemplateKeyframe< Vec3Packed > KeyType
TemplateKeyframeContainer< DoubleCubicBezier > DoubleCubicBezierKeyframeContainer
TemplateKeyframe(double time, const T &value)
const char * getKeyframeType()
TemplateKeyframe< float > FloatKeyframe
TemplateKeyframe< osg::Matrixf > MatrixKeyframe
TemplateKeyframeContainer< double > DoubleKeyframeContainer
TemplateKeyframeContainer< osg::Vec4 > Vec4KeyframeContainer
TemplateKeyframeContainer< FloatCubicBezier > FloatCubicBezierKeyframeContainer
TemplateKeyframe< DoubleCubicBezier > DoubleCubicBezierKeyframe
TemplateKeyframe< T > KeyType
TemplateKeyframeContainer< Vec2CubicBezier > Vec2CubicBezierKeyframeContainer
TemplateKeyframe< Vec2CubicBezier > Vec2CubicBezierKeyframe
TemplateKeyframe< double > DoubleKeyframe
const T & getValue() const
TemplateKeyframeContainer()
TemplateKeyframe< osg::Vec2 > Vec2Keyframe
TemplateKeyframe< osg::Vec4 > Vec4Keyframe
TemplateKeyframe< Vec4CubicBezier > Vec4CubicBezierKeyframe
TemplateKeyframe< FloatCubicBezier > FloatCubicBezierKeyframe
TemplateKeyframeContainer()
TemplateKeyframeContainer< Vec3CubicBezier > Vec3CubicBezierKeyframeContainer
void setTime(double time)
virtual unsigned int size() const =0