Classes | |
class | Callback |
Public Types | |
typedef std::map< unsigned int, osg::ref_ptr< Callback > > | FrameCallback |
Public Member Functions | |
META_Object (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 | setNumFrames (unsigned int numFrames) |
void | setDuration (double duration) |
unsigned int | getNumFrames () const |
double | getDuration () const |
virtual void | setLoop (int nb) |
virtual unsigned int | getLoop () const |
bool | evaluateFrame (unsigned int frame, unsigned int &resultframe, unsigned int &nbloop) |
virtual void | evaluate (unsigned int frame) |
virtual void | evaluateCallback (unsigned int frame) |
Protected Types | |
enum | State { Play, Stop } |
Protected Attributes | |
FrameCallback | _framesCallback |
double | _speed |
unsigned int | _fps |
unsigned int | _numberFrame |
unsigned int | _loop |
State | _state |
typedef std::map<unsigned int, osg::ref_ptr<Callback> > osgAnimation::Action::FrameCallback |
enum osgAnimation::Action::State [protected] |
osgAnimation::Action::Action | ( | ) | [inline] |
References _fps, _loop, _numberFrame, and _speed.
osgAnimation::Action::Action | ( | const Action & | , | |
const osg::CopyOp & | ||||
) | [inline] |
virtual void osgAnimation::Action::evaluate | ( | unsigned int | frame | ) | [inline, virtual] |
Reimplemented in osgAnimation::BlendIn, osgAnimation::BlendOut, osgAnimation::ActionAnimation, and osgAnimation::StripAnimation.
References osg::DEBUG_INFO, evaluateFrame(), osg::Object::getName(), and osg::notify().
Referenced by osgAnimation::Timeline::evaluate().
virtual void osgAnimation::Action::evaluateCallback | ( | unsigned int | frame | ) | [inline, virtual] |
References _framesCallback, evaluateFrame(), and osg::Object::getName().
Referenced by osgAnimation::Timeline::evaluateCallback().
bool osgAnimation::Action::evaluateFrame | ( | unsigned int | frame, | |
unsigned int & | resultframe, | |||
unsigned int & | nbloop | |||
) | [inline] |
Callback* osgAnimation::Action::getCallback | ( | unsigned int | frame | ) | [inline] |
References _framesCallback.
double osgAnimation::Action::getDuration | ( | ) | const [inline] |
virtual unsigned int osgAnimation::Action::getLoop | ( | ) | const [inline, virtual] |
unsigned int osgAnimation::Action::getNumFrames | ( | ) | const [inline] |
osgAnimation::Action::META_Object | ( | osgAnimation | , | |
Action | ||||
) |
void osgAnimation::Action::setCallback | ( | unsigned int | frame, | |
Callback * | callback | |||
) | [inline] |
References _framesCallback.
void osgAnimation::Action::setCallback | ( | double | when, | |
Callback * | callback | |||
) | [inline] |
References _fps.
void osgAnimation::Action::setDuration | ( | double | duration | ) | [inline] |
References _fps, and _numberFrame.
Referenced by osgAnimation::ActionAnimation::ActionAnimation(), osgAnimation::StripAnimation::setLoop(), and osgAnimation::StripAnimation::StripAnimation().
virtual void osgAnimation::Action::setLoop | ( | int | nb | ) | [inline, virtual] |
References _loop.
void osgAnimation::Action::setNumFrames | ( | unsigned int | numFrames | ) | [inline] |
References _numberFrame.
Referenced by osgAnimation::BlendIn::BlendIn(), and osgAnimation::BlendOut::BlendOut().
unsigned int osgAnimation::Action::_fps [protected] |
FrameCallback osgAnimation::Action::_framesCallback [protected] |
Referenced by evaluateCallback(), getCallback(), and setCallback().
unsigned int osgAnimation::Action::_loop [protected] |
unsigned int osgAnimation::Action::_numberFrame [protected] |
Referenced by Action(), getDuration(), getNumFrames(), setDuration(), and setNumFrames().
double osgAnimation::Action::_speed [protected] |
Referenced by Action().
State osgAnimation::Action::_state [protected] |
![]() | Generated at Wed Apr 22 19:49:14 2009 for the OpenSceneGraph by doxygen 1.5.8. |