Public Member Functions | Public Attributes

KPriFCurveKey Struct Reference

Search for all occurrences

Detailed Description

KPriFCurveKey is used as the internal storage format for motion data.

We need to make its size as small as possible, so we carefully play with the pack, alignment for VC,GCC on 32/64-bit OS.

Definition at line 465 of file kfcurve.h.

#include <kfcurve.h>

List of all members.

Public Member Functions

  KPriFCurveKey ()
KFBX_FCURVE_INLINE void  Init ()
KFBX_FCURVE_INLINE void  Set (KTime pTime, kFCurveDouble pValue)
KFBX_FCURVE_INLINE kFCurveDouble  GetValue () const
KFBX_FCURVE_INLINE void  SetValue (kFCurveDouble pValue)
KFBX_FCURVE_INLINE void  IncValue (kFCurveDouble pValue)
KFBX_FCURVE_INLINE void  MultValue (kFCurveDouble pValue)
KFBX_FCURVE_INLINE KTime  GetTime () const
KFBX_FCURVE_INLINE void  SetTime (KTime pTime)
KFBX_FCURVE_INLINE void  IncTime (KTime pTime)

Public Attributes

KTime  mTime
KPriFCurveKeyAttr mAttr
kFCurveDouble  mValue

Constructor & Destructor Documentation

KPriFCurveKey ( ) [inline]

Definition at line 467 of file kfcurve.h.

    {
        Init();
    }

Member Function Documentation

KFBX_FCURVE_INLINE void Init ( )

Definition at line 3134 of file kfcurve.h.

{
    mValue = 0.0;
    mTime = KTIME_ZERO;
    mAttr = NULL;
}
KFBX_FCURVE_INLINE void Set ( KTime  pTime,
kFCurveDouble  pValue 
)

Definition at line 2602 of file kfcurve.h.

{
    SetTime (pTime);
    SetValue (pValue);
}
KFBX_FCURVE_INLINE kFCurveDouble GetValue ( ) const

Definition at line 3016 of file kfcurve.h.

{
    return mValue;
}
KFBX_FCURVE_INLINE void SetValue ( kFCurveDouble  pValue )

Definition at line 3027 of file kfcurve.h.

{
    mValue=pValue;
}
KFBX_FCURVE_INLINE void IncValue ( kFCurveDouble  pValue )

Definition at line 3037 of file kfcurve.h.

{
    mValue+=pValue;
}
KFBX_FCURVE_INLINE void MultValue ( kFCurveDouble  pValue )

Definition at line 3047 of file kfcurve.h.

{
    mValue*=pValue;
}
KFBX_FCURVE_INLINE KTime GetTime ( ) const

Definition at line 3057 of file kfcurve.h.

{
    return mTime;
}
KFBX_FCURVE_INLINE void SetTime ( KTime  pTime )

Definition at line 3067 of file kfcurve.h.

{
    K_ASSERT_MSG( pTime != KTIME_MINUS_INFINITE && 
    pTime != KTIME_INFINITE, "Key at infinite!" );

    mTime=pTime;
}
KFBX_FCURVE_INLINE void IncTime ( KTime  pTime )

Definition at line 3083 of file kfcurve.h.

{
    mTime+=pTime;
}

Member Data Documentation

Definition at line 482 of file kfcurve.h.

Definition at line 484 of file kfcurve.h.

Definition at line 485 of file kfcurve.h.


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