Changeset 11291 for OpenSceneGraph/trunk/include/osgAnimation/Sampler
- Timestamp:
- 03/25/10 18:50:29 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgAnimation/Sampler (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgAnimation/Sampler
r11009 r11291 17 17 */ 18 18 19 #ifndef OSGANIMATION_SAMPLER _H20 #define OSGANIMATION_SAMPLER _H19 #ifndef OSGANIMATION_SAMPLER 20 #define OSGANIMATION_SAMPLER 1 21 21 22 22 #include <vector> … … 51 51 ~TemplateSampler() {} 52 52 53 void getValueAt( floattime, UsingType& result) const { _functor.getValue(*_keyframes, time, result);}53 void getValueAt(double time, UsingType& result) const { _functor.getValue(*_keyframes, time, result);} 54 54 void setKeyframeContainer(KeyframeContainerType* kf) { _keyframes = kf;} 55 55 … … 67 67 } 68 68 69 floatgetStartTime() const69 double getStartTime() const 70 70 { 71 71 if (!_keyframes) 72 return 0.0 f;72 return 0.0; 73 73 return _keyframes->front().getTime(); 74 74 } 75 75 76 floatgetEndTime() const76 double getEndTime() const 77 77 { 78 78 if (!_keyframes) 79 return 0.0 f;79 return 0.0; 80 80 return _keyframes->back().getTime(); 81 81 } … … 102 102 } 103 103 104 void getValueAt( floattime, typename VALUESAMPLERTYPE::FunctorType::UsingType& result)104 void getValueAt(double time, typename VALUESAMPLERTYPE::FunctorType::UsingType& result) 105 105 { 106 floatnewtime;106 double newtime; 107 107 _time.getValueAt(time, newtime); 108 108 _value.getValueAt(newtime, result);
