2012-03-22 01:36:20 +08:00
|
|
|
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
2003-01-22 00:45:36 +08:00
|
|
|
*
|
2012-03-22 01:36:20 +08:00
|
|
|
* This library is open source and may be redistributed and/or modified under
|
|
|
|
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
2003-01-22 00:45:36 +08:00
|
|
|
* (at your option) any later version. The full license is in LICENSE file
|
|
|
|
* included with this distribution, and on the openscenegraph.org website.
|
2012-03-22 01:36:20 +08:00
|
|
|
*
|
2003-01-22 00:45:36 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2012-03-22 01:36:20 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2003-01-22 00:45:36 +08:00
|
|
|
* OpenSceneGraph Public License for more details.
|
|
|
|
*/
|
2002-02-27 08:58:54 +08:00
|
|
|
|
|
|
|
#ifndef OSG_ANIMATIONPATH
|
|
|
|
#define OSG_ANIMATIONPATH 1
|
|
|
|
|
2004-08-04 16:27:43 +08:00
|
|
|
#include <map>
|
|
|
|
#include <istream>
|
|
|
|
#include <float.h>
|
|
|
|
|
2003-09-06 06:35:34 +08:00
|
|
|
#include <osg/Matrixf>
|
|
|
|
#include <osg/Matrixd>
|
2002-02-27 08:58:54 +08:00
|
|
|
#include <osg/Quat>
|
2014-06-06 00:26:13 +08:00
|
|
|
#include <osg/Callback>
|
2002-02-27 08:58:54 +08:00
|
|
|
|
|
|
|
namespace osg {
|
|
|
|
|
2004-09-01 16:15:36 +08:00
|
|
|
/** AnimationPath encapsulates a time varying transformation pathway. Can be
|
|
|
|
* used for updating camera position and model object position.
|
|
|
|
* AnimationPathCallback can be attached directly to Transform nodes to
|
|
|
|
* move subgraphs around the scene.
|
2002-02-27 08:58:54 +08:00
|
|
|
*/
|
2005-04-12 01:14:17 +08:00
|
|
|
class OSG_EXPORT AnimationPath : public virtual osg::Object
|
2002-02-27 08:58:54 +08:00
|
|
|
{
|
|
|
|
public:
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2002-08-13 23:31:10 +08:00
|
|
|
AnimationPath():_loopMode(LOOP) {}
|
2002-04-22 06:05:26 +08:00
|
|
|
|
2002-12-16 17:55:30 +08:00
|
|
|
AnimationPath(const AnimationPath& ap, const CopyOp& copyop=CopyOp::SHALLOW_COPY):
|
|
|
|
Object(ap,copyop),
|
|
|
|
_timeControlPointMap(ap._timeControlPointMap),
|
|
|
|
_loopMode(ap._loopMode) {}
|
|
|
|
|
2003-04-27 18:58:39 +08:00
|
|
|
META_Object(osg,AnimationPath);
|
2002-12-16 17:55:30 +08:00
|
|
|
|
2004-12-17 09:06:33 +08:00
|
|
|
class ControlPoint
|
2002-08-13 23:31:10 +08:00
|
|
|
{
|
2005-11-18 01:44:48 +08:00
|
|
|
public:
|
2002-10-08 04:01:28 +08:00
|
|
|
ControlPoint():
|
2004-09-01 16:34:49 +08:00
|
|
|
_scale(1.0,1.0,1.0) {}
|
2002-04-22 06:05:26 +08:00
|
|
|
|
2004-05-20 18:15:48 +08:00
|
|
|
ControlPoint(const osg::Vec3d& position):
|
2002-08-13 23:31:10 +08:00
|
|
|
_position(position),
|
|
|
|
_rotation(),
|
2004-09-01 16:34:49 +08:00
|
|
|
_scale(1.0,1.0,1.0) {}
|
2002-04-22 06:05:26 +08:00
|
|
|
|
2004-05-20 18:15:48 +08:00
|
|
|
ControlPoint(const osg::Vec3d& position, const osg::Quat& rotation):
|
2002-08-13 23:31:10 +08:00
|
|
|
_position(position),
|
|
|
|
_rotation(rotation),
|
2004-09-01 16:34:49 +08:00
|
|
|
_scale(1.0,1.0,1.0) {}
|
2002-02-27 08:58:54 +08:00
|
|
|
|
2004-05-20 18:15:48 +08:00
|
|
|
ControlPoint(const osg::Vec3d& position, const osg::Quat& rotation, const osg::Vec3d& scale):
|
2002-02-27 08:58:54 +08:00
|
|
|
_position(position),
|
|
|
|
_rotation(rotation),
|
|
|
|
_scale(scale) {}
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2005-11-18 01:44:48 +08:00
|
|
|
void setPosition(const osg::Vec3d& position) { _position = position; }
|
|
|
|
const osg::Vec3d& getPosition() const { return _position; }
|
2004-12-17 09:06:33 +08:00
|
|
|
|
2005-11-18 01:44:48 +08:00
|
|
|
void setRotation(const osg::Quat& rotation) { _rotation = rotation; }
|
|
|
|
const osg::Quat& getRotation() const { return _rotation; }
|
2003-11-04 07:13:31 +08:00
|
|
|
|
2005-11-18 01:44:48 +08:00
|
|
|
void setScale(const osg::Vec3d& scale) { _scale = scale; }
|
|
|
|
const osg::Vec3d& getScale() const { return _scale; }
|
2003-11-04 07:13:31 +08:00
|
|
|
|
2002-09-02 20:31:35 +08:00
|
|
|
inline void interpolate(float ratio,const ControlPoint& first, const ControlPoint& second)
|
2002-02-27 08:58:54 +08:00
|
|
|
{
|
|
|
|
float one_minus_ratio = 1.0f-ratio;
|
|
|
|
_position = first._position*one_minus_ratio + second._position*ratio;
|
|
|
|
_rotation.slerp(ratio,first._rotation,second._rotation);
|
|
|
|
_scale = first._scale*one_minus_ratio + second._scale*ratio;
|
|
|
|
}
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2005-10-10 17:17:22 +08:00
|
|
|
inline void interpolate(double ratio,const ControlPoint& first, const ControlPoint& second)
|
|
|
|
{
|
2012-03-29 17:57:47 +08:00
|
|
|
double one_minus_ratio = 1.0-ratio;
|
2005-10-10 17:17:22 +08:00
|
|
|
_position = first._position*one_minus_ratio + second._position*ratio;
|
|
|
|
_rotation.slerp(ratio,first._rotation,second._rotation);
|
|
|
|
_scale = first._scale*one_minus_ratio + second._scale*ratio;
|
|
|
|
}
|
|
|
|
|
2003-09-06 06:35:34 +08:00
|
|
|
inline void getMatrix(Matrixf& matrix) const
|
2002-02-27 08:58:54 +08:00
|
|
|
{
|
2008-09-18 00:14:28 +08:00
|
|
|
matrix.makeRotate(_rotation);
|
|
|
|
matrix.preMultScale(_scale);
|
|
|
|
matrix.postMultTranslate(_position);
|
2002-02-27 08:58:54 +08:00
|
|
|
}
|
|
|
|
|
2003-09-06 06:35:34 +08:00
|
|
|
inline void getMatrix(Matrixd& matrix) const
|
|
|
|
{
|
2008-09-18 00:14:28 +08:00
|
|
|
matrix.makeRotate(_rotation);
|
|
|
|
matrix.preMultScale(_scale);
|
|
|
|
matrix.postMultTranslate(_position);
|
2003-09-06 06:35:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void getInverse(Matrixf& matrix) const
|
|
|
|
{
|
2008-09-18 00:14:28 +08:00
|
|
|
matrix.makeRotate(_rotation.inverse());
|
|
|
|
matrix.postMultScale(osg::Vec3d(1.0/_scale.x(),1.0/_scale.y(),1.0/_scale.z()));
|
|
|
|
matrix.preMultTranslate(-_position);
|
2003-09-06 06:35:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void getInverse(Matrixd& matrix) const
|
2002-02-27 08:58:54 +08:00
|
|
|
{
|
2008-09-18 00:14:28 +08:00
|
|
|
matrix.makeRotate(_rotation.inverse());
|
|
|
|
matrix.postMultScale(osg::Vec3d(1.0/_scale.x(),1.0/_scale.y(),1.0/_scale.z()));
|
|
|
|
matrix.preMultTranslate(-_position);
|
2002-02-27 08:58:54 +08:00
|
|
|
}
|
2008-05-27 01:30:43 +08:00
|
|
|
|
2005-11-18 01:44:48 +08:00
|
|
|
protected:
|
2005-05-09 21:09:07 +08:00
|
|
|
|
2004-12-17 09:06:33 +08:00
|
|
|
osg::Vec3d _position;
|
|
|
|
osg::Quat _rotation;
|
|
|
|
osg::Vec3d _scale;
|
|
|
|
|
2002-02-27 08:58:54 +08:00
|
|
|
};
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2002-08-13 23:31:10 +08:00
|
|
|
|
2004-09-01 16:15:36 +08:00
|
|
|
/** Given a specific time, return the transformation matrix for a point. */
|
2003-09-06 06:35:34 +08:00
|
|
|
bool getMatrix(double time,Matrixf& matrix) const
|
|
|
|
{
|
|
|
|
ControlPoint cp;
|
|
|
|
if (!getInterpolatedControlPoint(time,cp)) return false;
|
|
|
|
cp.getMatrix(matrix);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
From Erik van Dekker,
"I made several modifications:
* The cause of my errors was that my OSG source directory path contains spaces. To fix this issue I wrapped all paths with quotes, as stated in doxygen documentation.
* I also received some warning messages about deprecated doxygen settings, which I fixed by updating the doxygen file, i.e. running \u2018doxygen \u2013u doxygen.cmake\u2018. By running this command deprecated doxygen options are removed, some option comments have changed and quite some options have been added (I kept their default settings unless mentioned).
* I was surprised to find that the doxygen OUTPUT_DIRECTORY was set to \u201c${OpenSceneGraph_SOURCE_DIR}/doc\u201d, which does not seem appropriate for out of source builds; I changed this to \u201c${OpenSceneGraph_BINARY_DIR}/doc\u201d. (On the other hand, maybe a cmake selectable option should be given to the user?)
* Fixed two warnings I received about unexpected end-of-list-markers in \u2018osg\AnimationPath and \u2018osgUtil\CullVisitor due to excess trailing points in comments.
* Fixed a warning in osgWidget\StyleInterface due to an #include directive (strangely) placed inside a namespace.
* Fixed a warning in osg\Camera due to the META_Object macro that confused doxygen. Adding a semi-colon fixed this.
* Removed auto_Mainpage from the INCLUDE option, because I am positive that this file does not belong there; It never generated useful documentation anyway.
* I added the OSG version number environment variable to the PROJECT_NUMBER option so that the version number is now shown on the main page of generated documentation (e.g. index.html).
* Changed option FULL_PATH_NAMES to YES, but made sure STRIP_FROM_PATH stripped the absolute path until the include dir. This fixed an issue that created mangled names for identical filenames in different directories. E.g. osg/Export and osgDB/Export are now correctly named.
* Changed option SHOW_DIRECTORIES to yes, which is a case of preference I guess.
"
2008-08-18 19:00:40 +08:00
|
|
|
/** Given a specific time, return the transformation matrix for a point. */
|
2003-09-06 06:35:34 +08:00
|
|
|
bool getMatrix(double time,Matrixd& matrix) const
|
2002-08-13 23:31:10 +08:00
|
|
|
{
|
|
|
|
ControlPoint cp;
|
|
|
|
if (!getInterpolatedControlPoint(time,cp)) return false;
|
|
|
|
cp.getMatrix(matrix);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2004-09-01 16:15:36 +08:00
|
|
|
/** Given a specific time, return the inverse transformation matrix for a point. */
|
2003-09-06 06:35:34 +08:00
|
|
|
bool getInverse(double time,Matrixf& matrix) const
|
2002-08-13 23:31:10 +08:00
|
|
|
{
|
|
|
|
ControlPoint cp;
|
|
|
|
if (!getInterpolatedControlPoint(time,cp)) return false;
|
|
|
|
cp.getInverse(matrix);
|
|
|
|
return true;
|
|
|
|
}
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2003-09-06 06:35:34 +08:00
|
|
|
bool getInverse(double time,Matrixd& matrix) const
|
|
|
|
{
|
|
|
|
ControlPoint cp;
|
|
|
|
if (!getInterpolatedControlPoint(time,cp)) return false;
|
|
|
|
cp.getInverse(matrix);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2004-09-01 16:15:36 +08:00
|
|
|
/** Given a specific time, return the local ControlPoint frame for a point. */
|
2002-10-10 22:58:44 +08:00
|
|
|
virtual bool getInterpolatedControlPoint(double time,ControlPoint& controlPoint) const;
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2008-05-27 01:30:43 +08:00
|
|
|
/** Insert a control point into the AnimationPath.*/
|
2002-10-10 22:58:44 +08:00
|
|
|
void insert(double time,const ControlPoint& controlPoint);
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2002-08-13 23:31:10 +08:00
|
|
|
double getFirstTime() const { if (!_timeControlPointMap.empty()) return _timeControlPointMap.begin()->first; else return 0.0;}
|
|
|
|
double getLastTime() const { if (!_timeControlPointMap.empty()) return _timeControlPointMap.rbegin()->first; else return 0.0;}
|
|
|
|
double getPeriod() const { return getLastTime()-getFirstTime();}
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2002-08-13 23:31:10 +08:00
|
|
|
enum LoopMode
|
|
|
|
{
|
|
|
|
SWING,
|
|
|
|
LOOP,
|
|
|
|
NO_LOOPING
|
|
|
|
};
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2002-08-13 23:31:10 +08:00
|
|
|
void setLoopMode(LoopMode lm) { _loopMode = lm; }
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2002-08-13 23:31:10 +08:00
|
|
|
LoopMode getLoopMode() const { return _loopMode; }
|
2002-02-27 08:58:54 +08:00
|
|
|
|
2002-11-06 18:24:33 +08:00
|
|
|
|
|
|
|
typedef std::map<double,ControlPoint> TimeControlPointMap;
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2004-12-13 09:07:24 +08:00
|
|
|
void setTimeControlPointMap(TimeControlPointMap& tcpm) { _timeControlPointMap=tcpm; }
|
|
|
|
|
2002-11-06 18:24:33 +08:00
|
|
|
TimeControlPointMap& getTimeControlPointMap() { return _timeControlPointMap; }
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2002-11-06 18:24:33 +08:00
|
|
|
const TimeControlPointMap& getTimeControlPointMap() const { return _timeControlPointMap; }
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2004-03-26 18:48:29 +08:00
|
|
|
bool empty() const { return _timeControlPointMap.empty(); }
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2007-06-14 03:54:00 +08:00
|
|
|
void clear() { _timeControlPointMap.clear(); }
|
2004-03-26 18:48:29 +08:00
|
|
|
|
2004-09-01 16:15:36 +08:00
|
|
|
/** Read the animation path from a flat ASCII file stream. */
|
2003-11-04 07:13:31 +08:00
|
|
|
void read(std::istream& in);
|
|
|
|
|
2004-09-01 16:15:36 +08:00
|
|
|
/** Write the animation path to a flat ASCII file stream. */
|
2004-02-21 04:10:51 +08:00
|
|
|
void write(std::ostream& out) const;
|
2002-11-06 18:24:33 +08:00
|
|
|
|
2008-05-27 01:30:43 +08:00
|
|
|
/** Write the control point to a flat ASCII file stream. */
|
|
|
|
void write(TimeControlPointMap::const_iterator itr, std::ostream& out) const;
|
|
|
|
|
2002-02-27 08:58:54 +08:00
|
|
|
protected:
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2002-02-27 08:58:54 +08:00
|
|
|
virtual ~AnimationPath() {}
|
|
|
|
|
2002-08-13 23:31:10 +08:00
|
|
|
TimeControlPointMap _timeControlPointMap;
|
|
|
|
LoopMode _loopMode;
|
2002-02-27 08:58:54 +08:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2003-01-03 04:10:04 +08:00
|
|
|
|
2005-04-12 01:14:17 +08:00
|
|
|
class OSG_EXPORT AnimationPathCallback : public NodeCallback
|
2003-01-03 04:10:04 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
AnimationPathCallback():
|
2004-09-01 16:34:49 +08:00
|
|
|
_pivotPoint(0.0,0.0,0.0),
|
2004-02-21 04:10:51 +08:00
|
|
|
_useInverseMatrix(false),
|
2003-01-03 04:10:04 +08:00
|
|
|
_timeOffset(0.0),
|
|
|
|
_timeMultiplier(1.0),
|
2004-01-12 21:53:04 +08:00
|
|
|
_firstTime(DBL_MAX),
|
2003-11-04 07:13:31 +08:00
|
|
|
_latestTime(0.0),
|
2004-02-21 04:47:35 +08:00
|
|
|
_pause(false),
|
2003-11-04 07:13:31 +08:00
|
|
|
_pauseTime(0.0) {}
|
2003-01-03 04:10:04 +08:00
|
|
|
|
|
|
|
AnimationPathCallback(const AnimationPathCallback& apc,const CopyOp& copyop):
|
2016-08-29 16:41:40 +08:00
|
|
|
Object(apc, copyop),
|
|
|
|
Callback(apc, copyop),
|
|
|
|
NodeCallback(apc, copyop),
|
2003-01-03 04:10:04 +08:00
|
|
|
_animationPath(apc._animationPath),
|
2004-02-22 19:58:44 +08:00
|
|
|
_pivotPoint(apc._pivotPoint),
|
2003-11-04 07:13:31 +08:00
|
|
|
_useInverseMatrix(apc._useInverseMatrix),
|
2003-01-03 04:10:04 +08:00
|
|
|
_timeOffset(apc._timeOffset),
|
|
|
|
_timeMultiplier(apc._timeMultiplier),
|
|
|
|
_firstTime(apc._firstTime),
|
2003-11-04 07:13:31 +08:00
|
|
|
_latestTime(apc._latestTime),
|
|
|
|
_pause(apc._pause),
|
|
|
|
_pauseTime(apc._pauseTime) {}
|
2003-01-03 04:10:04 +08:00
|
|
|
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2003-04-27 18:58:39 +08:00
|
|
|
META_Object(osg,AnimationPathCallback);
|
2003-01-03 04:10:04 +08:00
|
|
|
|
2005-11-09 23:11:22 +08:00
|
|
|
/** Construct an AnimationPathCallback with a specified animation path.*/
|
2004-09-01 16:34:49 +08:00
|
|
|
AnimationPathCallback(AnimationPath* ap,double timeOffset=0.0,double timeMultiplier=1.0):
|
2003-01-03 04:10:04 +08:00
|
|
|
_animationPath(ap),
|
2004-09-01 16:34:49 +08:00
|
|
|
_pivotPoint(0.0,0.0,0.0),
|
2003-11-04 07:13:31 +08:00
|
|
|
_useInverseMatrix(false),
|
2003-01-03 04:10:04 +08:00
|
|
|
_timeOffset(timeOffset),
|
|
|
|
_timeMultiplier(timeMultiplier),
|
2004-01-12 21:53:04 +08:00
|
|
|
_firstTime(DBL_MAX),
|
2003-11-04 07:13:31 +08:00
|
|
|
_latestTime(0.0),
|
|
|
|
_pause(false),
|
|
|
|
_pauseTime(0.0) {}
|
2004-02-22 00:56:23 +08:00
|
|
|
|
2010-09-24 22:53:10 +08:00
|
|
|
/** Construct an AnimationPathCallback and automatically create an animation path to produce a rotation about a point.*/
|
2005-11-09 23:11:22 +08:00
|
|
|
AnimationPathCallback(const osg::Vec3d& pivot,const osg::Vec3d& axis,float angularVelocity);
|
2012-03-22 01:36:20 +08:00
|
|
|
|
|
|
|
|
2003-01-03 04:10:04 +08:00
|
|
|
void setAnimationPath(AnimationPath* path) { _animationPath = path; }
|
|
|
|
AnimationPath* getAnimationPath() { return _animationPath.get(); }
|
|
|
|
const AnimationPath* getAnimationPath() const { return _animationPath.get(); }
|
2004-02-22 19:58:44 +08:00
|
|
|
|
2004-05-20 18:15:48 +08:00
|
|
|
inline void setPivotPoint(const Vec3d& pivot) { _pivotPoint = pivot; }
|
|
|
|
inline const Vec3d& getPivotPoint() const { return _pivotPoint; }
|
2004-02-22 19:58:44 +08:00
|
|
|
|
2003-11-04 07:13:31 +08:00
|
|
|
void setUseInverseMatrix(bool useInverseMatrix) { _useInverseMatrix = useInverseMatrix; }
|
|
|
|
bool getUseInverseMatrix() const { return _useInverseMatrix; }
|
|
|
|
|
2004-02-22 00:56:23 +08:00
|
|
|
void setTimeOffset(double offset) { _timeOffset = offset; }
|
|
|
|
double getTimeOffset() const { return _timeOffset; }
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2004-02-22 00:56:23 +08:00
|
|
|
void setTimeMultiplier(double multiplier) { _timeMultiplier = multiplier; }
|
|
|
|
double getTimeMultiplier() const { return _timeMultiplier; }
|
|
|
|
|
|
|
|
|
2008-09-18 21:54:13 +08:00
|
|
|
virtual void reset();
|
2003-01-03 04:10:04 +08:00
|
|
|
|
2003-11-04 07:13:31 +08:00
|
|
|
void setPause(bool pause);
|
2004-12-13 09:07:24 +08:00
|
|
|
bool getPause() const { return _pause; }
|
2003-01-03 04:10:04 +08:00
|
|
|
|
2004-09-01 16:15:36 +08:00
|
|
|
/** Get the animation time that is used to specify the position along
|
|
|
|
* the AnimationPath. Animation time is computed from the formula:
|
|
|
|
* ((_latestTime-_firstTime)-_timeOffset)*_timeMultiplier.*/
|
2008-09-18 21:54:13 +08:00
|
|
|
virtual double getAnimationTime() const;
|
2004-01-31 19:34:28 +08:00
|
|
|
|
2004-09-01 16:15:36 +08:00
|
|
|
/** Implements the callback. */
|
2003-01-03 04:10:04 +08:00
|
|
|
virtual void operator()(Node* node, NodeVisitor* nv);
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2003-11-04 07:13:31 +08:00
|
|
|
void update(osg::Node& node);
|
2003-01-03 04:10:04 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ref_ptr<AnimationPath> _animationPath;
|
2004-05-20 18:15:48 +08:00
|
|
|
osg::Vec3d _pivotPoint;
|
2003-11-04 07:13:31 +08:00
|
|
|
bool _useInverseMatrix;
|
2003-01-03 04:10:04 +08:00
|
|
|
double _timeOffset;
|
|
|
|
double _timeMultiplier;
|
|
|
|
double _firstTime;
|
2003-11-04 07:13:31 +08:00
|
|
|
double _latestTime;
|
|
|
|
bool _pause;
|
|
|
|
double _pauseTime;
|
2003-01-10 17:25:42 +08:00
|
|
|
|
|
|
|
protected:
|
2012-03-22 01:36:20 +08:00
|
|
|
|
2003-01-10 17:25:42 +08:00
|
|
|
~AnimationPathCallback(){}
|
|
|
|
|
2003-01-03 04:10:04 +08:00
|
|
|
};
|
|
|
|
|
2002-02-27 08:58:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|