30 #ifndef _CEGUIAnimationInstance_h_
31 #define _CEGUIAnimationInstance_h_
33 #include "CEGUIEventArgs.h"
34 #include "CEGUIEvent.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
127 void setEventReceiver(
EventSet* receiver);
141 void setEventSender(
EventSet* sender);
154 void setTargetWindow(
Window* target);
161 void setPosition(
float position);
167 float getPosition()
const;
174 void setSpeed(
float speed);
180 float getSpeed()
const;
186 void setSkipNextStep(
bool skip);
196 bool getSkipNextStep()
const;
213 void setMaxStepDeltaSkip(
float maxDelta);
219 float getMaxStepDeltaSkip()
const;
234 void setMaxStepDeltaClamp(
float maxDelta);
240 float getMaxStepDeltaClamp()
const;
252 void start(
bool skipNextStep =
true);
273 void unpause(
bool skipNextStep =
true);
283 void togglePause(
bool skipNextStep =
true);
290 bool isRunning()
const;
296 void step(
float delta);
332 void savePropertyValue(
const String& propertyName);
337 void purgeSavedPropertyValues(
void);
342 const String& getSavedPropertyValue(
const String& propertyName);
360 void unsubscribeAutoConnections();
367 void onAnimationStarted();
369 void onAnimationStopped();
371 void onAnimationPaused();
373 void onAnimationUnpaused();
376 void onAnimationEnded();
378 void onAnimationLooped();
400 bool d_bounceBackwards;
406 float d_maxStepDeltaSkip;
408 float d_maxStepDeltaClamp;
410 typedef std::map<String, String> PropertyValueMap;
414 PropertyValueMap d_savedPropertyValues;
416 typedef std::vector<Event::Connection> ConnectionTracker;
418 ConnectionTracker d_autoConnections;
423 #if defined(_MSC_VER)
424 # pragma warning(pop)
427 #endif // end of guard _CEGUIAnimationInstance_h_
static const String EventNamespace
Definition: CEGUIAnimationInstance.h:79
static const String EventAnimationUnpaused
fired when animation instance unpauses
Definition: CEGUIAnimationInstance.h:88
Base class used as the argument to all subscribers Event object.
Definition: CEGUIEventArgs.h:52
EventArgs based class that holds information about which animation instnace fired given event...
Definition: CEGUIAnimationInstance.h:52
Defines an 'animation' class.
Definition: CEGUIAnimation.h:65
Class that contains a collection of Property objects.
Definition: CEGUIPropertySet.h:52
static const String EventAnimationEnded
fired when animation instance ends
Definition: CEGUIAnimationInstance.h:90
static const String EventAnimationStopped
fired when animation instance stops
Definition: CEGUIAnimationInstance.h:84
static const String EventAnimationLooped
fired when animation instance loops
Definition: CEGUIAnimationInstance.h:92
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUIWindow.h:138
Class that collects together a set of Event objects.
Definition: CEGUIEventSet.h:66
static const String EventAnimationStarted
fired when animation instance starts
Definition: CEGUIAnimationInstance.h:82
static const String EventAnimationPaused
fired when animation instance pauses
Definition: CEGUIAnimationInstance.h:86
AnimationInstance * instance
pointer to a AnimationInstance object of relevance to the event.
Definition: CEGUIAnimationInstance.h:57
Defines an 'animation instance' class.
Definition: CEGUIAnimationInstance.h:74
String class used within the GUI system.
Definition: CEGUIString.h:57