Changeset 13041 for OpenSceneGraph/trunk/include/osgAnimation/Keyframe
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgAnimation/Keyframe
r12139 r13041 1 /* -*-c++-*- 1 /* -*-c++-*- 2 2 * Copyright (C) 2008 Cedric Pinson <mornifle@plopbyte.net> 3 3 * 4 * This library is open source and may be redistributed and/or modified under 5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 4 * This library is open source and may be redistributed and/or modified under 5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 6 6 * (at your option) any later version. The full license is in LICENSE file 7 7 * included with this distribution, and on the openscenegraph.org website. 8 * 8 * 9 9 * This library is distributed in the hope that it will be useful, 10 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 12 * OpenSceneGraph Public License for more details. 13 13 */ … … 26 26 #include <osg/Matrixf> 27 27 28 namespace osgAnimation 28 namespace osgAnimation 29 29 { 30 30 31 class Keyframe 31 class Keyframe 32 32 { 33 33 public: 34 34 double getTime() const { return _time; } 35 35 void setTime(double time) { _time = time; } 36 36 37 37 protected: 38 38 double _time; … … 49 49 ~TemplateKeyframe () {} 50 50 51 TemplateKeyframe (double time, const T& value) 52 { 51 TemplateKeyframe (double time, const T& value) 52 { 53 53 _time = time; 54 54 _value = value; … … 100 100 typedef TemplateKeyframe<float> FloatKeyframe; 101 101 typedef TemplateKeyframeContainer<float> FloatKeyframeContainer; 102 102 103 103 typedef TemplateKeyframe<double> DoubleKeyframe; 104 typedef TemplateKeyframeContainer<double> DoubleKeyframeContainer; 104 typedef TemplateKeyframeContainer<double> DoubleKeyframeContainer; 105 105 106 106 typedef TemplateKeyframe<osg::Vec2> Vec2Keyframe; … … 124 124 typedef TemplateKeyframe<FloatCubicBezier> FloatCubicBezierKeyframe; 125 125 typedef TemplateKeyframeContainer<FloatCubicBezier> FloatCubicBezierKeyframeContainer; 126 126 127 127 typedef TemplateKeyframe<DoubleCubicBezier> DoubleCubicBezierKeyframe; 128 128 typedef TemplateKeyframeContainer<DoubleCubicBezier> DoubleCubicBezierKeyframeContainer; 129 129 130 130 typedef TemplateKeyframe<Vec2CubicBezier> Vec2CubicBezierKeyframe; 131 131 typedef TemplateKeyframeContainer<Vec2CubicBezier> Vec2CubicBezierKeyframeContainer; 132 132 133 133 typedef TemplateKeyframe<Vec3CubicBezier> Vec3CubicBezierKeyframe; 134 134 typedef TemplateKeyframeContainer<Vec3CubicBezier> Vec3CubicBezierKeyframeContainer; 135 135 136 136 typedef TemplateKeyframe<Vec4CubicBezier> Vec4CubicBezierKeyframe; 137 137 typedef TemplateKeyframeContainer<Vec4CubicBezier> Vec4CubicBezierKeyframeContainer;
