14#ifndef OSGGA_ANIMATION_PATH_MANIPULATOR
15#define OSGGA_ANIMATION_PATH_MANIPULATOR 1
42 virtual const char*
className()
const {
return "AnimationPath"; }
86 void home(
double currentTime);
The 'GA' in osgGA stands for 'GUI Abstraction'; the osgGA namespace provides facilities to help devel...
Definition Callback:21
AnimationPath encapsulates a time varying transformation pathway.
Definition AnimationPath:34
Definition ApplicationUsage:26
static Matrixd inverse(const Matrixd &matrix)
Definition Matrixd:536
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Base class for providing reference counted objects.
Definition Referenced:44
bool valid() const
Definition AnimationPathManipulator:81
void setTimeOffset(double o)
Definition AnimationPathManipulator:47
AnimationPathManipulator(const std::string &filename)
osg::Matrixd _matrix
Definition AnimationPathManipulator:115
void setAnimationPath(osg::AnimationPath *animationPath)
Definition AnimationPathManipulator:75
AnimationCompletedCallback * getAnimationCompletedCallback()
Definition AnimationPathManipulator:56
void home(const GUIEventAdapter &ea, GUIActionAdapter &us)
Move the camera to the default position.
double _timeScale
Definition AnimationPathManipulator:104
double getTimeOffset() const
Definition AnimationPathManipulator:48
virtual const char * className() const
return the name of the object's class type.
Definition AnimationPathManipulator:42
osg::ref_ptr< osg::AnimationPath > _animationPath
Definition AnimationPathManipulator:101
void setPrintOutTimingInfo(bool printOutTimingInfo)
Definition AnimationPathManipulator:59
double _pauseTime
Definition AnimationPathManipulator:108
bool _valid
Definition AnimationPathManipulator:95
double _realStartOfTimedPeriod
Definition AnimationPathManipulator:111
void handleFrame(double time)
AnimationPathManipulator(osg::AnimationPath *animationPath=0)
bool getPrintOutTimingInfo() const
Definition AnimationPathManipulator:60
void setTimeScale(double s)
Definition AnimationPathManipulator:44
virtual bool handle(const GUIEventAdapter &ea, GUIActionAdapter &us)
Handle events, return true if handled, false otherwise.
const AnimationCompletedCallback * getAnimationCompletedCallback() const
Definition AnimationPathManipulator:57
bool _printOutTimingInfo
Definition AnimationPathManipulator:97
double getTimeScale() const
Definition AnimationPathManipulator:45
void setAnimationCompletedCallback(AnimationCompletedCallback *acc)
Definition AnimationPathManipulator:55
double _timeOffset
Definition AnimationPathManipulator:103
virtual void setByInverseMatrix(const osg::Matrixd &matrix)
set the position of the matrix manipulator using a 4x4 Matrix.
Definition AnimationPathManipulator:66
bool _isPaused
Definition AnimationPathManipulator:109
osg::ref_ptr< AnimationCompletedCallback > _animationCompletedCallback
Definition AnimationPathManipulator:106
void home(double currentTime)
Move the camera to the default position.
virtual void getUsage(osg::ApplicationUsage &usage) const
Get the keyboard and mouse usage of this manipulator.
virtual void setByMatrix(const osg::Matrixd &matrix)
set the position of the matrix manipulator using a 4x4 Matrix.
Definition AnimationPathManipulator:63
osg::AnimationPath * getAnimationPath()
Definition AnimationPathManipulator:77
const osg::AnimationPath * getAnimationPath() const
Definition AnimationPathManipulator:79
double _animStartOfTimedPeriod
Definition AnimationPathManipulator:112
virtual osg::Matrixd getInverseMatrix() const
get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model...
Definition AnimationPathManipulator:72
virtual osg::Matrixd getMatrix() const
get the position of the manipulator as 4x4 Matrix.
Definition AnimationPathManipulator:69
void init(const GUIEventAdapter &ea, GUIActionAdapter &us)
Start/restart the manipulator.
int _numOfFramesSinceStartOfTimedPeriod
Definition AnimationPathManipulator:113
Definition AnimationPathManipulator:51
virtual void completed(const AnimationPathManipulator *apm)=0
Definition GUIActionAdapter:62
Event class for storing Keyboard, mouse and window events.
Definition GUIEventAdapter:82
#define OSGGA_EXPORT
Definition Export:40