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