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);
The osgAnimation library provides general purpose utility classes for animation.
Definition Action:34
TemplateSampler< Vec3StepInterpolator > Vec3StepSampler
Definition Sampler:118
TemplateSampler< Vec4LinearInterpolator > Vec4LinearSampler
Definition Sampler:126
TemplateSampler< FloatLinearInterpolator > FloatLinearSampler
Definition Sampler:123
TemplateSampler< Vec3CubicBezierInterpolator > Vec3CubicBezierSampler
Definition Sampler:133
TemplateSampler< DoubleStepInterpolator > DoubleStepSampler
Definition Sampler:115
TemplateSampler< FloatStepInterpolator > FloatStepSampler
Definition Sampler:116
TemplateSampler< Vec4StepInterpolator > Vec4StepSampler
Definition Sampler:119
TemplateSampler< MatrixLinearInterpolator > MatrixLinearSampler
Definition Sampler:128
TemplateSampler< Vec3LinearInterpolator > Vec3LinearSampler
Definition Sampler:125
TemplateSampler< Vec2StepInterpolator > Vec2StepSampler
Definition Sampler:117
TemplateSampler< DoubleLinearInterpolator > DoubleLinearSampler
Definition Sampler:122
TemplateSampler< FloatCubicBezierInterpolator > FloatCubicBezierSampler
Definition Sampler:130
TemplateSampler< QuatSphericalLinearInterpolator > QuatSphericalLinearSampler
Definition Sampler:127
TemplateSampler< Vec2LinearInterpolator > Vec2LinearSampler
Definition Sampler:124
TemplateSampler< QuatStepInterpolator > QuatStepSampler
Definition Sampler:120
TemplateSampler< Vec4CubicBezierInterpolator > Vec4CubicBezierSampler
Definition Sampler:134
TemplateSampler< DoubleCubicBezierInterpolator > DoubleCubicBezierSampler
Definition Sampler:131
TemplateSampler< Vec2CubicBezierInterpolator > Vec2CubicBezierSampler
Definition Sampler:132
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Base class for providing reference counted objects.
Definition Referenced:44
virtual const KeyframeContainer * getKeyframeContainer() const =0
virtual KeyframeContainer * getKeyframeContainer()=0
TemplateSampler()
Definition Sampler:50
void setKeyframeContainer(KeyframeContainerType *kf)
Definition Sampler:54
virtual const KeyframeContainer * getKeyframeContainer() const
Definition Sampler:57
double getEndTime() const
Definition Sampler:76
F::UsingType UsingType
Definition Sampler:47
osg::ref_ptr< KeyframeContainerType > _keyframes
Definition Sampler:86
const KeyframeContainerType * getKeyframeContainerTyped() const
Definition Sampler:60
KeyframeContainerType * getKeyframeContainerTyped()
Definition Sampler:59
void getValueAt(double time, UsingType &result) const
Definition Sampler:53
~TemplateSampler()
Definition Sampler:51
FunctorType _functor
Definition Sampler:85
F::KeyframeType KeyframeType
Definition Sampler:45
double getStartTime() const
Definition Sampler:69
virtual KeyframeContainer * getKeyframeContainer()
Definition Sampler:56
TemplateKeyframeContainer< KeyframeType > KeyframeContainerType
Definition Sampler:46
KeyframeContainerType * getOrCreateKeyframeContainer()
Definition Sampler:61
F FunctorType
Definition Sampler:48
TemplateCompositeSampler(VALUESAMPLERTYPE &value, TIMESAMPLERTYPE &time)
Definition Sampler:100
float getStartTime() const
Definition Sampler:110
VALUESAMPLERTYPE::FunctorType::KeyframeType KeyframeType
Definition Sampler:98
float getEndTime() const
Definition Sampler:111
void getValueAt(double time, typename VALUESAMPLERTYPE::FunctorType::UsingType &result)
Definition Sampler:104
VALUESAMPLERTYPE::FunctorType::UsingType UsingType
Definition Sampler:97