class SG_EXPORT osg::AnimationPath

AnimationPath for specify the time varying transformation pathway to use when update camera and model objects.

Inheritance:


Public Classes

[more]struct ControlPoint
[more]enum LoopMode

Public Methods

[more] AnimationPath()
[more] AnimationPath(const AnimationPath& ap, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
[more] META_Object(osg, AnimationPath)
[more]bool getMatrix(double time, Matrixf& matrix) const
get the transformation matrix for a point in time
[more]bool getMatrix(double time, Matrixd& matrix) const
get the transformation matrix for a point in time
[more]bool getInverse(double time, Matrixf& matrix) const
get the inverse transformation matrix for a point in time
[more]bool getInverse(double time, Matrixd& matrix) const
[more]virtual bool getInterpolatedControlPoint(double time, ControlPoint& controlPoint) const
get the local ControlPoint frame for a point in time
[more]void insert(double time, const ControlPoint& controlPoint)
[more]double getFirstTime() const
[more]double getLastTime() const
[more]double getPeriod() const
[more]void setLoopMode(LoopMode lm)
[more]LoopMode getLoopMode() const
[more]TimeControlPointMap& getTimeControlPointMap()
[more]const TimeControlPointMap& getTimeControlPointMap() const
[more]bool empty() const
[more]void read(std::istream& in)
read the anumation path from a flat ascii file stream
[more]void write(std::ostream& out) const
write the anumation path to a flat ascii file stream

Public

[more]typedef std::map<double,ControlPoint> TimeControlPointMap

Protected Fields

[more]TimeControlPointMap _timeControlPointMap
[more]LoopMode _loopMode

Protected Methods

[more]virtual ~AnimationPath()


Inherited from Object:

Public Classes

oenum DataVariance

Public Methods

ovirtual Object* cloneType() const
ovirtual Object* clone(const CopyOp&) const
ovirtual bool isSameKindAs(const Object*) const
ovirtual const char* libraryName() const
ovirtual const char* className() const
oinline void setDataVariance(DataVariance dv)
oinline DataVariance getDataVariance() const
oinline void setUserData(Referenced* obj)
oinline Referenced* getUserData()
oinline const Referenced* getUserData() const

Protected Fields

oDataVariance _dataVariance
oref_ptr<Referenced> _userData


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (const Referenced&)
ostatic void setDeleteHandler(DeleteHandler* handler)
ostatic DeleteHandler* getDeleteHandler()
oinline void ref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline void unref() const

Protected Fields

omutable OpenThreads::Mutex _refMutex
omutable int _refCount


Documentation

AnimationPath for specify the time varying transformation pathway to use when update camera and model objects. Subclassed from Transform::ComputeTransformCallback allows AnimationPath to be attached directly to Transform nodes to move subgraphs around the scene.
o AnimationPath()

o AnimationPath(const AnimationPath& ap, const CopyOp& copyop=CopyOp::SHALLOW_COPY)

o META_Object(osg, AnimationPath)

ostruct ControlPoint

o ControlPoint()

o ControlPoint(const osg::Vec3d& position)

o ControlPoint(const osg::Vec3d& position, const osg::Quat& rotation)

o ControlPoint(const osg::Vec3d& position, const osg::Quat& rotation, const osg::Vec3d& scale)

oosg::Vec3d _position

oosg::Quat _rotation

oosg::Vec3d _scale

oinline void interpolate(float ratio, const ControlPoint& first, const ControlPoint& second)

oinline void getMatrix(Matrixf& matrix) const

oinline void getMatrix(Matrixd& matrix) const

oinline void getInverse(Matrixf& matrix) const

oinline void getInverse(Matrixd& matrix) const

obool getMatrix(double time, Matrixf& matrix) const
get the transformation matrix for a point in time

obool getMatrix(double time, Matrixd& matrix) const
get the transformation matrix for a point in time

obool getInverse(double time, Matrixf& matrix) const
get the inverse transformation matrix for a point in time

obool getInverse(double time, Matrixd& matrix) const

ovirtual bool getInterpolatedControlPoint(double time, ControlPoint& controlPoint) const
get the local ControlPoint frame for a point in time

ovoid insert(double time, const ControlPoint& controlPoint)

odouble getFirstTime() const

odouble getLastTime() const

odouble getPeriod() const

oenum LoopMode

o SWING

o LOOP

o NO_LOOPING

ovoid setLoopMode(LoopMode lm)

oLoopMode getLoopMode() const

otypedef std::map<double,ControlPoint> TimeControlPointMap

oTimeControlPointMap& getTimeControlPointMap()

oconst TimeControlPointMap& getTimeControlPointMap() const

obool empty() const

ovoid read(std::istream& in)
read the anumation path from a flat ascii file stream

ovoid write(std::ostream& out) const
write the anumation path to a flat ascii file stream

ovirtual ~AnimationPath()

oTimeControlPointMap _timeControlPointMap

oLoopMode _loopMode


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.