![]() |
Polygon Crucher SDK - Documentation
Documentation
|
This is the base class for any keyframe that is part of C3DKeyframable class. More...
This is the base class for any keyframe that is part of C3DKeyframable class.
There is different kind of keyframe defined by KeyframeType. C3DKeyframe::GetClassID can be used to cast a C3DKeyframe to the appropriate class.
#include <3DKeyframe.h>
Public Types | |
enum | KeyframeType { KEYFRAME_TYPE_NULLID = 0 , KEYFRAME_TYPE_MATRIX = MAKE_CUSTOM_ID('M', 'A', 'T', 'R') , KEYFRAME_TYPE_TRANS = MAKE_CUSTOM_ID('T', 'R', 'A', 'N') , KEYFRAME_TYPE_SCALE = MAKE_CUSTOM_ID('S', 'C', 'A', 'L') , KEYFRAME_TYPE_ROT = MAKE_CUSTOM_ID('R', 'O', 'T', 'A') , KEYFRAME_TYPE_VECTOR = MAKE_CUSTOM_ID('V', 'E', 'C', 'T') , KEYFRAME_TYPE_FLOAT = MAKE_CUSTOM_ID('F', 'L', 'O', 'A') , KEYFRAME_TYPE_DOUBLE = MAKE_CUSTOM_ID('D', 'O', 'U', 'B') , KEYFRAME_TYPE_INT = MAKE_CUSTOM_ID(' ', 'I', 'N', 'T') , KEYFRAME_TYPE_UINT = MAKE_CUSTOM_ID('U', 'I', 'N', 'T') , KEYFRAME_TYPE_COLOR = MAKE_CUSTOM_ID('C', 'O', 'L', 'O') } |
typedef enum C3DKeyframe::KeyframeType | KeyframeType |
Public Member Functions | |
void | SetKeyframes (C3DKeyframable *keyframes) |
C3DKeyframable * | GetKeyframes () const |
CCustomData & | GetCustomData () |
longuint | GetClassID () const |
unsigned int | GetTypeID () const |
unsigned int | GetContentID () const |
C3DKeyframe * | Copy () const |
void | SetKeyCurve (C3DKeyCurve *curve) |
void | SetKeyCurve (const C3DKeyCurve &curve) |
const C3DKeyCurve * | GetKeyCurve () const |
C3DKeyCurve * | CreateCurve (unsigned int classid) |
virtual void | Serialize (CXArchive &ar) |
virtual bool | Evaluate (const C3DKeyframe &key1, const C3DKeyframe &key2, int time, const CTimeRange &range) |
virtual bool | operator== (const C3DKeyframe &key) const |
virtual C3DKeyframe & | CopyFrom (const C3DKeyframe &key) |
Static Public Member Functions | |
static C3DKeyframe * | CreateKey (longuint classid, unsigned int curveClassid=C3DKeyCurve::KEYCURVE_NULLID) |
Enumerator | |
---|---|
KEYFRAME_TYPE_NULLID | Keyframe not defined. Can be also used to retrieve any kind of keyframe. |
KEYFRAME_TYPE_MATRIX | C3DMatrixKey keyframe. |
KEYFRAME_TYPE_TRANS | C3DTranslateKey keyframe. |
KEYFRAME_TYPE_SCALE | C3DScaleKey keyframe. |
KEYFRAME_TYPE_ROT | C3DRotateKey keyframe. |
KEYFRAME_TYPE_VECTOR | C3DVectorKey keyframe. |
KEYFRAME_TYPE_FLOAT | C3DFloatKey keyframe. |
KEYFRAME_TYPE_DOUBLE | C3DDoubleKey keyframe. |
KEYFRAME_TYPE_INT | C3DIntKey keyframe. |
KEYFRAME_TYPE_UINT | C3DUIntKey keyframe. |
KEYFRAME_TYPE_COLOR | C3DColorKey keyframe. |