OpenIG  2.0.4
cross-platform open-source OpenSceneGraph Image Generator
Classes | Typedefs
Animation.h File Reference

Plays animation on an Entity with a callbacks attached. More...

#include <Core-Base/Export.h>
#include <Core-Base/ImageGenerator.h>
#include <osg/Referenced>
#include <osg/ref_ptr>
#include <osg/Vec3>
#include <osg/Timer>
#include <utility>
#include <vector>
#include <string>
#include <map>

Go to the source code of this file.

Classes

class  OpenIG::Base::AnimationSequencePlaybackCallback
 The AnimationSequencePlaybackCallback class. More...
 
class  OpenIG::Base::RefAnimationSequenceCallbacks
 
class  OpenIG::Base::Animations
 The Animations class. More...
 
struct  OpenIG::Base::Animations::Animation
 The Animation struct. More...
 
struct  OpenIG::Base::Animations::Animation::Sequence
 The Sequence struct. More...
 
struct  OpenIG::Base::Animations::AnimationContainer
 Referenced pointer of std::vector of Animation. More...
 
struct  OpenIG::Base::Animations::RuntimeAnimation
 The RuntimeAnimation struct. More...
 

Typedefs

typedef std::map< std::string, osg::ref_ptr< AnimationSequencePlaybackCallback > > OpenIG::Base::AnimationSequenceCallbacks
 
typedef std::map< std::string, osg::ref_ptr< AnimationSequencePlaybackCallback > >::iterator OpenIG::Base::AnimationSequenceCallbacksIterator
 
typedef std::map< std::string, osg::ref_ptr< AnimationSequencePlaybackCallback > >::const_iterator OpenIG::Base::AnimationSequenceCallbacksConstIterator
 

Detailed Description

Plays animation on an Entity with a callbacks attached.

Plays animation on an Entity with an animation callback. For more info how the animations are supported pleas see OpenIG::Base::ImageGenerator::playAnimation. The addition to basic animation playback is the list of OpenIG::Base::AnimationSequencePlaybackCallback from which gives us ability to control animation sequences in run-time by a run-time value. For example we can give landing gear failure: If we have animation animating a landing gear and it is defined to start and\ run to completition, we can stop the animation sequence by a run-time value, for example the landing gear at 60 degrees from its start position

Parameters
entityIdThe id of the Entity to play the animations
animationsThe name of the animations, as defined in the model XML or for future versions the hame of the FBX animations
cbsReferenced std::vector of OpenIG::Base::AnimationSequencePlaybackCallback
Author
Trajce Nikolov Nick openi.nosp@m.g@co.nosp@m.mpro..nosp@m.net
Date
Sun Jan 11 2015