OpenIG  2.0.4
cross-platform open-source OpenSceneGraph Image Generator
Public Member Functions | List of all members
OpenIG::Base::AnimationSequencePlaybackCallback Class Referenceabstract

The AnimationSequencePlaybackCallback class. More...

#include <Animation.h>

Inheritance diagram for OpenIG::Base::AnimationSequencePlaybackCallback:

Public Member Functions

virtual bool operator() (double value)=0
 operator () More...
 

Detailed Description

The AnimationSequencePlaybackCallback class.

This callback is here to give the user ability to control the animation playback via runtime value. In our simple animation playback implementation defined in this core, this is the callback that sniffs the change of the animation player orientation or position value and can stop it at certain\ values on criteria used in the inherits. See OpenIG::Base::ImageGenerator::playAnimation

Author
Trajce Nikolov Nick openi.nosp@m.g@co.nosp@m.mpro..nosp@m.net
Date
Sun Jan 11 2015

Member Function Documentation

virtual bool OpenIG::Base::AnimationSequencePlaybackCallback::operator() ( double  value)
pure virtual

operator ()

The current positional or orientational value is passed here so the inherits can decide to stop the animation or let it play

Parameters
valueThe current run-time value that is result of the linear interpolation of orientation the orientational operation vector
Returns
When inherits returns false, the playback is stopped, otherwise nothing happens
Author
Trajce Nikolov Nick openi.nosp@m.g@co.nosp@m.mpro..nosp@m.net
Date
Sun Jan 11 2015

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