#include
<MPxCacheFormat.h>
List of all
members.
Detailed Description
CacheFormat definition.
The MPxCacheFormat class can be used to
implement support for new cache file formats in Maya.
Member Enumeration Documentation
Cache file access modes.
- Enumerator:
-
kRead |
read only |
kWrite |
write only |
kReadWrite |
read and write (e.g. append, edit, etc.) |
Member Function Documentation
Attempt to open the specified cache format. It is important that
this function only return success if the cache file is definitely
supported by this implementation.
- Parameters:
-
[in] |
fileName |
Name of the cache file to open |
[in] |
mode |
Access mode for the cache file |
- Returns:
- success if the cache file is supported.
virtual MString MPxCacheFormat::extension |
( |
|
) |
[virtual] |
Provide the disk file extension for this format. This is not the
same as the format's key, which is used by the plugin to identify
itself.
virtual MStatus MPxCacheFormat::readHeader |
( |
|
) |
[virtual] |
Read the header from the current cache data file, and store any
data that may be required.
Write the header for the current cache.
virtual void
MPxCacheFormat::beginWriteChunk |
( |
|
) |
[virtual] |
Perform any actions required prior to writing a chunk's
information. A chunk contains the cache information for a specfic
time, and may contain multiple channels.
virtual void MPxCacheFormat::endWriteChunk |
( |
|
) |
[virtual] |
Perform any actions required after writing a chunk's
information. A chunk contains the cache information for a specfic
time, and may contain multiple channels.
virtual MStatus
MPxCacheFormat::beginReadChunk |
( |
|
) |
[virtual] |
Perform any actions required prior to reading a chunk's
information. A chunk contains the cache information for a specfic
time, and may contain multiple channels.
virtual void MPxCacheFormat::endReadChunk |
( |
|
) |
[virtual] |
Perform any actions required after reading a chunk's
information. A chunk contains the cache information for a specfic
time, and may contain multiple channels.
virtual MStatus MPxCacheFormat::writeTime |
( |
MTime & |
time |
) |
[virtual] |
Write the current time to the cache.
- Parameters:
-
virtual MStatus MPxCacheFormat::readTime |
( |
MTime & |
time |
) |
[virtual] |
Read the current time from the cache.
- Parameters:
-
[out] |
time |
Variable to read the time value into. |