Inheritance diagram for DzSaveFilterMgr:

Enumerations | |
| enum | ScriptFileMode { UseExtension, TextScriptFile, DAZScriptFile, EncDAZScriptFile } |
Methods | |
| DzError | doSave (Number filterIndex, String dir="") |
| Number | findFilter (String className) |
| DzSaveFilter | getFilter (Number i) |
| String | getFilterName (Number i) |
| Number | getNumFilters () |
| String | getSavePath () |
| DzError | writeFile (ScriptFileMode mode, String fileName, String filterName="") |
There is only one instance of this manager in an application. This instance is created and owned by DzApp. Don't create an instance of this class, but rather request a pointer to it from DzApp via DzApp::getSaveFilterMgr().
Save mode for saving the script to file.
Save the scene contents to a file with the given save filter. Propmts the user for a file to save to.
| filterIndex | The index of the save filter class to use. | |
| dir | The directory to start the file dialog in, if empty, the current load/save directory is used. |
| className | The class name of the save filter to find. |
| DzSaveFilter DzSaveFilterMgr::getFilter | ( | Number | i | ) |
| i | The index of the save filter to get. |
| i | The index of the save filter to get the name of. |
| int DzSaveFilterMgr::getNumFilters | ( | ) |
| String DzSaveFilterMgr::getSavePath | ( | ) |
| DzError DzSaveFilterMgr::writeFile | ( | ScriptFileMode | mode, | |
| String | fileName, | |||
| String | filterName = "" | |||
| ) |
Save the scene contents to a file with the given save filter.
| mode | The file mode for saving the script | |
| fileName | The name of the file to export to. | |
| filterName | Optional argument. Class name of the filter to use, or no argument to show a choose filter dialog. |