FBX C++ API Reference
|
#include <fbxcache.h>
This object contains methods for accessing point animation in a cache file.
The FBX SDK supports three point cache file formats :
Accessing cache data using these formats differs significantly. To address this difference, several sets of methods have been created. Use the GetCacheFileFormat() function to determine which set of methods to use.
Definition at line 33 of file fbxcache.h.
Public Types | |
typedef FbxObject | ParentClass |
![]() | |
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 |
eMaxPointCacheV2 Format Specific Functions. | |
bool | OpenFileForWrite (double pFrameStartOffset, double pSamplingFrameRate, unsigned int pSampleCount, unsigned int pPointCount, FbxStatus *pStatus=((void *) 0)) |
Open a cache file for writing. More... | |
unsigned int | GetSampleCount (FbxStatus *pStatus=((void *) 0)) |
Get the number of frames of animation found in the point cache file. More... | |
unsigned int | GetPointCount (FbxStatus *pStatus=((void *) 0)) |
Get the number of points animated in the cache file. More... | |
double | GetFrameStartOffset (FbxStatus *pStatus=((void *) 0)) |
Get the start time of the animation. More... | |
bool | Read (unsigned int pFrameIndex, double *pBuffer, unsigned int pPointCount, FbxStatus *pStatus=((void *) 0)) |
Read a sample at a given frame index. More... | |
bool | Write (unsigned int pFrameIndex, double *pBuffer, FbxStatus *pStatus=((void *) 0)) |
Write a sample at a given frame index. More... | |
File conversion Functions. | |
bool | ConvertFromPC2ToMC (EMCFileCount pFileCount, double pSamplingFrameRate, EMCBinaryFormat pBinaryFormat, FbxStatus *pStatus=((void *) 0)) |
Create an MC cache file from an PC2 cache file. More... | |
bool | ConvertFromMCToPC2 (double pSamplingFrameRate, unsigned int pChannelIndex, FbxStatus *pStatus=((void *) 0)) |
Create a PC2 cache file from an MC cache file. More... | |
![]() | |
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... | |
FbxManager * | GetFbxManager () const |
Retrieve the FbxManager this object belongs to. More... | |
FbxDocument * | GetDocument () const |
Returns a const pointer to the document that contains this object. More... | |
FbxDocument * | GetRootDocument () const |
Returns a const pointer to the root document that contains this object. More... | |
FbxScene * | GetScene () 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... | |
FbxObject * | GetSrcObject (int pIndex=0) const |
Returns the source object with which this object connects at the specified index. More... | |
FbxObject * | GetSrcObject (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... | |
FbxObject * | FindSrcObject (const char *pName, int pStartIndex=0) const |
Searches the source object with the specified name, starting at the specified index. More... | |
FbxObject * | FindSrcObject (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... | |
FbxObject * | GetDstObject (int pIndex=0) const |
Returns the destination object at the specified index with which this object connects. More... | |
FbxObject * | GetDstObject (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... | |
FbxObject * | FindDstObject (const char *pName, int pStartIndex=0) const |
Searches the destination object with the specified name, starting at the specified index. More... | |
FbxObject * | FindDstObject (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... | |
FbxLibrary * | GetParentLibrary () 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... | |
FbxImplementation * | GetDefaultImplementation (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... | |
FbxImplementation * | GetImplementation (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 FbxObject & | Copy (const FbxObject &pObject) |
Copy an object content into this object. More... | |
virtual FbxObject * | Clone (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... | |
FbxObject * | GetReferenceTo () 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... | |
FbxObject * | GetReferencedBy (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 FbxUInt64 & | GetUniqueID () const |
Returns the unique ID of this object. More... | |
![]() | |
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 FbxCache * | Create (FbxManager *pManager, const char *pName) |
static FbxCache * | Create (FbxObject *pContainer, const char *pName) |
![]() | |
static FbxObject * | Create (FbxManager *pManager, const char *pName) |
static FbxObject * | Create (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 FbxClassId | ClassId |
Protected Member Functions | |
virtual | ~ FbxCache () |
FbxCache (FbxManager &pManager, const char *pName) | |
![]() | |
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 FbxPeripheral * | GetPeripheral () |
Retrieves the peripheral of that object. More... | |
Static Protected Member Functions | |
static FbxCache * | Allocate (FbxManager *pManager, const char *pName, const FbxCache *pFrom) |
![]() | |
static FbxObject * | Allocate (FbxManager *pManager, const char *pName, const FbxObject *pFrom) |
Friends | |
class | fbxsdk ::FbxManager |
template<typename T > | |
T * | fbxsdk ::FbxNew () |
template<typename T , typename T1 > | |
T * | fbxsdk ::FbxNew (T1 &p1) |
template<typename T , typename T1 > | |
T * | fbxsdk ::FbxNew (const T1 &p1) |
template<typename T , typename T1 , typename T2 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2) |
template<typename T , typename T1 , typename T2 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2) |
template<typename T , typename T1 , typename T2 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2) |
template<typename T , typename T1 , typename T2 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, const T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, const T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, const T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, const T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, const T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, const T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, const T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, const T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (T1 &p1, T2 &p2, T3 &p3, T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3, T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3, T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, const T3 &p3, T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3, const T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, T2 &p2, T3 &p3, T4 &p4, const T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3, const T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, T3 &p3, T4 &p4, const T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, T4 &p4, const T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8) |
template<typename T , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > | |
T * | fbxsdk ::FbxNew (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9) |
template<typename T > | |
void | fbxsdk ::FbxDelete (T *p) |
template<typename T > | |
void | fbxsdk ::FbxDelete (const T *p) |
template<typename T > | |
T * | fbxsdk ::FbxNewArray (const int n) |
template<typename T > | |
void | fbxsdk ::FbxDeleteArray (T *p) |
Format Independent Functions. | |
enum | EFileFormat { eUnknownFileFormat, eMaxPointCacheV2, eMayaCache, eAlembic } |
Supported cache file formats. More... | |
void | SetCacheFileFormat (EFileFormat pFileFormat, FbxStatus *pStatus=((void *) 0)) |
Set the cache file format. More... | |
EFileFormat | GetCacheFileFormat () const |
Get the cache file format. More... | |
void | SetCacheFileName (const char *pRelativeFileName_UTF8, const char *pAbsoluteFileName_UTF8, FbxStatus *pStatus=((void *) 0)) |
Set the cache file name. More... | |
void | GetCacheFileName (FbxString &pRelativeFileName_UTF8, FbxString &pAbsoluteFileName_UTF8) const |
Get the cache file name. More... | |
bool | OpenFileForRead (FbxStatus *pStatus=((void *) 0)) |
Open the cache file for reading. More... | |
bool | IsOpen (FbxStatus *pStatus=((void *) 0)) const |
Get the open state of the cache file. More... | |
bool | Read (float **pBuffer, unsigned int &pBufferLength, const FbxTime &pTime, unsigned int pChannel=0) |
Read data from the cache file. More... | |
bool | CloseFile (FbxStatus *pStatus=((void *) 0)) |
Close the cache file. More... | |
double | GetSamplingFrameRate (FbxStatus *pStatus=((void *) 0)) |
Get the sampling frame rate of the cache file. More... | |
FbxTime | GetCacheTimePerFrame (FbxStatus *pStatus=((void *) 0)) |
Get the sampling frame rate of the cache file, as a FbxTime object. More... | |
int | GetChannelCount (FbxStatus *pStatus=((void *) 0)) |
Get the number of channels in the cache file. More... | |
bool | GetChannelName (int pChannelIndex, FbxString &pChannelName, FbxStatus *pStatus=((void *) 0)) |
Get the channel name for a specific channel index. More... | |
eMayaCache Format Specific Functions. | |
enum | EMCFileCount { eMCOneFile, eMCOneFilePerFrame } |
Number of files used to store the animation. More... | |
enum | EMCDataType { eUnknownData, eDouble, eDoubleArray, eDoubleVectorArray, eInt32Array, eFloatArray, eFloatVectorArray } |
Data types in the MC cache file. More... | |
enum | EMCBinaryFormat { eMCC, eMCX } |
Binary cache format. More... | |
enum | EMCSamplingType { eSamplingRegular, eSamplingIrregular } |
Cache channel sampling types. More... | |
bool | OpenFileForWrite (EMCFileCount pFileCount, double pSamplingFrameRate, const char *pChannelName, EMCBinaryFormat pBinaryFormat, EMCDataType pMCDataType=eDoubleVectorArray, const char *pInterpretation="Points", FbxStatus *pStatus=((void *) 0)) |
Open a cache file for writing. More... | |
bool | AddChannel (const char *pChannelName, EMCDataType pMCDataType, const char *pInterpretation, unsigned int &pChannelIndex, FbxStatus *pStatus=((void *) 0)) |
Creates a new channel in the cache. More... | |
bool | GetChannelDataType (int pChannelIndex, EMCDataType &pChannelType, FbxStatus *pStatus=((void *) 0)) |
Get the data type of the specified channel. More... | |
int | GetChannelIndex (const char *pChannelName, FbxStatus *pStatus=((void *) 0)) |
Get the index of the specified channel. More... | |
bool | Read (int pChannelIndex, FbxTime &pTime, double *pBuffer, unsigned int pPointCount, FbxStatus *pStatus=((void *) 0)) |
Read a sample at a given time. More... | |
bool | Read (int pChannelIndex, FbxTime &pTime, float *pBuffer, unsigned int pPointCount, FbxStatus *pStatus=((void *) 0)) |
Read a sample at a given time. More... | |
bool | Read (int pChannelIndex, FbxTime &pTime, int *pBuffer, unsigned int pPointCount, FbxStatus *pStatus=((void *) 0)) |
Read a sample at a given time. More... | |
bool | BeginWriteAt (FbxTime &pTime, FbxStatus *pStatus=((void *) 0)) |
Instruct the cache system that data is about to be written to it. More... | |
bool | Write (int pChannelIndex, FbxTime &pTime, double *pBuffer, unsigned int pPointCount, FbxStatus *pStatus=((void *) 0)) |
Write a sample at a given time. More... | |
bool | Write (int pChannelIndex, FbxTime &pTime, float *pBuffer, unsigned int pPointCount, FbxStatus *pStatus=((void *) 0)) |
Write a sample at a given time. More... | |
bool | Write (int pChannelIndex, FbxTime &pTime, int *pBuffer, unsigned int pPointCount, FbxStatus *pStatus=((void *) 0)) |
Write a sample at a given time. More... | |
bool | EndWriteAt (FbxStatus *pStatus=((void *) 0)) |
Instruct the cache system that all the data on all the channels has been written to it for the given time (specified by the BeginWriteAt() call). More... | |
bool | GetAnimationRange (int pChannelIndex, FbxTime &pTimeStart, FbxTime &pTimeEnd, FbxStatus *pStatus=((void *) 0)) |
Get the Animation Range of the specified channel. More... | |
bool | GetCacheType (EMCFileCount &pFileCount, FbxStatus *pStatus=((void *) 0)) |
Get the cache type. More... | |
bool | GetChannelInterpretation (int pChannelIndex, FbxString &pInterpretation, FbxStatus *pStatus=((void *) 0)) |
Get the cache channel interpretation. More... | |
bool | GetChannelSamplingType (int pChannelIndex, EMCSamplingType &pSamplingType, FbxStatus *pStatus=((void *) 0)) |
Get the cache channel sampling type. More... | |
bool | GetChannelSamplingRate (int pChannelIndex, FbxTime &pSamplingRate, FbxStatus *pStatus=((void *) 0)) |
Get the cache channel sampling rate, in frames per second. More... | |
bool | GetChannelSampleCount (int pChannelIndex, unsigned int &pSampleCount, FbxStatus *pStatus=((void *) 0)) |
Get the number of data points for a channel. More... | |
bool | GetChannelPointCount (int pChannelIndex, FbxTime pTime, unsigned int &pPointCount, FbxStatus *pStatus=((void *) 0)) |
Get the number of points animated in the cache file, for a channel, for a given time. More... | |
int | GetCacheDataFileCount (FbxStatus *pStatus=((void *) 0)) const |
Returns the number of cache data files. More... | |
bool | GetCacheDataFileName (int pIndex, FbxString &pRelativeFileName, FbxString &pAbsoluteFileName, FbxStatus *pStatus=((void *) 0)) |
Get the nth cache file name. More... | |
bool | EnableMultiChannelFetching (bool pMultiChannelFetching, FbxStatus *pStatus=((void *) 0)) |
Enable multi-channel fetching. More... | |
bool | GetNextTimeWithData (FbxTime pCurTime, FbxTime &pNextTime, int pChannelIndex=-1, FbxStatus *pStatus=((void *) 0)) |
Get the next time where data is stored. More... | |
int | GetDataCount (int pChannelIndex, FbxStatus *pStatus=((void *) 0)) |
Get the number of data points the channel contains. More... | |
bool | GetDataTime (int pChannelIndex, unsigned int pDataIndex, FbxTime &pTime, FbxStatus *pStatus=((void *) 0)) |
Get the time of the specified data point. More... | |
Additional Inherited Members | |
![]() | |
FbxProperty | RootProperty |
The root property that holds all children property for this object. More... | |
typedef FbxObject ParentClass |
Definition at line 35 of file fbxcache.h.
enum EFileFormat |
Supported cache file formats.
Enumerator | |
---|---|
eUnknownFileFormat | Unknown cache file format. |
eMaxPointCacheV2 | 3ds Max Point Cache 2 file format. |
eMayaCache | Maya Cache file format. |
eAlembic | Alembic Cache file format. |
Definition at line 41 of file fbxcache.h.
enum EMCFileCount |
Number of files used to store the animation.
Definition at line 119 of file fbxcache.h.
enum EMCDataType |
Data types in the MC cache file.
Definition at line 126 of file fbxcache.h.
enum EMCBinaryFormat |
Binary cache format.
Enumerator | |
---|---|
eMCC | MCC cache file format, 32bit (older format) |
eMCX | MCX cache file format, 64bit (newer format) |
Definition at line 138 of file fbxcache.h.
enum EMCSamplingType |
Cache channel sampling types.
Enumerator | |
---|---|
eSamplingRegular | Regular sampling. |
eSamplingIrregular | Irregular sampling. |
Definition at line 145 of file fbxcache.h.
|
inlineprotectedvirtual |
Definition at line 35 of file fbxcache.h.
|
inlineprotected |
Definition at line 35 of file fbxcache.h.
|
inlinevirtual |
|
static |
|
staticprotected |
void SetCacheFileFormat | ( | EFileFormat | pFileFormat, |
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Set the cache file format.
pFileFormat | Valid values are eMaxPointCacheV2 or eMayaCache. |
pStatus | The FbxStatus object to hold error codes. |
EFileFormat GetCacheFileFormat | ( | ) | const |
Get the cache file format.
void SetCacheFileName | ( | const char * | pRelativeFileName_UTF8, |
const char * | pAbsoluteFileName_UTF8, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Set the cache file name.
pRelativeFileName_UTF8 | The point cache file, relative to the FBX file name. |
pAbsoluteFileName_UTF8 | The point cache file absolute path. |
pStatus | The FbxStatus object to hold error codes. |
void GetCacheFileName | ( | FbxString & | pRelativeFileName_UTF8, |
FbxString & | pAbsoluteFileName_UTF8 | ||
) | const |
Get the cache file name.
pRelativeFileName_UTF8 | Return the point cache file name, relative to the FBX File name. |
pAbsoluteFileName_UTF8 | Return the point cache file absolute path. |
bool OpenFileForRead | ( | FbxStatus * | pStatus = ((void *) 0) | ) |
Open the cache file for reading.
pStatus | The FbxStatus object to hold error codes. |
true
if the file is successfully opened, false
otherwise. bool IsOpen | ( | FbxStatus * | pStatus = ((void *) 0) | ) | const |
Get the open state of the cache file.
pStatus | The FbxStatus object to hold error codes. |
true
if the cache file is currently open, false
otherwise. bool Read | ( | float ** | pBuffer, |
unsigned int & | pBufferLength, | ||
const FbxTime & | pTime, | ||
unsigned int | pChannel = 0 |
||
) |
Read data from the cache file.
pBuffer | The buffer containing the data from the cache file. This parameter can be NULL if interested to get buffer length only. |
pBufferLength | The length of the buffer (NOT in bytes). |
pTime | The time at which the data should be read. |
pChannel | The cache file channel to read, when multiple channels are available. |
True
if the cache data was successfully read, false
otherwise. bool CloseFile | ( | FbxStatus * | pStatus = ((void *) 0) | ) |
Close the cache file.
pStatus | The FbxStatus object to hold error codes. |
true
if the cache file is closed successfully, false
otherwise. double GetSamplingFrameRate | ( | FbxStatus * | pStatus = ((void *) 0) | ) |
Get the sampling frame rate of the cache file.
pStatus | The FbxStatus object to hold error codes. |
int GetChannelCount | ( | FbxStatus * | pStatus = ((void *) 0) | ) |
Get the number of channels in the cache file.
pStatus | The FbxStatus object to hold error codes. |
bool GetChannelName | ( | int | pChannelIndex, |
FbxString & | pChannelName, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the channel name for a specific channel index.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pChannelName | Returns the name of the requested channel. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool OpenFileForWrite | ( | EMCFileCount | pFileCount, |
double | pSamplingFrameRate, | ||
const char * | pChannelName, | ||
EMCBinaryFormat | pBinaryFormat, | ||
EMCDataType | pMCDataType = eDoubleVectorArray , |
||
const char * | pInterpretation = "Points" , |
||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Open a cache file for writing.
pFileCount | Create one file for each frame of animation, or one file for all the frames. |
pSamplingFrameRate | Number of frames per second. |
pChannelName | The name of the channel of animation to create. |
pBinaryFormat | Binary format type (32 bit=eMCC or 64bit=eMCX) |
pMCDataType | The data type of the MC cache file. |
pInterpretation | A piece of meta data to help users of the cache understand how to interpret the data. |
pStatus | The FbxStatus object to hold error codes. |
bool AddChannel | ( | const char * | pChannelName, |
EMCDataType | pMCDataType, | ||
const char * | pInterpretation, | ||
unsigned int & | pChannelIndex, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Creates a new channel in the cache.
pChannelName | The name of the channel of animation to create. |
pMCDataType | The MC DataType of the cache. |
pInterpretation | A piece of meta data to help users of the cache understand how to interpret the data. |
pChannelIndex | The index of the new animation channel. |
pStatus | The FbxStatus object to hold error codes. |
bool GetChannelDataType | ( | int | pChannelIndex, |
EMCDataType & | pChannelType, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the data type of the specified channel.
pChannelIndex | The index of the channel. |
pChannelType | The channel's data type. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. int GetChannelIndex | ( | const char * | pChannelName, |
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the index of the specified channel.
pChannelName | The name of the channel. |
pStatus | The FbxStatus object to hold error codes. |
bool Read | ( | int | pChannelIndex, |
FbxTime & | pTime, | ||
double * | pBuffer, | ||
unsigned int | pPointCount, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Read a sample at a given time.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pTime | Time at which the point animation must be evaluated. |
pBuffer | The place where the point value will be copied. If the channel's data type is DoubleVectorArray this buffer must be of size 3*pPointCount. |
pPointCount | The number of points to read from the point cache file. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool Read | ( | int | pChannelIndex, |
FbxTime & | pTime, | ||
float * | pBuffer, | ||
unsigned int | pPointCount, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Read a sample at a given time.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pTime | Time at which the point animation must be evaluated. |
pBuffer | The place where the point value will be copied. If the channel's data type is FloatVectorArray this buffer must be of size 3*pPointCount. |
pPointCount | The number of points to read from the point cache file. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool Read | ( | int | pChannelIndex, |
FbxTime & | pTime, | ||
int * | pBuffer, | ||
unsigned int | pPointCount, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Read a sample at a given time.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pTime | Time at which the point animation must be evaluated. |
pBuffer | The place where the point value will be copied. This buffer must be of size pPointCount. |
pPointCount | The number of points to read from the point cache file. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. Instruct the cache system that data is about to be written to it.
This call must appear before any calls to the Write() methods on any channel and terminated by a call to EndWriteAt().
pTime | Time at which the point animation must be inserted. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool Write | ( | int | pChannelIndex, |
FbxTime & | pTime, | ||
double * | pBuffer, | ||
unsigned int | pPointCount, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Write a sample at a given time.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pTime | Time at which the point animation must be inserted. |
pBuffer | Point to the values to be copied. If the channel's data type is DoubleVectorArray this buffer must be of size 3*pPointCount. |
pPointCount | The number of points to write in the point cache file. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool Write | ( | int | pChannelIndex, |
FbxTime & | pTime, | ||
float * | pBuffer, | ||
unsigned int | pPointCount, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Write a sample at a given time.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pTime | Time at which the point animation must be inserted. |
pBuffer | Point to the values to be copied. If the channel's data type is FloatVectorArray this buffer must be of size 3*pPointCount. |
pPointCount | The number of points to write in the point cache file. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool Write | ( | int | pChannelIndex, |
FbxTime & | pTime, | ||
int * | pBuffer, | ||
unsigned int | pPointCount, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Write a sample at a given time.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pTime | Time at which the point animation must be inserted. |
pBuffer | Point to the values to be copied. This buffer must be of size pPointCount. |
pPointCount | The number of points to write in the point cache file. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool EndWriteAt | ( | FbxStatus * | pStatus = ((void *) 0) | ) |
Instruct the cache system that all the data on all the channels has been written to it for the given time (specified by the BeginWriteAt() call).
The call to this method must be made after all the Write() for every channel defined.
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool GetAnimationRange | ( | int | pChannelIndex, |
FbxTime & | pTimeStart, | ||
FbxTime & | pTimeEnd, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the Animation Range of the specified channel.
pChannelIndex | The index of the channel. |
pTimeStart | The start time of the channel's animation. |
pTimeEnd | The end time of the channel's animation. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool GetCacheType | ( | EMCFileCount & | pFileCount, |
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the cache type.
pFileCount | The cache type. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool GetChannelInterpretation | ( | int | pChannelIndex, |
FbxString & | pInterpretation, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the cache channel interpretation.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pInterpretation | The channel interpretation, user-defined. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool GetChannelSamplingType | ( | int | pChannelIndex, |
EMCSamplingType & | pSamplingType, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the cache channel sampling type.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pSamplingType | The sampling type of the channel. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool GetChannelSamplingRate | ( | int | pChannelIndex, |
FbxTime & | pSamplingRate, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the cache channel sampling rate, in frames per second.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pSamplingRate | The sampling rate of the channel. The channel must have a regular sampling type. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool GetChannelSampleCount | ( | int | pChannelIndex, |
unsigned int & | pSampleCount, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the number of data points for a channel.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pSampleCount | Number of available samples. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool GetChannelPointCount | ( | int | pChannelIndex, |
FbxTime | pTime, | ||
unsigned int & | pPointCount, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the number of points animated in the cache file, for a channel, for a given time.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pTime | Reference time; must be within the boundaries of the animation. |
pPointCount | Number of available points. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. int GetCacheDataFileCount | ( | FbxStatus * | pStatus = ((void *) 0) | ) | const |
Returns the number of cache data files.
pStatus | The FbxStatus object to hold error codes. |
bool GetCacheDataFileName | ( | int | pIndex, |
FbxString & | pRelativeFileName, | ||
FbxString & | pAbsoluteFileName, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the nth cache file name.
pIndex | Index of the cache file to return; index is zero-based, and must be less than GetCacheDataFileCount(). |
pRelativeFileName | Return the point cache file name, relative to the FBX File name. |
pAbsoluteFileName | Return the point cache file absolute path. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. See the error management functions for error details. bool EnableMultiChannelFetching | ( | bool | pMultiChannelFetching, |
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Enable multi-channel fetching.
pMultiChannelFetching | Enable/disable multi-channel fetching. When multi-channel is enabled, any load of data on a channel at a specific time will pre-fetch data from all channels, for that specific time. This can reduce disk access, and increase performance (but requires more memory). |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool GetNextTimeWithData | ( | FbxTime | pCurTime, |
FbxTime & | pNextTime, | ||
int | pChannelIndex = -1 , |
||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the next time where data is stored.
pCurTime | Current time; must be within the boundaries of the animation time. |
pNextTime | Next time (filled if the function is successful). |
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). If pChannel is left at -1, get the next time for any channel. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. int GetDataCount | ( | int | pChannelIndex, |
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the number of data points the channel contains.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pStatus | The FbxStatus object to hold error codes. |
bool GetDataTime | ( | int | pChannelIndex, |
unsigned int | pDataIndex, | ||
FbxTime & | pTime, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Get the time of the specified data point.
pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
pDataIndex | Index of the data point. |
pTime | Time of the data point (filled if the function is successful). |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool OpenFileForWrite | ( | double | pFrameStartOffset, |
double | pSamplingFrameRate, | ||
unsigned int | pSampleCount, | ||
unsigned int | pPointCount, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Open a cache file for writing.
pFrameStartOffset | Start time of the animation, in frames. |
pSamplingFrameRate | Number of frames per second. |
pSampleCount | The number of samples to write to the file. |
pPointCount | The number of points to write in the point cache file. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. See the error management functions for error details. unsigned int GetSampleCount | ( | FbxStatus * | pStatus = ((void *) 0) | ) |
Get the number of frames of animation found in the point cache file.
pStatus | The FbxStatus object to hold error codes. |
unsigned int GetPointCount | ( | FbxStatus * | pStatus = ((void *) 0) | ) |
Get the number of points animated in the cache file.
pStatus | The FbxStatus object to hold error codes. |
double GetFrameStartOffset | ( | FbxStatus * | pStatus = ((void *) 0) | ) |
Get the start time of the animation.
pStatus | The FbxStatus object to hold error codes. |
bool Read | ( | unsigned int | pFrameIndex, |
double * | pBuffer, | ||
unsigned int | pPointCount, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Read a sample at a given frame index.
pFrameIndex | The index of the animation frame, between 0 and GetSampleCount(). |
pBuffer | The place where the point value will be copied. This buffer must be of size 3 * pPointCount. |
pPointCount | The number of points to read from the point cache file. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool Write | ( | unsigned int | pFrameIndex, |
double * | pBuffer, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Write a sample at a given frame index.
pFrameIndex | The index of the animation frame. |
pBuffer | Point to the values to be copied. This buffer must be of size 3 * pPointCount, as passed to the function OpenFileForWrite(). |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool ConvertFromPC2ToMC | ( | EMCFileCount | pFileCount, |
double | pSamplingFrameRate, | ||
EMCBinaryFormat | pBinaryFormat, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Create an MC cache file from an PC2 cache file.
pFileCount | Create one file for each frame of animation, or one file for all the frames. |
pSamplingFrameRate | Number of frames per second used to re-sample the point animation. |
pBinaryFormat | Binary format type (32 bit=eMCC or 64bit=eMCX) |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise. bool ConvertFromMCToPC2 | ( | double | pSamplingFrameRate, |
unsigned int | pChannelIndex, | ||
FbxStatus * | pStatus = ((void *) 0) |
||
) |
Create a PC2 cache file from an MC cache file.
pSamplingFrameRate | Number of frames per second to re-sample the point animation. |
pChannelIndex | Index of the channel of animation to read from. |
pStatus | The FbxStatus object to hold error codes. |
true
if successful, false
otherwise.
|
friend |
Definition at line 35 of file fbxcache.h.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Definition at line 35 of file fbxcache.h.