This reference page is linked to from the following overview topics: List of Python Fbx classes.
This object contains methods for accessing point animation in a cache file.
The FBX SDK supports two point cache file formats :
Accessing cache data using these formats differs significantly. To address this difference, two sets of methods have been created. Use the GetCacheFileFormat() function to determine which set of methods to use.
ExportScene03/main.cxx, ViewScene/DrawScene.cxx, and ViewScene/SceneContext.cxx.
Definition at line 39 of file fbxcache.h.
#include <fbxcache.h>

Public Types |
|
| enum | EOpenFlag { eReadOnly, eWriteOnly } |
Public Member Functions |
|
|
eMaxPointCacheV2 Format Specific
Functions.
|
|
| bool | OpenFileForWrite (double pFrameStartOffset, double pSamplingFrameRate, unsigned int pSampleCount, unsigned int pPointCount) |
| Open a cache file for writing. |
|
| unsigned int | GetSampleCount () |
| Get the number of frames of animation found
in the point cache file. |
|
| unsigned int | GetPointCount () |
| Get the number of points animated in the
cache file. |
|
| double | GetFrameStartOffset () |
| Get the start time of the animation.
|
|
| bool | Read (unsigned int pFrameIndex, double *pBuffer, unsigned int pPointCount) |
| Read a sample at a given frame index.
|
|
| bool | Write (unsigned int pFrameIndex, double *pBuffer) |
| Write a sample at a given frame index.
|
|
|
File conversion Functions.
|
|
| bool | ConvertFromPC2ToMC (EMCFileCount pFileCount, double pSamplingFrameRate) |
| Create an MC cache file from an PC2 cache
file. |
|
| bool | ConvertFromMCToPC2 (double pSamplingFrameRate, unsigned int pChannelIndex) |
| Create a PC2 cache file from an MC cache
file. |
|
Static Public Attributes |
|
| static const char * | sCacheFilePropertyName |
| static const char * | sCacheFileAbsolutePathPropertyName |
| static const char * | sCacheFileTypePropertyName |
Protected Member Functions |
|
| bool | OpenFile (EOpenFlag pFlag, EMCFileCount pFileCount, double pSamplingFrameRate, const char *pChannelName, const char *pInterpretation, unsigned int pSampleCount, unsigned int pPointCount, double pFrameStartOffset, EMCDataType pMCDataType=eDoubleVectorArray) |
| FbxCache (FbxManager &pManager, char const *pName) | |
| virtual void | Construct (const FbxCache *pFrom) |
| virtual bool | ConstructProperties (bool pForceSet) |
| virtual void | Destruct (bool pRecursive, bool pDependents) |
Protected Attributes |
|
| FbxCache_internal * | mData |
Format Independent Functions. |
|
| enum | EFileFormat { eUnknownFileFormat, eMaxPointCacheV2, eMayaCache } |
|
Supported cache file formats. More... |
|
| void | SetCacheFileFormat (EFileFormat pFileFormat) |
| Set the cache file format. |
|
| EFileFormat | GetCacheFileFormat () const |
| Get the cache file format. |
|
| void | SetCacheFileName (const char *pRelativeFileName_UTF8, const char *pAbsoluteFileName_UTF8) |
| Set the cache file name. |
|
| void | GetCacheFileName (FbxString &pRelativeFileName_UTF8, FbxString &pAbsoluteFileName_UTF8) const |
| Get the cache file name. |
|
| bool | OpenFileForRead () |
| Open the cache file for reading. |
|
| bool | IsOpen () const |
| Get the open state of the cache file.
|
|
| bool | CloseFile () |
| Close the cache file. |
|
| double | GetSamplingFrameRate () |
| Get the sampling frame rate of the cache
file. |
|
| FbxTime | GetCacheTimePerFrame () |
| Get the sampling frame rate of the cache
file, as a FbxTime object. |
|
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 | EMCSamplingType { eSamplingRegular, eSamplingIrregular } |
|
Cache channel sampling types. More... |
|
| bool | OpenFileForWrite (EMCFileCount pFileCount, double pSamplingFrameRate, const char *pChannelName, EMCDataType pMCDataType=eDoubleVectorArray, const char *pInterpretation="Points") |
| Open a cache file for writing. |
|
| bool | AddChannel (const char *pChannelName, EMCDataType pMCDataType, const char *pInterpretation, unsigned int &pChannelIndex) |
| Creates a new channel in the cache. |
|
| int | GetChannelCount () |
| Get the number of channels in the cache
file. |
|
| bool | GetChannelName (int pChannelIndex, FbxString &pChannelName) |
| Get the channel name for a specific channel
index. |
|
| bool | GetChannelDataType (int pChannelIndex, EMCDataType &pChannelType) |
| Get the data type of the specified channel.
|
|
| int | GetChannelIndex (const char *pChannelName) |
| Get the index of the specified channel.
|
|
| bool | Read (int pChannelIndex, FbxTime &pTime, double *pBuffer, unsigned int pPointCount) |
| Read a sample at a given time. |
|
| bool | Read (int pChannelIndex, FbxTime &pTime, float *pBuffer, unsigned int pPointCount) |
| Read a sample at a given time. |
|
| bool | Read (int pChannelIndex, FbxTime &pTime, int *pBuffer, unsigned int pPointCount) |
| Read a sample at a given time. |
|
| bool | BeginWriteAt (FbxTime &pTime) |
| Instruct the cache system that data is about
to be written to it. |
|
| bool | Write (int pChannelIndex, FbxTime &pTime, double *pBuffer, unsigned int pPointCount) |
| Write a sample at a given time. |
|
| bool | Write (int pChannelIndex, FbxTime &pTime, float *pBuffer, unsigned int pPointCount) |
| Write a sample at a given time. |
|
| bool | Write (int pChannelIndex, FbxTime &pTime, int *pBuffer, unsigned int pPointCount) |
| Write a sample at a given time. |
|
| bool | EndWriteAt () |
| 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). |
|
| bool | GetAnimationRange (int pChannelIndex, FbxTime &pTimeStart, FbxTime &pTimeEnd) |
| Get the Animation Range of the specified
channel. |
|
| bool | GetCacheType (EMCFileCount &pFileCount) |
| Get the cache type. |
|
| bool | GetChannelInterpretation (int pChannelIndex, FbxString &pInterpretation) |
| Get the cache channel interpretation.
|
|
| bool | GetChannelSamplingType (int pChannelIndex, EMCSamplingType &pSamplingType) |
| Get the cache channel sampling type.
|
|
| bool | GetChannelSamplingRate (int pChannelIndex, FbxTime &pSamplingRate) |
| Get the cache channel sampling rate, in
frames per second. |
|
| bool | GetChannelSampleCount (int pChannelIndex, unsigned int &pSampleCount) |
| Get the number of data points for a channel.
|
|
| bool | GetChannelPointCount (int pChannelIndex, FbxTime pTime, unsigned int &pPointCount) |
| Get the number of points animated in the
cache file, for a channel, for a given time. |
|
| int | GetCacheDataFileCount () const |
| Returns the number of cache data files.
|
|
| bool | GetCacheDataFileName (int pIndex, FbxString &pRelativeFileName, FbxString &pAbsoluteFileName) |
| Get the nth cache file name. |
|
| bool | EnableMultiChannelFetching (bool pMultiChannelFetching) |
| Enable multi-channel fetching. |
|
| bool | GetNextTimeWithData (FbxTime pCurTime, FbxTime &pNextTime, int pChannelIndex=-1) |
| Get the next time where data is stored.
|
|
| int | GetDataCount (int pChannelIndex) |
| Get the number of data points the channel
contains. |
|
| bool | GetDataTime (int pChannelIndex, unsigned int pDataIndex, FbxTime &pTime) |
| Get the time of the specified data point.
|
|
Error Management |
|
| enum | EErrorCode
{ eUnsupportedArchitecture, eInvalidAbsolutePath, eInvalidSamplingRate, eInvalidCacheFormat, eUnsupportedFileVersion, eConversionFromPC2Failed, eConversionFromMCFailed, eCacheFileNotFound, eCacheFileNotOpened, eCacheFileNotCreated, eInvalidOpenFlag, eErrorWritingSample, eErrorReadingSample, eErrorDataType, eErrorInvalidChannelIndex, eErrorIrregularChannelSampling, eErrorChannelInterpretation, eErrorChannelSampling, eErrorInvalidFileIndex, eErrorCacheDataFileName, eErrorChannelStartTime, eErrorChannelPointCount, eErrorInvalidTime, eErrorBeginWriteAtNotCalled, eErrorCount } |
|
Error identifiers. More... |
|
| FbxError & | GetError () |
| Retrieve error object. |
|
| EErrorCode | GetLastErrorID () const |
| Get last error code. |
|
| const char * | GetLastErrorString () const |
| Get last error string. |
|
| enum EFileFormat |
Supported cache file formats.
| eUnknownFileFormat |
Unknown cache file format. |
| eMaxPointCacheV2 |
3ds Max Point Cache 2 file format. |
| eMayaCache |
Maya Cache file format. |
Definition at line 51 of file fbxcache.h.
| enum EMCFileCount |
Number of files used to store the animation.
| eMCOneFile |
One file is used for all the frames of animation. |
| eMCOneFilePerFrame |
For every frame of animation, a cache file is used. The number of the frames is the number of the cache files. |
Definition at line 115 of file fbxcache.h.
{
eMCOneFile,
eMCOneFilePerFrame
};
| enum EMCDataType |
Data types in the MC cache file.
Definition at line 123 of file fbxcache.h.
| enum EMCSamplingType |
Cache channel sampling types.
Definition at line 305 of file fbxcache.h.
| enum EErrorCode |
Error identifiers.
| eUnsupportedArchitecture | |
| eInvalidAbsolutePath |
The absolute path is invalid. |
| eInvalidSamplingRate |
The sampling rate is invalid. |
| eInvalidCacheFormat |
The cache format is invalid. |
| eUnsupportedFileVersion |
The cache file version is not supported yet. |
| eConversionFromPC2Failed |
The conversion from PC2 to MC cache file failed. |
| eConversionFromMCFailed |
The conversion from MC to PC2 cache file failed. |
| eCacheFileNotFound |
The cache file can not be found. |
| eCacheFileNotOpened |
The cache file can not be opened. |
| eCacheFileNotCreated |
The cache file can not be created. |
| eInvalidOpenFlag |
The open file flag (read or write) does not match. |
| eErrorWritingSample |
Fails to write the sample. |
| eErrorReadingSample |
Fails to read the sample. |
| eErrorDataType |
The date type does not match. |
| eErrorInvalidChannelIndex |
The channel index is invalid. |
| eErrorIrregularChannelSampling |
The channel sampling is irregular. |
| eErrorChannelInterpretation |
Fails to get the cache channel's interpretation. |
| eErrorChannelSampling |
Fails to get the cache channel's sampling rate. |
| eErrorInvalidFileIndex |
The file index is invalid. |
| eErrorCacheDataFileName |
Fails to get the cache file's name. |
| eErrorChannelStartTime |
There is error of the start time of the channel's animation. |
| eErrorChannelPointCount |
Fails to get the number of points animated in the cache file. |
| eErrorInvalidTime |
The specified time is invalid. |
| eErrorBeginWriteAtNotCalled |
The BeginWriteAt() is not called. |
| eErrorCount |
The number of all the errors. |
Definition at line 486 of file fbxcache.h.
{
eUnsupportedArchitecture,
eInvalidAbsolutePath,
eInvalidSamplingRate,
eInvalidCacheFormat,
eUnsupportedFileVersion,
eConversionFromPC2Failed,
eConversionFromMCFailed,
eCacheFileNotFound,
eCacheFileNotOpened,
eCacheFileNotCreated,
eInvalidOpenFlag,
eErrorWritingSample,
eErrorReadingSample,
eErrorDataType,
eErrorInvalidChannelIndex,
eErrorIrregularChannelSampling,
eErrorChannelInterpretation,
eErrorChannelSampling,
eErrorInvalidFileIndex,
eErrorCacheDataFileName,
eErrorChannelStartTime,
eErrorChannelPointCount,
eErrorInvalidTime,
eErrorBeginWriteAtNotCalled,
eErrorCount
};
| enum EOpenFlag |
Definition at line 542 of file fbxcache.h.
{
eReadOnly,
eWriteOnly
};
| FbxCache | ( | FbxManager & | pManager, |
| char const * | pName | ||
| ) | [protected] |
| void SetCacheFileFormat | ( | EFileFormat | pFileFormat | ) |
Set the cache file format.
| pFileFormat | Valid values are eMaxPointCacheV2 or eMayaCache. |
| EFileFormat GetCacheFileFormat | ( | ) | const |
Get the cache file format.
| void SetCacheFileName | ( | const char * | pRelativeFileName_UTF8, |
| const char * | pAbsoluteFileName_UTF8 | ||
| ) |
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. |
| 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 | ( | ) |
Open the cache file for reading.
true if the file is successfully opened,
false otherwise. See the error management functions
for error details.| bool IsOpen | ( | ) | const |
Get the open state of the cache file.
true if the cache file is currently open,
false otherwise.| bool CloseFile | ( | ) |
Close the cache file.
true if the cache file is closed successfully,
false otherwise.| double GetSamplingFrameRate | ( | ) |
Get the sampling frame rate of the cache file.
| FbxTime GetCacheTimePerFrame | ( | ) |
Get the sampling frame rate of the cache file, as a FbxTime object.
| bool OpenFileForWrite | ( | EMCFileCount | pFileCount, |
| double | pSamplingFrameRate, | ||
| const char * | pChannelName, | ||
| EMCDataType | pMCDataType =
eDoubleVectorArray, |
||
| const char * | pInterpretation =
"Points" |
||
| ) |
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. |
| 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. |
| bool AddChannel | ( | const char * | pChannelName, |
| EMCDataType | pMCDataType, | ||
| const char * | pInterpretation, | ||
| unsigned int & | pChannelIndex | ||
| ) |
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. |
| int GetChannelCount | ( | ) |
Get the number of channels in the cache file.
| bool GetChannelName | ( | int | pChannelIndex, |
| FbxString & | pChannelName | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool GetChannelDataType | ( | int | pChannelIndex, |
| EMCDataType & | pChannelType | ||
| ) |
Get the data type of the specified channel.
| pChannelIndex | The index of the channel. |
| pChannelType | The channel's data type. |
true if successful, false otherwise.
See the error management functions for error details.| int GetChannelIndex | ( | const char * | pChannelName | ) |
Get the index of the specified channel.
| pChannelName | The name of the channel. |
| bool Read | ( | int | pChannelIndex, |
| FbxTime & | pTime, | ||
| double * | pBuffer, | ||
| unsigned int | pPointCount | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool Read | ( | int | pChannelIndex, |
| FbxTime & | pTime, | ||
| float * | pBuffer, | ||
| unsigned int | pPointCount | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool Read | ( | int | pChannelIndex, |
| FbxTime & | pTime, | ||
| int * | pBuffer, | ||
| unsigned int | pPointCount | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool BeginWriteAt | ( | FbxTime & | pTime | ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool Write | ( | int | pChannelIndex, |
| FbxTime & | pTime, | ||
| double * | pBuffer, | ||
| unsigned int | pPointCount | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool Write | ( | int | pChannelIndex, |
| FbxTime & | pTime, | ||
| float * | pBuffer, | ||
| unsigned int | pPointCount | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool Write | ( | int | pChannelIndex, |
| FbxTime & | pTime, | ||
| int * | pBuffer, | ||
| unsigned int | pPointCount | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool EndWriteAt | ( | ) |
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.
true if successful, false otherwise.
See the error management functions for error details.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. |
true if successful, false otherwise.
See the error management functions for error details.| bool GetCacheType | ( | EMCFileCount & | pFileCount | ) |
Get the cache type.
| pFileCount | The cache type. |
true if successful, false otherwise.
See the error management functions for error details.| bool GetChannelInterpretation | ( | int | pChannelIndex, |
| FbxString & | pInterpretation | ||
| ) |
Get the cache channel interpretation.
| pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
| pInterpretation | The channel interpretation, user-defined. |
true if successful, false otherwise.
See the error management functions for error details.| bool GetChannelSamplingType | ( | int | pChannelIndex, |
| EMCSamplingType & | pSamplingType | ||
| ) |
Get the cache channel sampling type.
| pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
| pSamplingType | The sampling type of the channel. |
true if successful, false otherwise.
See the error management functions for error details.| bool GetChannelSamplingRate | ( | int | pChannelIndex, |
| FbxTime & | pSamplingRate | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool GetChannelSampleCount | ( | int | pChannelIndex, |
| unsigned int & | pSampleCount | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool GetChannelPointCount | ( | int | pChannelIndex, |
| FbxTime | pTime, | ||
| unsigned int & | pPointCount | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| int GetCacheDataFileCount | ( | ) | const |
Returns the number of cache data files.
| bool GetCacheDataFileName | ( | int | pIndex, |
| FbxString & | pRelativeFileName, | ||
| FbxString & | pAbsoluteFileName | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool EnableMultiChannelFetching | ( | bool | pMultiChannelFetching | ) |
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). |
true if successful, false otherwise.
See the error management functions for error details.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. |
true if successful, false
otherwise.| int GetDataCount | ( | int | pChannelIndex | ) |
Get the number of data points the channel contains.
| pChannelIndex | The index of the animation channel, between 0 and GetChannelCount(). |
| bool GetDataTime | ( | int | pChannelIndex, |
| unsigned int | pDataIndex, | ||
| FbxTime & | pTime | ||
| ) |
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). |
true if successful, false
otherwise.| bool OpenFileForWrite | ( | double | pFrameStartOffset, |
| double | pSamplingFrameRate, | ||
| unsigned int | pSampleCount, | ||
| unsigned int | pPointCount | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| unsigned int GetSampleCount | ( | ) |
Get the number of frames of animation found in the point cache file.
| unsigned int GetPointCount | ( | ) |
Get the number of points animated in the cache file.
| double GetFrameStartOffset | ( | ) |
Get the start time of the animation.
| bool Read | ( | unsigned int | pFrameIndex, |
| double * | pBuffer, | ||
| unsigned int | pPointCount | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool Write | ( | unsigned int | pFrameIndex, |
| double * | pBuffer | ||
| ) |
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(). |
true if successful, false otherwise.
See the error management functions for error details.| bool ConvertFromPC2ToMC | ( | EMCFileCount | pFileCount, |
| double | pSamplingFrameRate | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| bool ConvertFromMCToPC2 | ( | double | pSamplingFrameRate, |
| unsigned int | pChannelIndex | ||
| ) |
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. |
true if successful, false otherwise.
See the error management functions for error details.| FbxError& GetError | ( | ) |
Retrieve error object.
| EErrorCode GetLastErrorID | ( | ) | const |
| const char* GetLastErrorString | ( | ) | const |
| bool OpenFile | ( | EOpenFlag | pFlag, |
| EMCFileCount | pFileCount, | ||
| double | pSamplingFrameRate, | ||
| const char * | pChannelName, | ||
| const char * | pInterpretation, | ||
| unsigned int | pSampleCount, | ||
| unsigned int | pPointCount, | ||
| double | pFrameStartOffset, | ||
| EMCDataType | pMCDataType =
eDoubleVectorArray |
||
| ) | [protected] |
| virtual void Construct | ( | const FbxCache * | pFrom | ) | [protected, virtual] |
| virtual bool ConstructProperties | ( | bool | pForceSet | ) | [protected, virtual] |
Reimplemented from FbxObject.
| virtual void Destruct | ( | bool | pRecursive, |
| bool | pDependents | ||
| ) | [protected, virtual] |
Reimplemented from FbxObject.
const char* sCacheFilePropertyName
[static] |
Definition at line 538 of file fbxcache.h.
const char* sCacheFileAbsolutePathPropertyName
[static] |
Definition at line 539 of file fbxcache.h.
const char* sCacheFileTypePropertyName
[static] |
Definition at line 540 of file fbxcache.h.
FbxCache_internal* mData
[protected] |