Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Ogre::AnimationControllerFunction Class Reference

Predefined controller function for dealing with animation. More...

#include <OgrePredefinedControllers.h>

Inheritance diagram for Ogre::AnimationControllerFunction:

Ogre::ControllerFunction List of all members.

Public Methods

 AnimationControllerFunction (Real sequenceTime, Real timeOffset=0.0f)
 Constructor. More...

Real calculate (Real source)
 Overriden function. More...


Protected Methods

Real getAdjustedInput (Real input)
 Gets the input value as adjusted by any delta. More...


Protected Attributes

Real mSeqTime
Real mTime
bool mDeltaInput
 If true, function will add imput values together and wrap at 1.0 before evaluating. More...

Real mDeltaCount

Detailed Description

Predefined controller function for dealing with animation.


Constructor & Destructor Documentation

Ogre::AnimationControllerFunction::AnimationControllerFunction Real    sequenceTime,
Real    timeOffset = 0.0f
 

Constructor.

Parameters:
sequenceTime  The amount of time in seconds it takes to loop through the whole animation sequence.
timeOffset  The offset in seconds at which to start (default is start at 0)


Member Function Documentation

Real Ogre::AnimationControllerFunction::calculate Real    source [virtual]
 

Overriden function.

Implements Ogre::ControllerFunction.

Real Ogre::ControllerFunction::getAdjustedInput Real    input [inline, protected, inherited]
 

Gets the input value as adjusted by any delta.

Reimplemented in Ogre::WaveformControllerFunction.


Member Data Documentation

Real Ogre::ControllerFunction::mDeltaCount [protected, inherited]
 

bool Ogre::ControllerFunction::mDeltaInput [protected, inherited]
 

If true, function will add imput values together and wrap at 1.0 before evaluating.

Real Ogre::AnimationControllerFunction::mSeqTime [protected]
 

Real Ogre::AnimationControllerFunction::mTime [protected]
 

Copyright © 2002 by The OGRE Team