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

This is the keyframe base class for transformation keyfrrame which allows to modify the node matrix transformation. More...

Detailed Description

This is the keyframe base class for transformation keyfrrame which allows to modify the node matrix transformation.

This class defines a scale keyframe.

This class defines a translation keyframe.

This class defines a rotation keyframe.

C3DTranslateKey, C3DScaleKey, C3DRotateKey... derived from C3DMatrixKey. Use C3DMatrixKey::ToMatrix() to get the corresponding transformation C4x4Matrix.

#include <3DKeyframe.h>

Inheritance diagram for C3DMatrixKey:
C3DKeyframe C3DRotateKey C3DVectorKey C3DScaleKey C3DTranslateKey

Public Member Functions

 C3DMatrixKey (longuint classid)
 
 C3DMatrixKey (const C4x4Matrix &matrix)
 
void SwapCoordinates (unsigned int swapMode, bool adjustMode)
 
virtual const C4x4MatrixToMatrix () const
 
void SetMatrix (const C4x4Matrix &matrix)
 
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)
 
- Public Member Functions inherited from C3DKeyframe
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)
 

Additional Inherited Members

- Public Types inherited from C3DKeyframe
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
 
- Static Public Member Functions inherited from C3DKeyframe
static C3DKeyframeCreateKey (longuint classid, unsigned int curveClassid=C3DKeyCurve::KEYCURVE_NULLID)
 

Member Function Documentation

◆ CopyFrom()

virtual C3DKeyframe & C3DMatrixKey::CopyFrom ( const C3DKeyframe key)
virtual

Reimplemented from C3DKeyframe.

◆ Evaluate()

virtual bool C3DMatrixKey::Evaluate ( const C3DKeyframe key1,
const C3DKeyframe key2,
int  time,
const CTimeRange range 
)
virtual

Reimplemented from C3DKeyframe.

◆ operator==()

virtual bool C3DMatrixKey::operator== ( const C3DKeyframe key) const
virtual

Reimplemented from C3DKeyframe.

◆ Serialize()

virtual void C3DMatrixKey::Serialize ( CXArchive ar)
virtual

Reimplemented from C3DKeyframe.


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