|
C++ API Reference
|
Cache format description. More...
#include <MCacheFormatDescription.h>
Public Types | |
| enum | CacheFileDistribution { kNoFile, kOneFile, kOneFilePerFrame } |
| Cache file distribution types. More... | |
| enum | CacheDataType { kUnknownData, kDouble, kDoubleArray, kDoubleVectorArray, kInt32Array, kFloatArray, kFloatVectorArray } |
| Cache file data types. More... | |
| enum | CacheSamplingType { kRegular, kIrregular } |
| Cache file sampling types. More... | |
Public Member Functions | |
| void | setDistribution (CacheFileDistribution distribution) |
| Set up the cache format when reading the description file. More... | |
| void | setTimePerFrame (const MTime &timePerFrame) |
| Set the time per frame. More... | |
| void | addDescriptionInfo (const MString &info) |
| Add a descriptive string. More... | |
| unsigned int | addChannel (const MString &channelName, const MString &interpretation, CacheDataType dataType, CacheSamplingType samplingType, const MTime &samplingRate, const MTime &startTime, const MTime &endTime, MStatus *status=NULL) |
| Add a channel. More... | |
| CacheFileDistribution | getDistribution () const |
| Get information about the format in order to write the description file. More... | |
| MTime | getTimePerFrame () const |
| Get the time per frame. More... | |
| void | getStartAndEndTimes (MTime &startTime, MTime &endTime) const |
| Get the start and end times. More... | |
| void | getDescriptionInfo (MStringArray &info) const |
| This method is not available in Python. More... | |
| MStringArray | getDescriptionInfo () const |
| Get the descriptive strings. More... | |
| unsigned int | getNumChannels () const |
| Get the number of channels. More... | |
| MString | getChannelName (unsigned int channelIndex) const |
| Get a channel's name. More... | |
| MString | getChannelInterpretation (unsigned int channelIndex) const |
| Get a channel's intepretation. More... | |
| CacheDataType | getChannelDataType (unsigned int channelIndex) const |
| Get a channel's data type. More... | |
| CacheSamplingType | getChannelSamplingType (unsigned int channelIndex) const |
| Get a channel's sampling type. More... | |
| MTime | getChannelSamplingRate (unsigned int channelIndex) const |
| Get a channel's sampling rate. More... | |
| MTime | getChannelStartTime (unsigned int channelIndex) const |
| Get a channel's start time. More... | |
| MTime | getChannelEndTime (unsigned int channelIndex) const |
| Get a channel's end time. More... | |
| virtual | ~MCacheFormatDescription () |
| Class destructor. | |
Static Public Member Functions | |
| static const char * | className () |
| Returns the name of this class. More... | |
Cache format description.
The MCacheFormatDescription is a utility class used by MPxCacheFormat when implementing custom cache plug-ins that define their own handling of the cache format (usually provided by Maya's own xml format).
| enum CacheDataType |
Cache file data types.
| enum CacheSamplingType |
| void setDistribution | ( | CacheFileDistribution | distribution | ) |
Set up the cache format when reading the description file.
Set the distribution.
| [in] | distribution | the distribution to set |
| void setTimePerFrame | ( | const MTime & | timePerFrame | ) |
Set the time per frame.
| [in] | timePerFrame | the time per frame to set |
| void addDescriptionInfo | ( | const MString & | info | ) |
Add a descriptive string.
| [in] | info | the string to add |
| unsigned int addChannel | ( | const MString & | channelName, |
| const MString & | interpretation, | ||
| CacheDataType | dataType, | ||
| CacheSamplingType | samplingType, | ||
| const MTime & | samplingRate, | ||
| const MTime & | startTime, | ||
| const MTime & | endTime, | ||
| MStatus * | status = NULL |
||
| ) |
Add a channel.
| [in] | channelName | the new channel's name |
| [in] | interpretation | the new channel's interpretation |
| [in] | dataType | the new channel's data type |
| [in] | samplingType | the new channel's sampling type |
| [in] | samplingRate | the new channel's sampling rate |
| [in] | startTime | the new channel's start time |
| [in] | endTime | the new channel's end time |
| [out] | status | the return status |
| MCacheFormatDescription::CacheFileDistribution getDistribution | ( | ) | const |
Get information about the format in order to write the description file.
Get the distribution.
| MTime getTimePerFrame | ( | ) | const |
Get the time per frame.
Get the start and end times.
| [out] | startTime | the start time |
| [out] | endTime | the end time |
| void getDescriptionInfo | ( | MStringArray & | info | ) | const |
This method is not available in Python.
Get the descriptive strings.
| [out] | info | the array of descriptive strings |
| MStringArray getDescriptionInfo | ( | ) | const |
Get the descriptive strings.
| unsigned int getNumChannels | ( | ) | const |
Get the number of channels.
| MString getChannelName | ( | unsigned int | channelIndex | ) | const |
Get a channel's name.
| [in] | channelIndex | the index of the channel to be queried |
| MString getChannelInterpretation | ( | unsigned int | channelIndex | ) | const |
Get a channel's intepretation.
| [in] | channelIndex | the index of the channel to be queried |
| MCacheFormatDescription::CacheDataType getChannelDataType | ( | unsigned int | channelIndex | ) | const |
Get a channel's data type.
| [in] | channelIndex | the index of the channel to be queried |
| MCacheFormatDescription::CacheSamplingType getChannelSamplingType | ( | unsigned int | channelIndex | ) | const |
Get a channel's sampling type.
| [in] | channelIndex | the index of the channel to be queried |
| MTime getChannelSamplingRate | ( | unsigned int | channelIndex | ) | const |
Get a channel's sampling rate.
| [in] | channelIndex | the index of the channel to be queried |
| MTime getChannelStartTime | ( | unsigned int | channelIndex | ) | const |
Get a channel's start time.
| [in] | channelIndex | the index of the channel to be queried |
| MTime getChannelEndTime | ( | unsigned int | channelIndex | ) | const |
Get a channel's end time.
| [in] | channelIndex | the index of the channel to be queried |
|
static |
Returns the name of this class.