A utility class that provides a 'unique' base class to derive new translator from.
More...
#include <FileTranslatorBase.h>
|
virtual MStatus | reader (const MFileObject &file, const OptionsParser &options, FileAccessMode mode) |
| Override this method to read your files (do not use the version from MPxFileTranslator!) More...
|
|
virtual MStatus | writer (const MFileObject &file, const OptionsParser &options, FileAccessMode mode) |
| Override this method to write your files (do not use the version from MPxFileTranslator!) More...
|
|
template<typename T>
class AL::maya::FileTranslatorBase< T >
A utility class that provides a 'unique' base class to derive new translator from.
template<typename T >
template<typename FnPlugin >
unregister the file translator
- Parameters
-
plugin | the MFnPlugin function set |
Override this method to read your files (do not use the version from MPxFileTranslator!)
- Parameters
-
file | the file to read into maya |
options | a set of Key/Value pair options passed through from the MEL GUI |
mode | does this actually serve any purpose? |
- Returns
- a failure in this case (because you need to override to import the file)
template<typename T >
template<typename FnPlugin >
unregister the file translator
- Parameters
-
plugin | the MFnPlugin function set |
default fall back in case no options are needed in the derived translator
- Parameters
-
options | the file translator options |
- Returns
- MS::kSuccess if options were correctly specified
Override this method to write your files (do not use the version from MPxFileTranslator!)
- Parameters
-
file | information about the file to export |
options | a set of Key/Value pair options passed through from the MEL GUI |
mode | are we exporting everything, or only the selected objects |
- Returns
- a failure in this case (because you need to override to import the file)
The documentation for this class was generated from the following files: