FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FbxAnimCurveBase Class Referenceabstract

#include <fbxanimcurvebase.h>

Class Description

This is the base class for implementing animation curves.

It is a pure virtual class that defines the general interface to animation key management and manipulation.

See also
FbxAnimCurve for fully implemented class.

Definition at line 70 of file fbxanimcurvebase.h.

+ Inheritance diagram for FbxAnimCurveBase:

Public Types

typedef FbxObject ParentClass
 
- Public Types inherited from FbxObject
typedef FbxEmitter ParentClass
 
enum  EObjectFlag {
  eNone = 0, eInitialized = 1 << 0, eSystem = 1 << 1, eSavable = 1 << 2,
  eSelected = 1 << 3, eHidden = 1 << 4, eContentLoaded = 1 << 5, eDontLocalize = 1 << 6,
  eCopyCalledByClone = 1 << 16
}
 Flags available to control objects. More...
 
enum  ECloneType { eDeepClone, eReferenceClone }
 Types of clones that can be created for FbxObject. More...
 

Public Member Functions

virtual FbxClassId GetClassId () const
 
- Public Member Functions inherited from FbxObject
virtual void Compact ()
 Compact the memory used by this object. More...
 
template<class T >
bool Is () const
 Templated test if this class is a hierarchical children of the specified class type. More...
 
FbxManagerGetFbxManager () const
 Retrieve the FbxManager this object belongs to. More...
 
FbxDocumentGetDocument () const
 Returns a const pointer to the document that contains this object. More...
 
FbxDocumentGetRootDocument () const
 Returns a const pointer to the root document that contains this object. More...
 
FbxSceneGetScene () const
 Returns a const pointer to the scene that contains this object. More...
 
void Destroy (bool pRecursive=false)
 Unregister and delete this object from memory. More...
 
void ResetProperties ()
 Reset all the properties of this object to their default values. More...
 
virtual bool GetSelected ()
 Returns if this object is currently in a selected state. More...
 
virtual void SetSelected (bool pSelected)
 Sets whether this object is currently selected. More...
 
void SetUserDataPtr (const FbxUInt64 &pUserID, void *pUserData)
 Sets the data pointer for an user data record whose ID is pUserID. More...
 
void * GetUserDataPtr (const FbxUInt64 &pUserID) const
 Returns the data pointer of an user data record whose ID is pUserID. More...
 
void SetUserDataPtr (void *pUserData)
 Sets the data pointer for the user data record whose ID is the object ID. More...
 
void * GetUserDataPtr () const
 Returns the data pointer of the user data record whose ID is the object ID. More...
 
bool ConnectSrcObject (FbxObject *pObject, FbxConnection::EType pType=FbxConnection::eNone)
 Connects this object to a source object. More...
 
bool IsConnectedSrcObject (const FbxObject *pObject) const
 Judges whether this object connects with the source object. More...
 
bool DisconnectSrcObject (FbxObject *pObject)
 Disconnects this object from a source object. More...
 
bool DisconnectAllSrcObject ()
 Disconnects this object from all source objects. More...
 
bool DisconnectAllSrcObject (const FbxCriteria &pCriteria)
 Disconnects this object from all source objects that satisfy a given criteria. More...
 
int GetSrcObjectCount () const
 Returns the number of source objects with which this object connects. More...
 
int GetSrcObjectCount (const FbxCriteria &pCriteria) const
 Returns the number of source objects that satisfy the given criteria with which this object connects. More...
 
FbxObjectGetSrcObject (int pIndex=0) const
 Returns the source object with which this object connects at the specified index. More...
 
FbxObjectGetSrcObject (const FbxCriteria &pCriteria, int pIndex=0) const
 Returns the source object that satisfies the criteria at the specified index with which this object connects. More...
 
FbxObjectFindSrcObject (const char *pName, int pStartIndex=0) const
 Searches the source object with the specified name, starting at the specified index. More...
 
FbxObjectFindSrcObject (const FbxCriteria &pCriteria, const char *pName, int pStartIndex=0) const
 Searches the source object with the specified name which satisfies the given criteria, starting at the specified index. More...
 
template<class T >
bool DisconnectAllSrcObject ()
 Disconnects this object from all source objects of the specified class type. More...
 
template<class T >
bool DisconnectAllSrcObject (const FbxCriteria &pCriteria)
 Disconnects this object from all source objects that are of the specified class type and that satisfy the given criteria. More...
 
template<class T >
int GetSrcObjectCount () const
 Returns the number of source objects of a specific class type with which this object connects. More...
 
template<class T >
int GetSrcObjectCount (const FbxCriteria &pCriteria) const
 Returns the number of source objects with which this object connects that are the specified class type and that satisfy the given criteria. More...
 
template<class T >
T * GetSrcObject (int pIndex=0) const
 Returns the source object of the specified class type at the specified index. More...
 
template<class T >
T * GetSrcObject (const FbxCriteria &pCriteria, int pIndex=0) const
 Returns the source object that is the specified class type and that satisfies the given criteria at the specified index. More...
 
template<class T >
T * FindSrcObject (const char *pName, int pStartIndex=0) const
 Searches the source object with the specified name that is the specified class type, starting at the specified index. More...
 
template<class T >
T * FindSrcObject (const FbxCriteria &pCriteria, const char *pName, int pStartIndex=0) const
 Searches the source object with the specified name that is the specified class type and that satisfies the given criteria, starting at the specified index. More...
 
bool ConnectDstObject (FbxObject *pObject, FbxConnection::EType pType=FbxConnection::eNone)
 Connects this object to one destination object. More...
 
bool IsConnectedDstObject (const FbxObject *pObject) const
 Judges whether this object connects with the destination object. More...
 
bool DisconnectDstObject (FbxObject *pObject)
 Disconnects this object from the destination object. More...
 
bool DisconnectAllDstObject ()
 Disconnects this object from all destination objects. More...
 
bool DisconnectAllDstObject (const FbxCriteria &pCriteria)
 Disconnects this object from all destination objects that satisfy given criteria. More...
 
int GetDstObjectCount () const
 Returns the number of destination objects with which this object connects. More...
 
int GetDstObjectCount (const FbxCriteria &pCriteria) const
 Returns the number of destination objects with which this object connects that satisfy the given criteria. More...
 
FbxObjectGetDstObject (int pIndex=0) const
 Returns the destination object at the specified index with which this object connects. More...
 
FbxObjectGetDstObject (const FbxCriteria &pCriteria, int pIndex=0) const
 Returns the destination object with which this object connects that satisfies the given criteria at the specified index. More...
 
FbxObjectFindDstObject (const char *pName, int pStartIndex=0) const
 Searches the destination object with the specified name, starting at the specified index. More...
 
FbxObjectFindDstObject (const FbxCriteria &pCriteria, const char *pName, int pStartIndex=0) const
 Searches the destination object with the specified name which satisfies the given criteria, starting at the specified index. More...
 
template<class T >
bool DisconnectAllDstObject ()
 Disconnects this object from all destination objects of the specified class type. More...
 
template<class T >
bool DisconnectAllDstObject (const FbxCriteria &pCriteria)
 Disconnects this object from all destination objects that are the specified class type and that satisfy the given criteria. More...
 
template<class T >
int GetDstObjectCount () const
 Returns the number of destination objects of the specified class type with which this object connects. More...
 
template<class T >
int GetDstObjectCount (const FbxCriteria &pCriteria) const
 Returns the number of destination objects with which this object connects that are the specified class type and that satisfy the given criteria. More...
 
template<class T >
T * GetDstObject (int pIndex=0) const
 Returns the destination object with which this object connects that is the specified class type at the specified index. More...
 
template<class T >
T * GetDstObject (const FbxCriteria &pCriteria, int pIndex=0) const
 Returns the destination object with which this object connects that is the specified class type and that satisfies the given criteria at the specified index. More...
 
template<class T >
T * FindDstObject (const char *pName, int pStartIndex=0) const
 Searches the destination object with the specified name which is of the specified class type, starting at the specified index. More...
 
template<class T >
T * FindDstObject (const FbxCriteria &pCriteria, const char *pName, int pStartIndex=0) const
 Searches the destination object with the specified name that is the specified class type and that satisfies the given criteria, starting at the specified index. More...
 
FbxProperty GetFirstProperty () const
 Returns the first property of this object. More...
 
FbxProperty GetNextProperty (const FbxProperty &pProperty) const
 Returns the next property of this object that follows the specified property. More...
 
FbxProperty FindProperty (const char *pName, bool pCaseSensitive=true) const
 Searches a property by name. More...
 
FbxProperty FindProperty (const char *pName, const FbxDataType &pDataType, bool pCaseSensitive=true) const
 Searches a property by name and data type. More...
 
FbxProperty FindPropertyHierarchical (const char *pName, bool pCaseSensitive=true) const
 Searches a property by full name. More...
 
FbxProperty FindPropertyHierarchical (const char *pName, const FbxDataType &pDataType, bool pCaseSensitive=true) const
 Searches a property by full name and data type. More...
 
FbxProperty GetClassRootProperty ()
 Returns the class root property. More...
 
bool ConnectSrcProperty (const FbxProperty &pProperty)
 Connects this object to a source property. More...
 
bool IsConnectedSrcProperty (const FbxProperty &pProperty)
 Determines whether this object connects with the specified source property. More...
 
bool DisconnectSrcProperty (const FbxProperty &pProperty)
 Disconnects this object from the specified source property. More...
 
int GetSrcPropertyCount () const
 Returns the number of source properties with which this object connects. More...
 
FbxProperty GetSrcProperty (int pIndex=0) const
 Returns the source property at the specified index with which this object connects. More...
 
FbxProperty FindSrcProperty (const char *pName, int pStartIndex=0) const
 Searches a source property with which this object connects that has a specific name, starting at the specified index. More...
 
bool ConnectDstProperty (const FbxProperty &pProperty)
 Connects this object to a destination property. More...
 
bool IsConnectedDstProperty (const FbxProperty &pProperty)
 Determines if this object connects with the specified destination property. More...
 
bool DisconnectDstProperty (const FbxProperty &pProperty)
 Disconnects this object from the specified destination property. More...
 
int GetDstPropertyCount () const
 Returns the number of destination properties with which this object connects. More...
 
FbxProperty GetDstProperty (int pIndex=0) const
 Returns the destination property at the specified index with which this object connects. More...
 
FbxProperty FindDstProperty (const char *pName, int pStartIndex=0) const
 Searches a destination property with which this object connects that has a specific name, starting at the specified index. More...
 
int ContentUnload ()
 Unloads this object's content using the offload peripheral that is currently set in the document then flushes it from memory. More...
 
int ContentLoad ()
 Loads this object's content using the offload peripheral that is currently set in the document. More...
 
bool ContentIsLoaded () const
 Judges if this object's content is loaded. More...
 
void ContentDecrementLockCount ()
 Decreases the content lock count of an object. More...
 
void ContentIncrementLockCount ()
 Increases the content lock count of an object. More...
 
bool ContentIsLocked () const
 Judges if this object's content is locked. More...
 
virtual bool ContentWriteTo (FbxStream &pStream) const
 Writes the content of the object to the given stream. More...
 
virtual bool ContentReadFrom (const FbxStream &pStream)
 Reads the content of the object from the given stream. More...
 
void EmitMessage (FbxMessage *pMessage) const
 Emits a message in all available message emitters in the document or SDK manager. More...
 
virtual const char * Localize (const char *pID, const char *pDefault=((void *) 0)) const
 Localization helper function, it calls the implementation of FBX SDK manager. More...
 
FbxLibraryGetParentLibrary () const
 Returns a handle on the parent library of this object. More...
 
bool AddImplementation (FbxImplementation *pImplementation)
 Adds an implementation. More...
 
bool RemoveImplementation (FbxImplementation *pImplementation)
 Removes an implementation. More...
 
bool HasDefaultImplementation (void) const
 Determines if this shading node has a default implementation. More...
 
FbxImplementationGetDefaultImplementation (void) const
 Returns the default implementation of this shading node. More...
 
bool SetDefaultImplementation (FbxImplementation *pImplementation)
 Sets the default implementation of this shading node. More...
 
int GetImplementationCount (const FbxImplementationFilter *pCriteria=((void *) 0)) const
 Returns the number of implementations that satisfy a given criteria. More...
 
FbxImplementationGetImplementation (int pIndex, const FbxImplementationFilter *pCriteria=((void *) 0)) const
 Returns the implementation at the specified index that satisfies the given criteria. More...
 
virtual FbxString GetUrl () const
 Returns the URL of this object. More...
 
virtual bool SetUrl (char *pUrl)
 Sets the URL of this object. More...
 
void SetRuntimeClassId (const FbxClassId &pClassId)
 Set the run-time ClassId for this class. More...
 
FbxClassId GetRuntimeClassId () const
 Retrieve the run-time ClassId for this object. More...
 
bool IsRuntime (const FbxClassId &pClassId) const
 Test if this class is a hierarchical children of the specified class type. More...
 
bool IsRuntimePlug () const
 Find out if the ClassId was registered during run-time rather than at compile time. More...
 
void SetObjectFlags (EObjectFlag pFlags, bool pValue)
 Set the state of object flags. More...
 
bool GetObjectFlags (EObjectFlag pFlags) const
 Get the state of object flags. More...
 
void SetAllObjectFlags (FbxUInt pFlags)
 Override all object flags at once. More...
 
FbxUInt GetAllObjectFlags () const
 Get all object flags at once. More...
 
virtual FbxObjectCopy (const FbxObject &pObject)
 Copy an object content into this object. More...
 
virtual FbxObjectClone (FbxObject::ECloneType pCloneType=eDeepClone, FbxObject *pContainer=((void *) 0), void *pSet=((void *) 0)) const
 Creates a clone of this object. More...
 
bool IsAReferenceTo () const
 Checks if this object is a reference clone of another object. More...
 
FbxObjectGetReferenceTo () const
 If this object is a reference clone, returns the original object (from which the clone originates). More...
 
bool IsReferencedBy () const
 Checks if any objects are reference cloned from this object. More...
 
int GetReferencedByCount () const
 Returns the number of objects that are reference clones of this object. More...
 
FbxObjectGetReferencedBy (int pIndex) const
 Returns a reference clone of this object at the specified index. More...
 
void SetName (const char *pName)
 Sets the name of this object. More...
 
const char * GetName () const
 Returns the full name of this object. More...
 
FbxString GetNameWithoutNameSpacePrefix () const
 Returns the name of the object without the namespace qualifier. More...
 
FbxString GetNameWithNameSpacePrefix () const
 Returns the name of the object with the namespace qualifier. More...
 
void SetInitialName (const char *pName)
 Sets the initial name of the object. More...
 
const char * GetInitialName () const
 Returns the initial name of the object. More...
 
FbxString GetNameSpaceOnly ()
 Returns the namespace of the object. More...
 
void SetNameSpace (FbxString pNameSpace)
 Sets the namespace of the object. More...
 
FbxArray< FbxString * > GetNameSpaceArray (char identifier)
 Returns an array of all the namespaces for this object. More...
 
FbxString GetNameOnly () const
 Returns only the name (no namespace or prefix) of the object. More...
 
FbxString GetNameSpacePrefix () const
 Returns the namespace qualifier. More...
 
const FbxUInt64GetUniqueID () const
 Returns the unique ID of this object. More...
 
- Public Member Functions inherited from FbxEmitter
void AddListener (FbxEventHandler &pHandler)
 Add the specified event handler to current emitter list. More...
 
void RemoveListener (FbxEventHandler &pHandler)
 Remove the specified event handler from current emitter list. More...
 
template<typename EventType >
void Emit (const EventType &pEvent) const
 Emit an event with the specified the event type. More...
 

Static Public Member Functions

static FbxAnimCurveBaseCreate (FbxManager *pManager, const char *pName)
 
- Static Public Member Functions inherited from FbxObject
static FbxObjectCreate (FbxManager *pManager, const char *pName)
 
static FbxObjectCreate (FbxObject *pContainer, const char *pName)
 
static FbxString RemovePrefix (char *pName)
 Removes the prefix of pName. More...
 
static FbxString StripPrefix (FbxString &lName)
 Strips the prefix of pName. More...
 
static FbxString StripPrefix (const char *pName)
 Strips the prefix of pName. More...
 

Static Public Attributes

static FbxClassId ClassId
 
- Static Public Attributes inherited from FbxObject
static FbxClassId ClassId
 

Protected Member Functions

virtual ~ FbxAnimCurveBase ()
 
 FbxAnimCurveBase (FbxManager &pManager, const char *pName)
 
- Protected Member Functions inherited from FbxObject
virtual ~ FbxObject ()
 
virtual void Construct (const FbxObject *pFrom)
 Optional constructor override, automatically called by default constructor. More...
 
virtual void ConstructProperties (bool pForceSet)
 Optional property constructor override, automatically called by default constructor. More...
 
virtual void Destruct (bool pRecursive)
 Optional destructor override, automatically called by default destructor. More...
 
virtual void ContentClear ()
 Clears this object's content from memory. More...
 
virtual FbxPeripheralGetPeripheral ()
 Retrieves the peripheral of that object. More...
 

Static Protected Attributes

static FbxObjectCreateProc Allocate
 

Friends

class fbxsdk ::FbxManager
 

Key management.

virtual void KeyClear ()=0
 Remove all the keys and free buffer memory. More...
 
virtual int KeyGetCount () const =0
 Get the number of keys. More...
 
virtual int KeyAdd (FbxTime pTime, FbxAnimCurveKeyBase &pKey, int *pLast=((void *) 0))=0
 Add a key at given time. More...
 
virtual bool KeySet (int pIndex, FbxAnimCurveKeyBase &pKey)=0
 Set key at given index. More...
 
virtual bool KeyRemove (int pIndex)=0
 Remove key at given index. More...
 
virtual bool KeyRemove (int pStartIndex, int pEndIndex)=0
 Remove all the keys in the given range. More...
 

Key Time Manipulation

virtual FbxTime KeyGetTime (int) const
 Get key time. More...
 
virtual void KeySetTime (int pKeyIndex, FbxTime pTime)=0
 Set key time. More...
 

Extrapolation

Extrapolation defines the function curve value before and after the keys.

Pre-extrapolation defines the function curve value before first key. Post-extrapolation defines the function curve value after last key.

  • CONSTANT means a constant value matching the first/last key.
  • REPETITION means the entire function curve is looped.
  • MIRROR_REPETITION means the entire function curve is looped once backward, once forward and so on.
  • KEEP_SLOPE means a linear function with a slope matching the first/last key.
  • RELATIVE_REPETITION means entire function curve is looped and one loop is relative to the last loop in value.
enum  EExtrapolationType {
  eConstant = 1, eRepetition = 2, eMirrorRepetition = 3, eKeepSlope = 4,
  eRelativeRepetition = 5
}
 
void SetPreExtrapolation (EExtrapolationType pExtrapolation)
 Set pre-extrapolation mode. More...
 
EExtrapolationType GetPreExtrapolation () const
 Get pre-extrapolation mode. More...
 
void SetPreExtrapolationCount (unsigned long pCount)
 Set pre-extrapolation count. More...
 
unsigned long GetPreExtrapolationCount () const
 Get pre-extrapolation count. More...
 
void SetPostExtrapolation (EExtrapolationType pExtrapolation)
 Set post-extrapolation mode. More...
 
EExtrapolationType GetPostExtrapolation () const
 Get post-extrapolation mode. More...
 
void SetPostExtrapolationCount (unsigned long pCount)
 Set post-extrapolation count. More...
 
unsigned long GetPostExtrapolationCount () const
 Get post-extrapolation count. More...
 

Evaluation and Analysis

virtual float Evaluate (FbxTime pTime, int *pLast=((void *) 0))=0
 Evaluate curve value at a given time. More...
 
virtual float EvaluateIndex (double pIndex)=0
 Evaluate curve value at the given key index. More...
 

Utility functions.

virtual bool GetTimeInterval (FbxTimeSpan &pTimeInterval)
 Find out start and end time of the animation curve. More...
 

Additional Inherited Members

- Public Attributes inherited from FbxObject
FbxProperty RootProperty
 The root property that holds all children property for this object. More...
 
- Static Protected Member Functions inherited from FbxObject
static FbxObjectAllocate (FbxManager *pManager, const char *pName, const FbxObject *pFrom)
 

Member Typedef Documentation

◆ ParentClass

Definition at line 72 of file fbxanimcurvebase.h.

Member Enumeration Documentation

◆ EExtrapolationType

Enumerator
eConstant 
eRepetition 
eMirrorRepetition 
eKeepSlope 
eRelativeRepetition 

Definition at line 152 of file fbxanimcurvebase.h.

Constructor & Destructor Documentation

◆ ~ FbxAnimCurveBase()

virtual ~ FbxAnimCurveBase ( )
inlineprotectedvirtual

Definition at line 72 of file fbxanimcurvebase.h.

74 :

◆ FbxAnimCurveBase()

FbxAnimCurveBase ( FbxManager pManager,
const char *  pName 
)
inlineprotected

Definition at line 72 of file fbxanimcurvebase.h.

74 :

Member Function Documentation

◆ GetClassId()

virtual FbxClassId GetClassId ( ) const
inlinevirtual

Reimplemented from FbxObject.

Reimplemented in FbxAnimCurve.

Definition at line 72 of file fbxanimcurvebase.h.

74 :

◆ Create()

static FbxAnimCurveBase* Create ( FbxManager pManager,
const char *  pName 
)
static

◆ KeyClear()

virtual void KeyClear ( )
pure virtual

Remove all the keys and free buffer memory.

Implemented in FbxAnimCurve.

◆ KeyGetCount()

virtual int KeyGetCount ( ) const
pure virtual

Get the number of keys.

Implemented in FbxAnimCurve.

◆ KeyAdd()

virtual int KeyAdd ( FbxTime  pTime,
FbxAnimCurveKeyBase pKey,
int *  pLast = ((void *) 0) 
)
pure virtual

Add a key at given time.

Parameters
pTimeTime to add the key.
pKeyKey to add.
pLastIndex of the last processed key to speed up search. If this function is called in a loop, initialize this value to 0 and let it be updated by each call.
Returns
Index of the key at given time, no matter if it was added or already present.

Implemented in FbxAnimCurve.

◆ KeySet()

virtual bool KeySet ( int  pIndex,
FbxAnimCurveKeyBase pKey 
)
pure virtual

Set key at given index.

Parameters
pIndexIndex of where the key should be set.
pKeyThe key to set.
Returns
true if key time is superior to previous key and inferior to next key, false otherwise.
Remarks
Result is undetermined if function curve has no key or index is out of bounds.

Implemented in FbxAnimCurve.

◆ KeyRemove() [1/2]

virtual bool KeyRemove ( int  pIndex)
pure virtual

Remove key at given index.

Parameters
pIndexIndex of key to remove.
Returns
true on success, false otherwise.

Implemented in FbxAnimCurve.

◆ KeyRemove() [2/2]

virtual bool KeyRemove ( int  pStartIndex,
int  pEndIndex 
)
pure virtual

Remove all the keys in the given range.

Parameters
pStartIndexIndex of the first key to remove (inclusive).
pEndIndexIndex of the last key to remove (inclusive).
Returns
true on success, false otherwise.

Implemented in FbxAnimCurve.

◆ KeyGetTime()

virtual FbxTime KeyGetTime ( int  ) const
inlinevirtual

Get key time.

Parameters
pKeyIndexKey index.
Returns
Key time (time at which this key is occurring).

Reimplemented in FbxAnimCurve.

Definition at line 130 of file fbxanimcurvebase.h.

130 { return FBXSDK_TIME_INFINITE; }
#define FBXSDK_TIME_INFINITE
Definition: fbxtime.h:23

◆ KeySetTime()

virtual void KeySetTime ( int  pKeyIndex,
FbxTime  pTime 
)
pure virtual

Set key time.

Parameters
pKeyIndexKey index.
pTimeKey time (time at which this key is occurring).

Implemented in FbxAnimCurve.

◆ SetPreExtrapolation()

void SetPreExtrapolation ( EExtrapolationType  pExtrapolation)

Set pre-extrapolation mode.

Parameters
pExtrapolationThe pre-extrapolation mode to set.

◆ GetPreExtrapolation()

EExtrapolationType GetPreExtrapolation ( ) const
inline

Get pre-extrapolation mode.

Returns
The current pre-extrapolation mode.

Definition at line 169 of file fbxanimcurvebase.h.

169 { return mPreExtrapolation; }

◆ SetPreExtrapolationCount()

void SetPreExtrapolationCount ( unsigned long  pCount)

Set pre-extrapolation count.

Parameters
pCountNumber of repetitions if pre-extrapolation mode is REPETITION or MIRROR_REPETITION.

◆ GetPreExtrapolationCount()

unsigned long GetPreExtrapolationCount ( ) const
inline

Get pre-extrapolation count.

Returns
Number of repetitions if pre-extrapolation mode is REPETITION or MIRROR_REPETITION.

Definition at line 181 of file fbxanimcurvebase.h.

181 { return mPreExtrapolationCount; }

◆ SetPostExtrapolation()

void SetPostExtrapolation ( EExtrapolationType  pExtrapolation)

Set post-extrapolation mode.

Parameters
pExtrapolationThe post-extrapolation mode to set.

◆ GetPostExtrapolation()

EExtrapolationType GetPostExtrapolation ( ) const
inline

Get post-extrapolation mode.

Returns
The current post-extrapolation mode.

Definition at line 191 of file fbxanimcurvebase.h.

191 { return mPostExtrapolation; }

◆ SetPostExtrapolationCount()

void SetPostExtrapolationCount ( unsigned long  pCount)

Set post-extrapolation count.

Parameters
pCountNumber of repetitions if post-extrapolation mode is REPETITION or MIRROR_REPETITION.

◆ GetPostExtrapolationCount()

unsigned long GetPostExtrapolationCount ( ) const
inline

Get post-extrapolation count.

Returns
Number of repetitions if post-extrapolation mode is REPETITION or MIRROR_REPETITION.

Definition at line 203 of file fbxanimcurvebase.h.

203 { return mPostExtrapolationCount; }

◆ Evaluate()

virtual float Evaluate ( FbxTime  pTime,
int *  pLast = ((void *) 0) 
)
pure virtual

Evaluate curve value at a given time.

Parameters
pTimeTime of evaluation.
pLastIndex of the last processed key to speed up search. If this function is called in a loop, initialize this value to 0 and let it be updated by each call.
Returns
Evaluated curve value.
Remarks
This function take extrapolation into account.

Implemented in FbxAnimCurve.

◆ EvaluateIndex()

virtual float EvaluateIndex ( double  pIndex)
pure virtual

Evaluate curve value at the given key index.

Parameters
pIndexAny value from 0 to KeyGetCount() - 1. If this index falls between keys, the curve value will be interpolated based on the surrounding keys.
Returns
Evaluated curve value.

Implemented in FbxAnimCurve.

◆ GetTimeInterval()

virtual bool GetTimeInterval ( FbxTimeSpan pTimeInterval)
virtual

Find out start and end time of the animation curve.

This function retrieves the Curve's time span.

Parameters
pTimeIntervalReference to receive start time and end time.
Returns
true on success, false otherwise.

Reimplemented in FbxAnimCurve.

Friends And Related Function Documentation

◆ fbxsdk ::FbxManager

friend class fbxsdk ::FbxManager
friend

Definition at line 72 of file fbxanimcurvebase.h.

Member Data Documentation

◆ ClassId

FbxClassId ClassId
static

Definition at line 72 of file fbxanimcurvebase.h.

◆ Allocate

FbxObjectCreateProc Allocate
staticprotected

Definition at line 72 of file fbxanimcurvebase.h.


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