OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
osgAnimation::Timeline Class Reference

#include <Timeline.h>

Inheritance diagram for osgAnimation::Timeline:
Inheritance graph
[legend]
Collaboration diagram for osgAnimation::Timeline:
Collaboration graph
[legend]

Classes

struct  Command
 

Public Types

enum  TimelineStatus { Play, Stop }
 
typedef std::vector< FrameActionActionList
 
typedef std::map< int, ActionListActionLayers
 
- 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 ActionListgetActionLayer (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::StatsgetStats ()
 
void collectStats (bool state)
 
osgAnimation::StatsActionVisitorgetStatsVisitor ()
 
const ActionLayersgetActionLayers () 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)
 
CallbackgetCallback (unsigned int frame)
 
void removeCallback (Callback *)
 
CallbackgetFrameCallback (unsigned int frame)
 
CallbackgetFrameCallback (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 &copyop=CopyOp::SHALLOW_COPY)
 
virtual ObjectcloneType () const =0
 
virtual Objectclone (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 NodeasNode ()
 
virtual const NodeasNode () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual const NodeVisitorasNodeVisitor () const
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () 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::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () 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 &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Protected Types

typedef std::vector< CommandCommandList
 
- 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::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

Detailed Description

Definition at line 31 of file Timeline.h.

Member Typedef Documentation

Definition at line 49 of file Timeline.h.

Definition at line 48 of file Timeline.h.

typedef std::vector<Command> osgAnimation::Timeline::CommandList
protected

Definition at line 109 of file Timeline.h.

Member Enumeration Documentation

Enumerator
Play 
Stop 

Definition at line 40 of file Timeline.h.

Constructor & Destructor Documentation

osgAnimation::Timeline::Timeline ( )
osgAnimation::Timeline::Timeline ( const Timeline nc,
const osg::CopyOp op = osg::CopyOp::SHALLOW_COPY 
)

Member Function Documentation

virtual void osgAnimation::Timeline::addActionAt ( unsigned int  frame,
Action action,
int  priority = 0 
)
virtual
virtual void osgAnimation::Timeline::addActionAt ( double  t,
Action action,
int  priority = 0 
)
virtual
void osgAnimation::Timeline::addActionNow ( Action action,
int  priority = 0 
)
void osgAnimation::Timeline::clearActions ( )
void osgAnimation::Timeline::collectStats ( bool  state)
const ActionList& osgAnimation::Timeline::getActionLayer ( int  i)
inline

Definition at line 51 of file Timeline.h.

const ActionLayers& osgAnimation::Timeline::getActionLayers ( ) const
inline

Definition at line 80 of file Timeline.h.

unsigned int osgAnimation::Timeline::getCurrentFrame ( ) const
inline

Definition at line 52 of file Timeline.h.

double osgAnimation::Timeline::getCurrentTime ( ) const
inline

Definition at line 53 of file Timeline.h.

bool osgAnimation::Timeline::getEvaluating ( ) const
inline

Definition at line 58 of file Timeline.h.

osg::Stats* osgAnimation::Timeline::getStats ( )
osgAnimation::StatsActionVisitor* osgAnimation::Timeline::getStatsVisitor ( )
TimelineStatus osgAnimation::Timeline::getStatus ( ) const
inline

Definition at line 46 of file Timeline.h.

void osgAnimation::Timeline::gotoFrame ( unsigned int  frame)
inline

Definition at line 56 of file Timeline.h.

void osgAnimation::Timeline::internalAddAction ( int  priority,
const FrameAction ftl 
)
protected
void osgAnimation::Timeline::internalRemoveAction ( Action action)
protected
bool osgAnimation::Timeline::isActive ( Action activeAction)
osgAnimation::Timeline::META_Action ( osgAnimation  ,
Timeline   
)
void osgAnimation::Timeline::play ( )
inline

Definition at line 55 of file Timeline.h.

void osgAnimation::Timeline::processPendingOperation ( )
void osgAnimation::Timeline::removeAction ( Action action)
void osgAnimation::Timeline::setAnimationManager ( AnimationManagerBase )
void osgAnimation::Timeline::setEvaluating ( bool  state)
inline

Definition at line 72 of file Timeline.h.

void osgAnimation::Timeline::setLastFrameEvaluated ( unsigned int  frame)
inline

Definition at line 70 of file Timeline.h.

void osgAnimation::Timeline::setStats ( osg::Stats stats)
void osgAnimation::Timeline::stop ( )
inline

Definition at line 57 of file Timeline.h.

void osgAnimation::Timeline::traverse ( ActionVisitor visitor)
virtual

Reimplemented from osgAnimation::Action.

virtual void osgAnimation::Timeline::update ( double  simulationTime)
virtual

Member Data Documentation

ActionLayers osgAnimation::Timeline::_actions
protected

Definition at line 86 of file Timeline.h.

CommandList osgAnimation::Timeline::_addActionOperations
protected

Definition at line 110 of file Timeline.h.

osg::observer_ptr<AnimationManagerBase> osgAnimation::Timeline::_animationManager
protected

Definition at line 85 of file Timeline.h.

bool osgAnimation::Timeline::_collectStats
protected

Definition at line 94 of file Timeline.h.

unsigned int osgAnimation::Timeline::_currentFrame
protected

Definition at line 89 of file Timeline.h.

bool osgAnimation::Timeline::_evaluating
protected

Definition at line 99 of file Timeline.h.

bool osgAnimation::Timeline::_initFirstFrame
protected

Definition at line 91 of file Timeline.h.

double osgAnimation::Timeline::_lastUpdate
protected

Definition at line 87 of file Timeline.h.

unsigned int osgAnimation::Timeline::_previousFrameEvaluated
protected

Definition at line 90 of file Timeline.h.

ActionList osgAnimation::Timeline::_removeActionOperations
protected

Definition at line 111 of file Timeline.h.

double osgAnimation::Timeline::_speed
protected

Definition at line 88 of file Timeline.h.

TimelineStatus osgAnimation::Timeline::_state
protected

Definition at line 92 of file Timeline.h.

osg::ref_ptr<osg::Stats> osgAnimation::Timeline::_stats
protected

Definition at line 95 of file Timeline.h.

osg::ref_ptr<osgAnimation::StatsActionVisitor> osgAnimation::Timeline::_statsVisitor
protected

Definition at line 96 of file Timeline.h.


The documentation for this class was generated from the following file: