16BEGIN_MOOTOOLS_NAMESPACE
39 int GetKeyTime(
int time,
unsigned int pos, longuint classid = KEYFRAME_NULLID);
41 virtual CTimeRange GetTimeRange(longuint classid = KEYFRAME_NULLID)
const = 0;
42 virtual const C3DKeyframe *GetConstKey(
int time,
unsigned int pos, longuint classid = KEYFRAME_NULLID,
int *findKeyTime = NULL)
const = 0;
55 typedef enum TimeStamp
61 typedef struct _KeyframeInfo
79 typedef struct _KeyCache
95 void InvalidateCache(longuint classID = KEYFRAME_NULLID)
const;
97 bool FindCache(
int time, longuint classID,
C3DKeyframe *& key)
const;
99 void KeyframesChanged(longuint classid = KEYFRAME_NULLID)
const;
100 const C3DKeyframe *GetKey(
int time,
unsigned int findKeyFlag, longuint classid = KEYFRAME_NULLID,
int *findKeyTime = NULL)
const;
105 KEYFRAME_NONE = 0x00,
106 KEYFRAME_REPLACE_KEY = 0x01,
107 KEYFRAME_DONT_EVALUATE = 0x02,
115 int DeleteKey(
int time, longuint classid = KEYFRAME_NULLID);
116 void DeleteAllKeys();
120 const C3DKeyframe *GetConstKeyByIndex(
unsigned int index,
int *time = NULL, longuint classid = KEYFRAME_NULLID)
const;
122 int GetKeyNbr(longuint classid = KEYFRAME_NULLID)
const;
133 virtual void OnKeyframesChanged(longuint classID)
const;
134 virtual CTimeRange GetTimeRange(longuint classid = KEYFRAME_NULLID)
const;
135 virtual const C3DKeyframe *
GetConstKey(
int time,
unsigned int findKeyFlag, longuint classid = KEYFRAME_NULLID,
int *findKeyTime = NULL)
const;
138 virtual bool Dump(
unsigned int flags)
const;
139 virtual bool DumpKeyList(
unsigned int flags)
const;
143END_MOOTOOLS_NAMESPACE
The file contains different kind of keyframes definition.
CCustomData class is a handly class for storing any kind of data.
C3DAnimatable is the base class for any object which inherits an animation.
Definition 3DAnimatable.h:25
FindKey
Definition 3DAnimatable.h:30
This is the base class for any object that can be animated using C3DKeyframe.
Definition 3DAnimatable.h:51
int CopyKeys(const C3DKeyframable *srckeys, longuint classid=KEYFRAME_NULLID, CTimeRange range=CTimeRange(0, CTimeRange::MAX_TIME))
Copy key of the given classid in the given time range.
int DeleteKey(int time, longuint classid=KEYFRAME_NULLID)
If time = INVALID_TIME, then all key of classid are deleted or all keys are deleted if classid = KEYF...
bool Evaluate(int time, C3DKeyframe &findkey) const
This method evaluate the key at the given time. Same but slower that the following method that return...
C3DKeyframe * CreateKey(int time, longuint classid, unsigned int flags=KEYFRAME_NONE)
Create key of the given classid. flags is one or more KeyframeFlags.
int AddKey(int time, const C3DKeyframe &newkey)
Return keyframe number.
const C3DKeyframe * Evaluate(int time, longuint classid) const
This method evaluate the key at the given time. This is the fastest method. The key content cannot be...
C3DKeyframe * GetKeyByIndex(unsigned int index, int *time=NULL, longuint classid=KEYFRAME_NULLID)
This invalidate the cache, and can lead to slower computation.
KeyframeFlags
Definition 3DAnimatable.h:104
int AddKey(int time, C3DKeyframe *newkey)
Return -1 if fails or keyframe number.
virtual const C3DKeyframe * GetConstKey(int time, unsigned int findKeyFlag, longuint classid=KEYFRAME_NULLID, int *findKeyTime=NULL) const
Retrieve a keyframe at / before or after the specified time depending on findKeyFlag.
This is the base class for any keyframe that is part of C3DKeyframable class.
Definition 3DKeyframe.h:49
Definition 3DKeyframe.h:22
CXArray is an array of simple data information which does not requires to call a constructor / destru...
Definition XTemplate.h:34