FBX C++ API Reference
|
#include <fbxreaderfbx7.h>
This class is the FBX v7 reader.
The reader provide you the ability to read the global settings, objects and animation information from file.
Definition at line 26 of file fbxreaderfbx7.h.
Public Types | |
enum | EImportMode { eASCII, eBINARY, eENCRYPTED } |
File import mode. More... | |
![]() | |
enum | EInfoRequest { eInfoExtension, eInfoDescriptions, eReserved1 = 0xFBFB } |
Information type to request. More... | |
enum | EFileOpenSpecialFlags { eParseForGlobalSettings = 1, eParseForStatistics = 2 } |
Flags for reading parts of file. More... | |
typedef FbxReader *(* | CreateFuncType) (FbxManager &pManager, FbxImporter &pImporter, int pSubID, int pPluginID) |
typedef void(* | IOSettingsFillerFuncType) (FbxIOSettings &pIOS) |
typedef void *(* | GetInfoFuncType) (EInfoRequest pRequest, int pReaderTypeId) |
Public Member Functions | |
FbxReaderFbx7 (FbxManager &pManager, FbxImporter &pImporter, int pID, FbxStatus &pStatus) | |
Constructor. More... | |
virtual | ~FbxReaderFbx7 () |
Destructor. More... | |
virtual bool | FileOpen (char *pFileName, EFileOpenSpecialFlags pFlags) |
Open file with certain EFileOpenSpecialFlags. More... | |
virtual bool | FileOpen (char *pFileName) |
Open file with default flag. More... | |
virtual bool | FileOpen (FbxFile *pFile) |
Open file with default flag. More... | |
virtual bool | FileOpen (FbxStream *pStream, void *pStreamData) |
Open file from stream. More... | |
virtual bool | FileClose () |
Close the file stream. More... | |
virtual bool | IsFileOpen () |
Check whether the file stream is open. More... | |
EImportMode | GetImportMode () |
Get current Import mode. More... | |
virtual void | GetVersion (int &pMajor, int &pMinor, int &pRevision) |
Get file version. More... | |
virtual bool | GetAxisInfo (FbxAxisSystem *pAxisSystem, FbxSystemUnit *pSystemUnits) |
Get axis system information from file. More... | |
virtual bool | GetFrameRate (FbxTime::EMode &pTimeMode) |
Get FBX file time mode read from GlobalSettings in FBX 6.n and FBX 7.n. More... | |
virtual bool | GetStatistics (FbxStatistics *pStats) |
Get the statistics from file. More... | |
virtual bool | GetReadOptions (bool pParseFileAsNeeded=true) |
Get the file stream options. More... | |
virtual bool | Read (FbxDocument *pDocument) |
Read file with stream options. More... | |
virtual void | PluginReadParameters (FbxObject &pParams) |
Reads extension plug-ins name, version and parameters, so that we can remember if a plug-in was used during export. More... | |
virtual bool | GetReadOptions (FbxIO *pFbx, bool pParseFileAsNeeded=true) |
Get the file options. More... | |
virtual bool | Read (FbxDocument *pDocument, FbxIO *pFbx) |
Read file with stream options. More... | |
virtual FbxDocumentInfo * | GetSceneInfo () |
Returns the scene info from the file. More... | |
virtual FbxArray< FbxTakeInfo * > * | GetTakeInfo () |
Returns the pointer to the list of TakeInfo from the file. More... | |
virtual void | SetProgressHandler (FbxProgress *pProgress) |
Pass a progress handler to the reader. More... | |
virtual void | SetEmbeddingExtractionFolder (const char *pExtractFolder) |
virtual bool | SupportsStreams () const |
Returns true if this reader supports FbxStream I/O. More... | |
![]() | |
FbxReader (FbxManager &pManager, int pID, FbxStatus &pStatus) | |
Constructor. More... | |
virtual | ~FbxReader () |
Destructor. More... | |
virtual bool | GetDefaultRenderResolution (FbxString &pCamName, FbxString &pResolutionMode, double &pW, double &pH) |
If default camera resolution is OK, returns information about the resolution of the render. More... | |
bool | IsGenuine () |
Judges if the format of the file is was created by an Autodesk plug-in. More... | |
virtual FbxIOSettings * | GetIOSettings () |
Access to a IOSettings object. More... | |
virtual void | SetIOSettings (FbxIOSettings *pIOSettings) |
Set the IOSettings pointer to be used for this reader instance. More... | |
enum EImportMode |
File import mode.
Enumerator | |
---|---|
eASCII | Plain text mode. |
eBINARY | Binary mode. |
eENCRYPTED | Encrypted mode. |
Definition at line 32 of file fbxreaderfbx7.h.
FbxReaderFbx7 | ( | FbxManager & | pManager, |
FbxImporter & | pImporter, | ||
int | pID, | ||
FbxStatus & | pStatus | ||
) |
Constructor.
pManager | the FbxManager Object |
pImporter | the FbxImporter to import the SDK objects |
pID | id for current reader |
pStatus | the FbxStatus object to hold error codes |
|
virtual |
Destructor.
|
virtual |
Open file with certain EFileOpenSpecialFlags.
pFileName | name of the File to open |
pFlags | the EFileOpenSpecialFlags to open with |
Reimplemented from FbxReader.
|
virtual |
Open file with default flag.
pFileName | name of the File to open |
true
, otherwise return false
Implements FbxReader.
|
virtual |
Open file with default flag.
|
virtual |
Open file from stream.
Reimplemented from FbxReader.
|
virtual |
Close the file stream.
true
, otherwise return false
Implements FbxReader.
|
virtual |
Check whether the file stream is open.
true
, otherwise return false
. Implements FbxReader.
EImportMode GetImportMode | ( | ) |
Get current Import mode.
|
virtual |
Get file version.
pMajor | Major version |
pMinor | Minor version |
pRevision | Revision version |
Reimplemented from FbxReader.
|
virtual |
Get axis system information from file.
pAxisSystem | axis system in file |
pSystemUnits | system unit in file |
NULL
return false
, otherwise return true
. Reimplemented from FbxReader.
|
virtual |
Get FBX file time mode read from GlobalSettings in FBX 6.n and FBX 7.n.
pTimeMode | ref to a FbxTime::EMode enum |
true
on success, false
otherwise. Reimplemented from FbxReader.
|
virtual |
Get the statistics from file.
pStats | statistics in file |
true
, otherwise return false
. Reimplemented from FbxReader.
|
virtual |
Get the file stream options.
pParseFileAsNeeded | Whether to parse file as read options |
Implements FbxReader.
|
virtual |
Read file with stream options.
pDocument | FbxDocument to store the file data |
true
, otherwise return false
. Implements FbxReader.
|
virtual |
Reads extension plug-ins name, version and parameters, so that we can remember if a plug-in was used during export.
This is especially useful for extension plug-ins that modify the scene and also to warn users during import if an extension plug-in was used that could be missing.
pParams | The parameters of the extension plug-in. The properties of the objects are used as the parameters of the extension plug-in. |
Reimplemented from FbxReader.
|
virtual |
Get the file options.
pFbx | file object to read options |
pParseFileAsNeeded | Whether to parse file as read options |
|
virtual |
Read file with stream options.
pDocument | FbxDocument to store the file data |
pFbx | file object to read from |
true
, otherwise return false
.
|
virtual |
Returns the scene info from the file.
Reimplemented from FbxReader.
|
virtual |
Returns the pointer to the list of TakeInfo from the file.
Reimplemented from FbxReader.
|
virtual |
Pass a progress handler to the reader.
pProgress | FbxProgress to store the progress information. |
Reimplemented from FbxReader.
|
virtual |
Reimplemented from FbxReader.
|
inlinevirtual |
Returns true if this reader supports FbxStream I/O.
Default value is false.
Reimplemented from FbxReader.
Definition at line 167 of file fbxreaderfbx7.h.