Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
C3DIo Class Reference

C3DIo class handles reading / writing / updating 3D file. More...

Detailed Description

C3DIo class handles reading / writing / updating 3D file.

File formats are recocognized using the file extension. C3DIo then select accordingly the C3DParser class which has be registered using fileRegisterFile to handle the file format. Some options might be provided to specify particular options using CSceneImportOptions / CSceneExportOptions.
Cf. #3DIO to get more information on the way to read/write scene

#include <Io3dmgr.h>

Inheritance diagram for C3DIo:
CFileIo

Public Member Functions

 C3DIo (const CFileNameSpec &, unsigned int flags, CXWnd *pParent=NULL)
 
 C3DIo (unsigned int fileclass, unsigned int flags, CXWnd *pParent=NULL)
 
const C3DParserGetParser () const
 
C3DParserGetParser ()
 
bool GetLoadOptionsPrefs (CSceneImportOptions &options) const
 Load some default load options that might have been saved in preferences.
 
bool GetSaveOptionsPrefs (CSceneExportOptions &options) const
 Load some default save options that might have been saved in preferences.
 
bool PrepareReading (CSceneImportOptions *options=NULL)
 
bool PrepareSaving (CSceneExportOptions *options=NULL)
 
virtual C3DSceneRead (CSceneImportOptions *options=NULL)
 
virtual bool Save (C3DScene *, CSceneExportOptions *options=NULL)
 
- Public Member Functions inherited from CFileIo
 CFileIo (const CFileNameSpec &, unsigned int flags, CXWnd *pParent=NULL)
 
 CFileIo (unsigned int fileclass, unsigned int flags, CXWnd *pParent=NULL)
 
CXWndGetParentWnd ()
 
CCustomDataGetCustomData ()
 
CXString GetCurrentShortFileName (void)
 
CXString GetCurrentCompleteFileName (void)
 
CXString GetCurrentFilePath (void)
 
void SetAlternativeClass (unsigned int altClass)
 
unsigned int GetAlternativeClass () const
 
bool IsMultiParserExtension () const
 
bool IsLoading () const
 
bool IsURL (bool trueOnlyIfFileURL) const
 
CXString GetName () const
 
CXString GetCompleteName () const
 
CXString GetPath () const
 
CXString GetExtension () const
 
CXString GetNameWithoutExt () const
 
void SetNewFileName (const CFileNameSpec &filespec)
 
unsigned int GetKindOf (void) const
 
unsigned int GetClass (void) const
 
unsigned int GetProperties (void) const
 
unsigned int GetParser () const
 
bool ReportIoError (CIoOptions *options=NULL, unsigned int level=IoLogInfo::LOG_WARNING|IoLogInfo::LOG_ERROR)
 
bool ReportIoError (const CXString &error)
 
CXString GetIoErrorTxt () const
 
int GetIoError () const
 
void SetIoError (IO_FILE_RESULT error, CIoOptions *options=NULL, IoLogInfo::loglevel level=IoLogInfo::LOG_ERROR)
 
void SetIoError (const CXString &error, CIoOptions *options=NULL, IoLogInfo::loglevel level=IoLogInfo::LOG_ERROR)
 
unsigned int GetFlags () const
 
void SetFlag (FILE_PARSER_FLAGS state, bool set)
 
bool IsFlagSet (unsigned int state) const
 
void SetSilentMode (bool silent)
 
bool IsSilentMode ()
 
bool SaveIoParameters (bool loading, const CCustomData &iodata, unsigned int fileclass) const
 
bool LoadIoParameters (bool loading, CCustomData &iodata, unsigned int fileclass) const
 

Static Public Member Functions

static void InitLoadOptionsFromPrefsData (unsigned int fileClass, CSceneImportOptions &options, const CCustomData &savedPrefs)
 Load some default load options that might have been saved in preferences.
 
static void InitSaveOptionsFromPrefsData (unsigned int fileClass, CSceneExportOptions &options, const CCustomData &savedPrefs)
 Load some default load options that might have been saved in preferences.
 
static bool ReleaseParser (bool readingParser, unsigned int parser, void *parserData)
 
static bool CanUpdate (unsigned int inputFormat, unsigned int outputFormat)
 Determine in outputformat can handle inputformat update mode (ie gtlf -> glb)
 
static bool CanUpdate (unsigned int fileclass, C3DScene *scene=NULL)
 Determine if a fileclass is able to update file, and if scene is provided checks that the scene contains the required information to update.
 
- Static Public Member Functions inherited from CFileIo
static CXString GetIoErrorTxtFromCode (bool loading, int code, LPCTSTR filename=NULL)
 
static IoShowDialog HasDialog (unsigned int fileclass, bool loading)
 
static CXString GetPreferencesFilePath ()
 

The documentation for this class was generated from the following file: