#include <kfbxreader.h>
It is the basis of other FBX readers.
Definition at line 70 of file kfbxreader.h.
Public Types |
|
enum | EError |
Error identifiers. More... |
|
Public Member Functions |
|
KFbxReader (KFbxSdkManager &pManager, int pID) | |
Constructor. |
|
virtual | ~KFbxReader () |
Destructor. |
|
virtual void | GetVersion (int &pMajor, int &pMinor, int &pRevision) |
Returns the file version. |
|
virtual bool | FileOpen (char *pFileName)=0 |
Opens the file with default flag. |
|
virtual bool | FileOpen (KFile *pFile) |
Opens the file with KFile handle. |
|
virtual bool | FileClose ()=0 |
Closes the file stream. |
|
virtual bool | IsFileOpen ()=0 |
Checks if the file stream is open. |
|
virtual KFbxStreamOptions * | GetReadOptions (bool pParseFileAsNeeded=true)=0 |
Returns file stream options. |
|
virtual bool | Read (KFbxDocument *pDocument, KFbxStreamOptions *pStreamOptions)=0 |
Reads file with stream options. |
|
virtual void | PluginReadParameters (KFbxObject &pParams) |
Reads all properties and flags. |
|
virtual bool | FileOpen (char *pFileName, EFileOpenSpecialFlags pFlags) |
Opens the file with specific
EFileOpenSpecialFlags. |
|
virtual bool | GetAxisInfo (KFbxAxisSystem *pAxisSystem, KFbxSystemUnit *pSystemUnits) |
Returns the system axis information from the
file. |
|
virtual bool | GetStatistics (KFbxStatistics *pStats) |
Returns statistics from the file. |
|
bool | GetDefaultRenderResolution (KString &pCamName, KString &pResolutionMode, double &pW, double &pH) |
If default camera resolution is OK, returns
information about the resolution of the render. |
|
bool | IsGenuine () |
Judges if the format of the file is an
internal plug-in . |
|
KError & | GetError () |
Retrieves error objects. |
|
EError | GetLastErrorID () const |
Returns the ID of the last error that
occurred when the file was read. |
|
const char * | GetLastErrorString () const |
Returns the error string that describes the
last error that occurred when the file was read. |
|
void | GetMessage (KString &pMessage) const |
Returns a warning message that describes
what occurred when the file was read. |
|
KString & | GetMessage () |
Returns a warning message that describes
what occurred when the file was read. |
|
void | ClearMessage () |
Empties the message string. |
enum EError |
Error identifiers.
Definition at line 98 of file kfbxreader.h.
KFbxReader | ( | KFbxSdkManager & | pManager, | |
int | pID | |||
) |
Constructor.
pManager | The KFbxSdkManager Object | |
pID | Id for current reader |
virtual ~KFbxReader | ( | ) | [virtual] |
Destructor.
virtual void GetVersion | ( | int & | pMajor, | |
int & | pMinor, | |||
int & | pRevision | |||
) | [inline, virtual] |
Returns the file version.
pMajor | Major version | |
pMinor | Minor version | |
pRevision | Revision version |
Definition at line 136 of file kfbxreader.h.
virtual bool FileOpen | ( | char * | pFileName | ) | [pure virtual] |
Opens the file with default flag.
pFileName | Name of the File to open |
true
,
otherwise return false
.virtual bool FileOpen | ( | KFile * | pFile | ) | [virtual] |
Opens the file with KFile handle.
pFile | The KFile handle |
true
,
otherwise return false
.virtual bool FileClose | ( | ) | [pure virtual] |
Closes the file stream.
false
virtual bool IsFileOpen | ( | ) | [pure virtual] |
Checks if the file stream is open.
false
.virtual KFbxStreamOptions* GetReadOptions | ( | bool | pParseFileAsNeeded =
true |
) | [pure virtual] |
Returns file stream options.
pParseFileAsNeeded | Sets whether to parse file as read options |
NULL
virtual bool Read | ( | KFbxDocument * | pDocument, | |
KFbxStreamOptions * | pStreamOptions | |||
) | [pure virtual] |
Reads file with stream options.
pDocument | KFbxDocument to store the file data | |
pStreamOptions | Read options to read file |
false
.virtual void PluginReadParameters | ( | KFbxObject & | pParams | ) | [inline, virtual] |
Reads all properties and flags.
pParams | Settings for assigning properties and flags |
Definition at line 180 of file kfbxreader.h.
virtual bool FileOpen | ( | char * | pFileName, | |
EFileOpenSpecialFlags | pFlags | |||
) | [inline, virtual] |
Opens the file with specific EFileOpenSpecialFlags.
pFileName | Name of the File to open | |
pFlags | The EFileOpenSpecialFlags to open with |
Definition at line 188 of file kfbxreader.h.
virtual bool GetAxisInfo | ( | KFbxAxisSystem * | pAxisSystem, | |
KFbxSystemUnit * | pSystemUnits | |||
) | [inline, virtual] |
Returns the system axis information from the file.
pAxisSystem | Axis system in file | |
pSystemUnits | System unit in file |
false
.Definition at line 195 of file kfbxreader.h.
virtual bool GetStatistics | ( | KFbxStatistics * | pStats | ) | [inline, virtual] |
Returns statistics from the file.
pStats | Statistics in the file. |
false
.Definition at line 201 of file kfbxreader.h.
bool GetDefaultRenderResolution | ( | KString & | pCamName, | |
KString & | pResolutionMode, | |||
double & | pW, | |||
double & | pH | |||
) |
If default camera resolution is OK, returns information about the resolution of the render.
pCamName | Default camera name. | |
pResolutionMode | Default resolution mode. | |
pW | Default resolution width. | |
pH | Default resolution height. |
true
If default camera resolution is OK,
false
Otherwise.bool IsGenuine | ( | ) |
Judges if the format of the file is an internal plug-in .
true
If the file format is internal plug-in ,
false
Otherwise .KError& GetError | ( | ) |
Retrieves error objects.
EError GetLastErrorID | ( | ) | const |
Returns the ID of the last error that occurred when the file was read.
const char* GetLastErrorString | ( | ) | const |
Returns the error string that describes the last error that occurred when the file was read.
void GetMessage | ( | KString & | pMessage | ) | const |
Returns a warning message that describes what occurred when the file was read.
pMessage | The returned warning message. |
KString& GetMessage | ( | ) |
Returns a warning message that describes what occurred when the file was read.
void ClearMessage | ( | ) |
Empties the message string.