29#ifndef _CEGUIAffector_h_
30#define _CEGUIAffector_h_
32#include "CEGUI/String.h"
33#include "CEGUI/KeyFrame.h"
38# pragma warning(disable : 4251)
172 const String& sourceProperty =
"");
260 typedef std::map<float, KeyFrame*, std::less<float>
261 CEGUI_MAP_ALLOC(
float,
KeyFrame*)> KeyFrameMap;
265 KeyFrameMap d_keyFrames;
Defines an 'affector' class.
Definition Affector.h:56
Interpolator * getInterpolator() const
Retrieves currently used interpolator of this Affector.
void setTargetProperty(const String &target)
Sets the property that will be affected.
void moveKeyFrameToPosition(float oldPosition, float newPosition)
Moves key frame at given old position to given new position.
size_t getIdxInParent() const
Retrieves index with which this affector is retrievable in parent Animation.
Affector(Animation *parent)
KeyFrame * getKeyFrameAtPosition(float position) const
Retrieves a KeyFrame at given position.
void setApplicationMethod(ApplicationMethod method)
Sets the application method.
Animation * getParent() const
Retrieves the parent animation of this keyframe.
Definition Affector.h:87
void destroyKeyFrame(KeyFrame *keyframe)
Destroys given keyframe.
void savePropertyValues(AnimationInstance *instance)
Internal method, causes all properties that are used by this affector and it's keyframes to be saved.
KeyFrame * getKeyFrameAtIdx(size_t index) const
Retrieves a KeyFrame with given index.
void setInterpolator(const String &name)
Sets interpolator of this Affector.
void writeXMLToStream(XMLSerializer &xml_stream) const
Writes an xml representation of this Affector to out_stream.
ApplicationMethod
enumerates the possible methods of application
Definition Affector.h:60
@ AM_Absolute
applies values as absolutes
Definition Affector.h:62
@ AM_Relative
Definition Affector.h:67
KeyFrame * createKeyFrame(float position, const String &value, KeyFrame::Progression progression=KeyFrame::P_Linear, const String &sourceProperty="")
Creates a KeyFrame at given position.
ApplicationMethod getApplicationMethod() const
Retrieves current application method.
void moveKeyFrameToPosition(KeyFrame *keyframe, float newPosition)
Moves given key frame to given new position.
void setInterpolator(Interpolator *interpolator)
Sets interpolator of this Affector.
void apply(AnimationInstance *instance)
Applies this Affector's definition with parameters from given Animation Instance.
~Affector(void)
destructor, this destroys all key frames defined inside this affector
bool hasKeyFrameAtPosition(float position) const
Checks whether there is a key frame at given position.
size_t getNumKeyFrames() const
Returns number of key frames defined in this affector.
const String & getTargetProperty() const
Gets the property that will be affected.
KeyFrame * createKeyFrame(float position)
Creates a KeyFrame at given position.
Definition MemoryAllocatedObject.h:110
Defines an 'animation instance' class.
Definition AnimationInstance.h:75
Defines an 'animation' class.
Definition Animation.h:65
Defines a 'interpolator' class.
Definition Interpolator.h:55
Defines a 'key frame' class.
Definition KeyFrame.h:51
Progression
Definition KeyFrame.h:57
String class used within the GUI system.
Definition String.h:64
Class used to create XML Document.
Definition XMLSerializer.h:87
Main namespace for Crazy Eddie's GUI Library.
Definition arch_overview.dox:1