|
OSG
3.4.0
|
#include <Timeline.h>


Classes | |
| struct | Command |
Public Types | |
| enum | TimelineStatus { Play, Stop } |
| typedef std::vector< FrameAction > | ActionList |
| typedef std::map< int, ActionList > | ActionLayers |
Public Types inherited from osgAnimation::Action | |
| typedef std::map< unsigned int, osg::ref_ptr< Callback > > | FrameCallback |
Public Types inherited from osg::Object | |
| enum | DataVariance { DYNAMIC, STATIC, UNSPECIFIED } |
Public Member Functions | |
| Timeline () | |
| Timeline (const Timeline &nc, const osg::CopyOp &op=osg::CopyOp::SHALLOW_COPY) | |
| META_Action (osgAnimation, Timeline) | |
| TimelineStatus | getStatus () const |
| const ActionList & | getActionLayer (int i) |
| unsigned int | getCurrentFrame () const |
| double | getCurrentTime () const |
| void | play () |
| void | gotoFrame (unsigned int frame) |
| void | stop () |
| bool | getEvaluating () const |
| bool | isActive (Action *activeAction) |
| void | removeAction (Action *action) |
| virtual void | addActionAt (unsigned int frame, Action *action, int priority=0) |
| virtual void | addActionAt (double t, Action *action, int priority=0) |
| void | addActionNow (Action *action, int priority=0) |
| void | clearActions () |
| virtual void | update (double simulationTime) |
| void | setLastFrameEvaluated (unsigned int frame) |
| void | setEvaluating (bool state) |
| void | traverse (ActionVisitor &visitor) |
| void | setStats (osg::Stats *stats) |
| osg::Stats * | getStats () |
| void | collectStats (bool state) |
| osgAnimation::StatsActionVisitor * | getStatsVisitor () |
| const ActionLayers & | getActionLayers () const |
| void | processPendingOperation () |
| void | setAnimationManager (AnimationManagerBase *) |
Public Member Functions inherited from osgAnimation::Action | |
| META_Action (osgAnimation, Action) | |
| Action () | |
| Action (const Action &, const osg::CopyOp &) | |
| void | setCallback (double when, Callback *callback) |
| void | setCallback (unsigned int frame, Callback *callback) |
| Callback * | getCallback (unsigned int frame) |
| void | removeCallback (Callback *) |
| Callback * | getFrameCallback (unsigned int frame) |
| Callback * | getFrameCallback (double time) |
| unsigned int | getFramesPerSecond () const |
| void | setNumFrames (unsigned int numFrames) |
| void | setDuration (double duration) |
| unsigned int | getNumFrames () const |
| double | getDuration () const |
| virtual void | setLoop (unsigned int nb) |
| virtual unsigned int | getLoop () const |
| bool | evaluateFrame (unsigned int frame, unsigned int &resultframe, unsigned int &nbloop) |
Public Member Functions inherited from osg::Object | |
| Object () | |
| Object (bool threadSafeRefUnref) | |
| Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
| virtual Object * | cloneType () const =0 |
| virtual Object * | clone (const CopyOp &) const =0 |
| virtual bool | isSameKindAs (const Object *) const |
| virtual const char * | libraryName () const =0 |
| virtual const char * | className () const =0 |
| std::string | getCompoundClassName () const |
| virtual Node * | asNode () |
| virtual const Node * | asNode () const |
| virtual NodeVisitor * | asNodeVisitor () |
| virtual const NodeVisitor * | asNodeVisitor () const |
| virtual StateAttribute * | asStateAttribute () |
| virtual const StateAttribute * | asStateAttribute () const |
| virtual Uniform * | asUniform () |
| virtual const Uniform * | asUniform () const |
| virtual void | setThreadSafeRefUnref (bool threadSafe) |
| virtual void | setName (const std::string &name) |
| void | setName (const char *name) |
| const std::string & | getName () const |
| void | setDataVariance (DataVariance dv) |
| DataVariance | getDataVariance () const |
| virtual void | computeDataVariance () |
| void | setUserDataContainer (osg::UserDataContainer *udc) |
| osg::UserDataContainer * | getUserDataContainer () |
| const osg::UserDataContainer * | getUserDataContainer () const |
| osg::UserDataContainer * | getOrCreateUserDataContainer () |
| virtual void | setUserData (Referenced *obj) |
| virtual Referenced * | getUserData () |
| virtual const Referenced * | getUserData () const |
| template<typename T > | |
| bool | getUserValue (const std::string &name, T &value) const |
| template<typename T > | |
| void | setUserValue (const std::string &name, const T &value) |
| virtual void | resizeGLObjectBuffers (unsigned int) |
| virtual void | releaseGLObjects (osg::State *=0) const |
| template<typename T > | |
| BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool | getUserValue (const std::string &name, T &value) const |
Public Member Functions inherited from osg::Referenced | |
| Referenced () | |
| Referenced (bool threadSafeRefUnref) | |
| Referenced (const Referenced &) | |
| Referenced & | operator= (const Referenced &) |
| bool | getThreadSafeRefUnref () const |
| OpenThreads::Mutex * | getRefMutex () const |
| int | ref () const |
| int | unref () const |
| int | unref_nodelete () const |
| int | referenceCount () const |
| ObserverSet * | getObserverSet () const |
| ObserverSet * | getOrCreateObserverSet () const |
| void | addObserver (Observer *observer) const |
| void | removeObserver (Observer *observer) const |
Protected Types | |
| typedef std::vector< Command > | CommandList |
Protected Types inherited from osgAnimation::Action | |
| enum | Status { Play, Stop } |
Protected Member Functions | |
| void | internalRemoveAction (Action *action) |
| void | internalAddAction (int priority, const FrameAction &ftl) |
Protected Member Functions inherited from osg::Object | |
| virtual | ~Object () |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| osg::observer_ptr < AnimationManagerBase > | _animationManager |
| ActionLayers | _actions |
| double | _lastUpdate |
| double | _speed |
| unsigned int | _currentFrame |
| unsigned int | _previousFrameEvaluated |
| bool | _initFirstFrame |
| TimelineStatus | _state |
| bool | _collectStats |
| osg::ref_ptr< osg::Stats > | _stats |
| osg::ref_ptr < osgAnimation::StatsActionVisitor > | _statsVisitor |
| bool | _evaluating |
| CommandList | _addActionOperations |
| ActionList | _removeActionOperations |
Protected Attributes inherited from osgAnimation::Action | |
| FrameCallback | _framesCallback |
| double | _speed |
| unsigned int | _fps |
| unsigned int | _numberFrame |
| unsigned int | _loop |
| Status | _state |
Protected Attributes inherited from osg::Object | |
| std::string | _name |
| DataVariance | _dataVariance |
| osg::UserDataContainer * | _userDataContainer |
Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
| static bool | getThreadSafeReferenceCounting () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
Definition at line 31 of file Timeline.h.
| typedef std::map<int, ActionList> osgAnimation::Timeline::ActionLayers |
Definition at line 49 of file Timeline.h.
| typedef std::vector<FrameAction> osgAnimation::Timeline::ActionList |
Definition at line 48 of file Timeline.h.
|
protected |
Definition at line 109 of file Timeline.h.
| Enumerator | |
|---|---|
| Play | |
| Stop | |
Definition at line 40 of file Timeline.h.
| osgAnimation::Timeline::Timeline | ( | ) |
| osgAnimation::Timeline::Timeline | ( | const Timeline & | nc, |
| const osg::CopyOp & | op = osg::CopyOp::SHALLOW_COPY |
||
| ) |
|
virtual |
|
virtual |
| void osgAnimation::Timeline::addActionNow | ( | Action * | action, |
| int | priority = 0 |
||
| ) |
| void osgAnimation::Timeline::clearActions | ( | ) |
| void osgAnimation::Timeline::collectStats | ( | bool | state | ) |
|
inline |
Definition at line 51 of file Timeline.h.
|
inline |
Definition at line 80 of file Timeline.h.
|
inline |
Definition at line 52 of file Timeline.h.
|
inline |
Definition at line 53 of file Timeline.h.
|
inline |
Definition at line 58 of file Timeline.h.
| osg::Stats* osgAnimation::Timeline::getStats | ( | ) |
| osgAnimation::StatsActionVisitor* osgAnimation::Timeline::getStatsVisitor | ( | ) |
|
inline |
Definition at line 46 of file Timeline.h.
|
inline |
Definition at line 56 of file Timeline.h.
|
protected |
|
protected |
| bool osgAnimation::Timeline::isActive | ( | Action * | activeAction | ) |
| osgAnimation::Timeline::META_Action | ( | osgAnimation | , |
| Timeline | |||
| ) |
|
inline |
Definition at line 55 of file Timeline.h.
| void osgAnimation::Timeline::processPendingOperation | ( | ) |
| void osgAnimation::Timeline::removeAction | ( | Action * | action | ) |
| void osgAnimation::Timeline::setAnimationManager | ( | AnimationManagerBase * | ) |
|
inline |
Definition at line 72 of file Timeline.h.
|
inline |
Definition at line 70 of file Timeline.h.
| void osgAnimation::Timeline::setStats | ( | osg::Stats * | stats | ) |
|
inline |
Definition at line 57 of file Timeline.h.
|
virtual |
Reimplemented from osgAnimation::Action.
|
virtual |
|
protected |
Definition at line 86 of file Timeline.h.
|
protected |
Definition at line 110 of file Timeline.h.
|
protected |
Definition at line 85 of file Timeline.h.
|
protected |
Definition at line 94 of file Timeline.h.
|
protected |
Definition at line 89 of file Timeline.h.
|
protected |
Definition at line 99 of file Timeline.h.
|
protected |
Definition at line 91 of file Timeline.h.
|
protected |
Definition at line 87 of file Timeline.h.
|
protected |
Definition at line 90 of file Timeline.h.
|
protected |
Definition at line 111 of file Timeline.h.
|
protected |
Definition at line 88 of file Timeline.h.
|
protected |
Definition at line 92 of file Timeline.h.
|
protected |
Definition at line 95 of file Timeline.h.
|
protected |
Definition at line 96 of file Timeline.h.
1.8.8