29 #ifndef _CEGUIAnimationManager_h_
30 #define _CEGUIAnimationManager_h_
32 #include "CEGUI/Singleton.h"
33 #include "CEGUI/String.h"
38 # pragma warning(push)
39 # pragma warning(disable : 4251)
116 void destroyAnimation(
Animation* animation);
122 void destroyAnimation(
const String& name);
128 void destroyAllAnimations();
147 bool isAnimationPresent(
const String& name)
const;
153 Animation* getAnimationAtIdx(
size_t index)
const;
159 size_t getNumAnimations()
const;
189 void destroyAllInstancesOfAnimation(
Animation* animation);
195 void destroyAllAnimationInstances();
208 size_t getNumAnimationInstances()
const;
220 void autoStepInstances(
float delta);
234 void loadAnimationsFromXML(
const String& filename,
235 const String& resourceGroup =
"");
245 void loadAnimationsFromString(
const String& source);
257 void writeAnimationDefinitionToStream(
const Animation& animation,
OutStream& out_stream)
const;
273 String getAnimationDefinitionAsString(
const Animation& animation)
const;
285 s_defaultResourceGroup = resourceGroup;
299 return s_defaultResourceGroup;
303 typedef std::map<String, Interpolator*, std::less<String>
305 String generateUniqueAnimationName();
308 InterpolatorMap d_interpolators;
310 CEGUI_VECTOR_ALLOC(
Interpolator*)> BasicInterpolatorList;
312 BasicInterpolatorList d_basicInterpolators;
314 typedef std::map<String, Animation*> AnimationMap;
316 AnimationMap d_animations;
318 typedef std::multimap<Animation*, AnimationInstance*, std::less<Animation*>
321 AnimationInstanceMap d_animationInstances;
323 static String s_defaultResourceGroup;
325 static const String GeneratedAnimationNameBase;
327 unsigned long d_uid_counter;
332 #if defined(_MSC_VER)
333 # pragma warning(pop)
336 #endif // end of guard _CEGUIAnimationManager_h_
Definition: MemoryAllocatedObject.h:109
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
std::ostream OutStream
Output stream class.
Definition: Base.h:185
static void setDefaultResourceGroup(const String &resourceGroup)
Sets the default resource group to be used when loading animation xml data.
Definition: AnimationManager.h:283
Defines an 'animation' class.
Definition: Animation.h:64
static const String & getDefaultResourceGroup()
Returns the default resource group currently set for loading animation xml data.
Definition: AnimationManager.h:297
Definition: Singleton.h:55
Definition: AnimationManager.h:46
Defines a 'interpolator' class.
Definition: Interpolator.h:53
Defines an 'animation instance' class.
Definition: AnimationInstance.h:73
String class used within the GUI system.
Definition: String.h:62
static const String XMLSchemaName
Name of the schema used for loading animation xml files.
Definition: AnimationManager.h:52