Crazy Eddie's GUI System
0.8.6
|
Defines a 'key frame' class. More...
Public Types | |
enum | Progression { P_Linear, P_QuadraticAccelerating, P_QuadraticDecelerating, P_Discrete } |
Public Member Functions | |
KeyFrame (Affector *parent, float position) | |
internal constructor, please use Affector::createKeyFrame | |
~KeyFrame (void) | |
internal destructor, please use Affector::destroyKeyFrame | |
Affector * | getParent () const |
Retrieves parent Affector of this Key Frame. | |
size_t | getIdxInParent () const |
Retrieves index with which this keyframe is retrievable in parent Affector. More... | |
void | moveToPosition (float newPosition) |
Moves this keyframe to a new given position. | |
float | getPosition () const |
Retrieves position of this key frame in the animation (in seconds) | |
void | setValue (const String &value) |
Sets the value of this key frame. More... | |
const String & | getValue () const |
Retrieves value of this key frame. | |
void | setSourceProperty (const String &sourceProperty) |
Sets the source property of this key frame. More... | |
const String & | getSourceProperty () const |
Gets the source property of this key frame. | |
const String & | getValueForAnimation (AnimationInstance *instance) const |
Retrieves value of this for use when animating. More... | |
void | setProgression (Progression p) |
Sets the progression method of this key frame. More... | |
Progression | getProgression () const |
Retrieves progression method of this key frame. | |
float | alterInterpolationPosition (float position) |
Internal method, alters interpolation position based on progression method. Don't use unless you know what you're doing! | |
void | savePropertyValue (AnimationInstance *instance) |
Internal method, if this keyframe is using source property, this saves it's value to given instance before it's affected. | |
void | notifyPositionChanged (float newPosition) |
internal method, notifies this keyframe that it has been moved More... | |
void | writeXMLToStream (XMLSerializer &xml_stream) const |
Writes an xml representation of this KeyFrame to out_stream. More... | |
Defines a 'key frame' class.
Key frames are defined inside Affectors. The values they hold are used when animation is precisely at the key frame's position. If it's between two key frames, the value is interpolated.
enumerates possible progression methods, IE how the value progresses TOWARS this key frames, this means that progression method of the first key frame won't be used for anything!
size_t CEGUI::KeyFrame::getIdxInParent | ( | ) | const |
Retrieves index with which this keyframe is retrievable in parent Affector.
const String& CEGUI::KeyFrame::getValueForAnimation | ( | AnimationInstance * | instance | ) | const |
Retrieves value of this for use when animating.
void CEGUI::KeyFrame::notifyPositionChanged | ( | float | newPosition | ) |
internal method, notifies this keyframe that it has been moved
void CEGUI::KeyFrame::setProgression | ( | Progression | p | ) |
Sets the progression method of this key frame.
That means that the progression of the first key frame is never used!
Please see KeyFrame::Progression
void CEGUI::KeyFrame::setSourceProperty | ( | const String & | sourceProperty | ) |
Sets the source property of this key frame.
The decision about what value is used is simple, if there is a source property (sourceProperty is not empty, it's used)
void CEGUI::KeyFrame::setValue | ( | const String & | value | ) |
Sets the value of this key frame.
void CEGUI::KeyFrame::writeXMLToStream | ( | XMLSerializer & | xml_stream | ) | const |
Writes an xml representation of this KeyFrame to out_stream.
xml_stream | Stream where xml data should be output. |