![]() |
Polygon Crucher SDK - Documentation
Documentation
|
Class for reading / writing a specific file format. If is called by C3DIo when extension has been recognized to belong to the parser recognized extension. More...
Class for reading / writing a specific file format. If is called by C3DIo when extension has been recognized to belong to the parser recognized extension.
Cf. #3DPARSER if you intend to implement your own 3D parser
#include <Io3dmgr.h>
Public Member Functions | |
C3DParser (CFileIo &io) | |
void | SetScene (C3DScene *scene) |
This is the scene to save. When update or save is called, this scene has been prepared accordingly to the CSceneExportOptions. Before that (ie. when the options dialog is called, the scene is the original input scene to save). Parser should not release this scene. | |
C3DScene * | GetScene () |
When reading, this is the read scene, when saving, this is the input scene or the scene prepared with InitExport. | |
Reading a 3D file related methods | |
virtual void | LoadDefaultOptions (CSceneImportOptions &options) const |
virtual C3DScene * | Read (const CXString &filename, CSceneImportOptions &options) |
Writing a 3D scene related methods | |
virtual void | SaveDefaultOptions (CSceneExportOptions &options) const |
virtual void | CheckSaveOptions (C3DScene *scene, CSceneExportOptions &options) const |
virtual bool | Save (const CXString &filename, C3DScene *scene, CSceneExportOptions &options) |
Last way to check possible mutual exclusive flags considering the scene before export (ie embed media and copy textures) | |
Update mechanism. | |
if parserClass != UNKNOWN_CLASS we are testing if the parser has update ability for the given format. | |
virtual bool | CanUpdate (unsigned int parserClass=UNKNOWN_CLASS, void *parserData=NULL) const |
virtual bool | Update (const CXString &filename, C3DScene *scene, void *parserScene, CSceneExportOptions &options) |
Parser specific information | |
Some specific information might be attached to the scene using an opaque pointer and C3DScene::SetParserData. | |
virtual bool | ReleaseParser (bool readingParser, void *parserScene) |
![]() | |
CFileParser (CFileIo &io) | |
CFileIo * | GetIoMgr () |
bool | IsSilentMode () const |
bool | IsFlagSet (FILE_PARSER_FLAGS flag) const |
IoShowDialog | MustShowDialog () |
|
inlinevirtual |
options | options might be modified by the parser to specify some CheckoutImport specific requirements (ie. SCENE_IMPORT_KEEP_GUID might be set if GUID are found) |
|
inlinevirtual |
Last way to check possible mutual exclusive flags considering the scene before export (ie embed media and copy textures)
options | options might be modified by the parser (futur usage) |