11#ifndef CAL_COREANIMATION_H
12#define CAL_COREANIMATION_H
14#include "cal3d/global.h"
15#include "cal3d/quaternion.h"
16#include "cal3d/refcounted.h"
17#include "cal3d/refptr.h"
38 void scale(
float factor);
39 static int getNumCoreAnimations();
42 void setName(
const std::string& name);
43 const std::string&
getName(
void)
const;
58 std::vector<CallbackRecord>& getCallbackList() {
return m_listCallbacks; }
62 std::vector<CallbackRecord> m_listCallbacks;
65 std::list<CalCoreTrack *> m_listCoreTrack;
67 std::string m_filename;
void removeCallback(CalAnimationCallback *callback)
Remove a callback from the current list of callbacks for this Anim.
Definition coreanimation.cpp:276
CalCoreTrack * getCoreTrack(int coreBoneId)
Provides access to a core track.
Definition coreanimation.cpp:85
void setName(const std::string &name)
Set the symbolic name of the core animation.
Definition coreanimation.cpp:229
unsigned int getTotalNumberOfKeyframes() const
Returns the total number of core keyframes used for this animation.
Definition coreanimation.cpp:311
void registerCallback(CalAnimationCallback *callback, float min_interval)
Add a callback to the current list of callbacks for this CoreAnim.
Definition coreanimation.cpp:258
bool addCoreTrack(CalCoreTrack *pCoreTrack)
Adds a core track.
Definition coreanimation.cpp:53
void setDuration(float duration)
Sets the duration.
Definition coreanimation.cpp:171
const std::string & getFilename(void) const
Get the name of the file in which the core animation is stored, if any.
Definition coreanimation.cpp:217
float getDuration() const
Returns the duration.
Definition coreanimation.cpp:158
void scale(float factor)
Scale the core animation.
Definition coreanimation.cpp:185
unsigned int getTrackCount() const
Gets the number of core tracks for this core animation.
Definition coreanimation.cpp:145
void setFilename(const std::string &filename)
Set the name of the file in which the core animation is stored, if any.
Definition coreanimation.cpp:202
const std::string & getName(void) const
Get the symbolic name the core animation.
Definition coreanimation.cpp:244
std::list< CalCoreTrack * > & getListCoreTrack()
Returns the core track list.
Definition coreanimation.cpp:297
Definition coreskeleton.h:25
Definition coretrack.h:27
Derive from RefCounted to make your class have reference-counted lifetime semantics.
Definition refcounted.h:29
A container-safe smart pointer used for refcounted classes.
Definition refptr.h:11
Definition animcallback.h:21
Definition coreanimation.h:53