Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
C3DKeyframe Class Reference

This is the base class for any keyframe that is part of C3DKeyframable class. More...

Detailed Description

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>

Inheritance diagram for C3DKeyframe:
C3DMatrixKey C3DTypeKey< TYPE > C3DRotateKey C3DVectorKey C3DColorKey C3DDoubleKey C3DFloatKey C3DIntKey C3DUIntKey C3DScaleKey C3DTranslateKey

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)
 
C3DKeyframableGetKeyframes () const
 
CCustomDataGetCustomData ()
 
longuint GetClassID () const
 
unsigned int GetTypeID () const
 
unsigned int GetContentID () const
 
C3DKeyframeCopy () const
 
void SetKeyCurve (C3DKeyCurve *curve)
 
void SetKeyCurve (const C3DKeyCurve &curve)
 
const C3DKeyCurveGetKeyCurve () const
 
C3DKeyCurveCreateCurve (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 C3DKeyframeCopyFrom (const C3DKeyframe &key)
 

Static Public Member Functions

static C3DKeyframeCreateKey (longuint classid, unsigned int curveClassid=C3DKeyCurve::KEYCURVE_NULLID)
 

Member Enumeration Documentation

◆ KeyframeType

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.


The documentation for this class was generated from the following file: