19#ifndef OSGANIMATION_SAMPLER
20#define OSGANIMATION_SAMPLER 1
90 template<
typename VALUESAMPLERTYPE,
typename TIMESAMPLERTYPE>
93 VALUESAMPLERTYPE& _value;
94 TIMESAMPLERTYPE& _time;
97 typedef typename VALUESAMPLERTYPE::FunctorType::UsingType
UsingType;
98 typedef typename VALUESAMPLERTYPE::FunctorType::KeyframeType
KeyframeType;
104 void getValueAt(
double time,
typename VALUESAMPLERTYPE::FunctorType::UsingType& result)
107 _time.getValueAt(time, newtime);
108 _value.getValueAt(newtime, result);
Definition osgAnimation/Sampler:33
virtual const KeyframeContainer * getKeyframeContainer() const =0
virtual KeyframeContainer * getKeyframeContainer()=0
Definition osgAnimation/Sampler:92
TemplateCompositeSampler(VALUESAMPLERTYPE &value, TIMESAMPLERTYPE &time)
Definition osgAnimation/Sampler:100
float getStartTime() const
Definition osgAnimation/Sampler:110
VALUESAMPLERTYPE::FunctorType::KeyframeType KeyframeType
Definition osgAnimation/Sampler:98
float getEndTime() const
Definition osgAnimation/Sampler:111
void getValueAt(double time, typename VALUESAMPLERTYPE::FunctorType::UsingType &result)
Definition osgAnimation/Sampler:104
VALUESAMPLERTYPE::FunctorType::UsingType UsingType
Definition osgAnimation/Sampler:97
Definition osgAnimation/Sampler:43
TemplateSampler()
Definition osgAnimation/Sampler:50
void setKeyframeContainer(KeyframeContainerType *kf)
Definition osgAnimation/Sampler:54
virtual const KeyframeContainer * getKeyframeContainer() const
Definition osgAnimation/Sampler:57
double getEndTime() const
Definition osgAnimation/Sampler:76
F::UsingType UsingType
Definition osgAnimation/Sampler:47
osg::ref_ptr< KeyframeContainerType > _keyframes
Definition osgAnimation/Sampler:86
const KeyframeContainerType * getKeyframeContainerTyped() const
Definition osgAnimation/Sampler:60
KeyframeContainerType * getKeyframeContainerTyped()
Definition osgAnimation/Sampler:59
void getValueAt(double time, UsingType &result) const
Definition osgAnimation/Sampler:53
~TemplateSampler()
Definition osgAnimation/Sampler:51
FunctorType _functor
Definition osgAnimation/Sampler:85
F::KeyframeType KeyframeType
Definition osgAnimation/Sampler:45
double getStartTime() const
Definition osgAnimation/Sampler:69
virtual KeyframeContainer * getKeyframeContainer()
Definition osgAnimation/Sampler:56
TemplateKeyframeContainer< KeyframeType > KeyframeContainerType
Definition osgAnimation/Sampler:46
KeyframeContainerType * getOrCreateKeyframeContainer()
Definition osgAnimation/Sampler:61
F FunctorType
Definition osgAnimation/Sampler:48
TemplateSampler< Vec3StepInterpolator > Vec3StepSampler
Definition osgAnimation/Sampler:118
TemplateSampler< Vec4LinearInterpolator > Vec4LinearSampler
Definition osgAnimation/Sampler:126
TemplateSampler< FloatLinearInterpolator > FloatLinearSampler
Definition osgAnimation/Sampler:123
TemplateSampler< Vec3CubicBezierInterpolator > Vec3CubicBezierSampler
Definition osgAnimation/Sampler:133
TemplateSampler< DoubleStepInterpolator > DoubleStepSampler
Definition osgAnimation/Sampler:115
TemplateSampler< FloatStepInterpolator > FloatStepSampler
Definition osgAnimation/Sampler:116
TemplateSampler< Vec4StepInterpolator > Vec4StepSampler
Definition osgAnimation/Sampler:119
TemplateSampler< MatrixLinearInterpolator > MatrixLinearSampler
Definition osgAnimation/Sampler:128
TemplateSampler< Vec3LinearInterpolator > Vec3LinearSampler
Definition osgAnimation/Sampler:125
TemplateSampler< Vec2StepInterpolator > Vec2StepSampler
Definition osgAnimation/Sampler:117
TemplateSampler< DoubleLinearInterpolator > DoubleLinearSampler
Definition osgAnimation/Sampler:122
TemplateSampler< FloatCubicBezierInterpolator > FloatCubicBezierSampler
Definition osgAnimation/Sampler:130
TemplateSampler< QuatSphericalLinearInterpolator > QuatSphericalLinearSampler
Definition osgAnimation/Sampler:127
TemplateSampler< Vec2LinearInterpolator > Vec2LinearSampler
Definition osgAnimation/Sampler:124
TemplateSampler< QuatStepInterpolator > QuatStepSampler
Definition osgAnimation/Sampler:120
TemplateSampler< Vec4CubicBezierInterpolator > Vec4CubicBezierSampler
Definition osgAnimation/Sampler:134
TemplateSampler< DoubleCubicBezierInterpolator > DoubleCubicBezierSampler
Definition osgAnimation/Sampler:131
TemplateSampler< Vec2CubicBezierInterpolator > Vec2CubicBezierSampler
Definition osgAnimation/Sampler:132