Inheritance diagram for DzExportMgr:

Methods | |
| Boolean | canExport (String filename) |
| DzError | exportFile (String fileName, Number exporterIndex, DzFileIOSettings options) |
| DzError | exportFile (String fileName, Number exporterIndex) |
| DzExporter | findExporter (String filename) |
| DzExporter | findExporterByClassName (String className) |
| Number | findExporterIndex (String filename) |
| DzExporter | getExporter (Number i) |
| String | getExportPath () |
| Number | getNumExporters () |
| void | makeExportFileFilter (DzFileFilter filter, String defaultFilter="") |
| void | setExportPath (String path) |
Signals | |
| void | fileExported () |
Signature: "fileExported()" | |
| void | fileExportStarting () |
Signature: "fileExportStarting()" | |
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::getExportMgr().
Uses the extension from each of the exporters and attempts to match an exporter with the extension of the filename.
| filename | The name of the file to try to find an exporter for. |
| DzError DzExportMgr::exportFile | ( | String | fileName, | |
| Number | exporterIndex, | |||
| DzFileIOSettings | options | |||
| ) |
Export the scene contents to a file.
| filename | The name of the file to export to. | |
| exporterIndex | The index of the exporter class to use. If this is less than 0, then the extension of fileName is used to attempt to find an appropiate exporter. |
Export the scene contents to a file.
| filename | The name of the file to export to. | |
| exporterIndex | The index of the exporter class to use. If this is less than 0, then the extension of fileName is used to attempt to find an appropiate exporter. |
| void DzExportMgr::fileExported | ( | ) | [signal] |
Signature: "fileExported()"
Emitted when a file export operation is finished
| void DzExportMgr::fileExportStarting | ( | ) | [signal] |
Signature: "fileExportStarting()"
Emitted when a file export operation is started
| DzExporter DzExportMgr::findExporter | ( | String | filename | ) |
Uses the extension from each of the exporters and attempts to match an exporter with the extension of the filename.
| filename | The name of the file to try to find an exporter for. |
| DzExporter DzExportMgr::findExporterByClassName | ( | String | className | ) |
Uses the class name of each of the exporters and attempts to find an exporter with the given class name.
| className | The name of the exporter class to find. |
Uses the extension from each of the exporters and attempts to match an exporter with the extension of the filename.
| filename | The name of the file to try to find an exporter for. |
| DzExporter DzExportMgr::getExporter | ( | Number | i | ) |
| i | The index of the exporter to get an instance of. |
| String DzExportMgr::getExportPath | ( | ) |
| int DzExportMgr::getNumExporters | ( | ) |
| void DzExportMgr::makeExportFileFilter | ( | DzFileFilter | filter, | |
| String | defaultFilter = "" | |||
| ) |
Populates the given filter with all the types recognized by the export manager.
| filter | The filter to populate | |
| defaultFilter | The filter to set as the default |
| void DzExportMgr::setExportPath | ( | String | path | ) |
Sets the default directory that files are exported to.
| path | The new default path for exporting files. |