Public Types | Public Member Functions

FbxReaderFbx7 Class Reference

Search for all occurrences

Detailed Description

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.

#include <fbxreaderfbx7.h>

Inheritance diagram for FbxReaderFbx7:
Inheritance graph
[legend]

List of all members.

Public Types

enum  EImportMode { eASCII, eBINARY, eENCRYPTED }
 

File import mode.

More...

Public Member Functions

 FbxReaderFbx7 (FbxManager &pManager, FbxImporter &pImporter, int pID, FbxStatus &pStatus)
 Constructor.
virtual ~FbxReaderFbx7 ()
 Destructor.
virtual bool FileOpen (char *pFileName, EFileOpenSpecialFlags pFlags)
 Open file with certain EFileOpenSpecialFlags.
virtual bool FileOpen (char *pFileName)
 Open file with default flag.
virtual bool FileOpen (FbxFile *pFile)
 Open file with default flag.
virtual bool FileOpen (FbxStream *pStream, void *pStreamData)
 Open file from stream.
virtual bool FileClose ()
 Close the file stream.
virtual bool IsFileOpen ()
 Check whether the file stream is open.
EImportMode GetImportMode ()
 Get current Import mode.
virtual void GetVersion (int &pMajor, int &pMinor, int &pRevision)
 Get file version.
virtual bool GetAxisInfo (FbxAxisSystem *pAxisSystem, FbxSystemUnit *pSystemUnits)
 Get axis system information from file.
virtual bool GetFrameRate (FbxTime::EMode &pTimeMode)
 Get FBX file time mode read from GlobalSettings in FBX 6.n and FBX 7.n.
virtual bool GetStatistics (FbxStatistics *pStats)
 Get the statistics from file.
virtual bool GetReadOptions (bool pParseFileAsNeeded=true)
 Get the file stream options.
virtual bool Read (FbxDocument *pDocument)
 Read file with stream options.
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.
virtual bool GetReadOptions (FbxIO *pFbx, bool pParseFileAsNeeded=true)
 Get the file options.
virtual bool Read (FbxDocument *pDocument, FbxIO *pFbx)
 Read file with stream options.
virtual FbxDocumentInfoGetSceneInfo ()
 Returns the scene info from the file.
virtual FbxArray< FbxTakeInfo * > * GetTakeInfo ()
 Returns the pointer to the list of TakeInfo from the file.
virtual void SetProgressHandler (FbxProgress *pProgress)
 Pass a progress handler to the reader.
virtual void SetEmbeddingExtractionFolder (const char *pExtractFolder)
virtual bool SupportsStreams () const
 Returns true if this reader supports FbxStream I/O.

Member Enumeration Documentation

File import mode.

Enumerator:
eASCII 

Plain text mode.

eBINARY 

Binary mode.

eENCRYPTED 

Encrypted mode.

Definition at line 32 of file fbxreaderfbx7.h.


Constructor & Destructor Documentation

FbxReaderFbx7 ( FbxManager pManager,
FbxImporter pImporter,
int  pID,
FbxStatus pStatus 
)

Constructor.

Parameters:
pManagerthe FbxManager Object
pImporterthe FbxImporter to import the SDK objects
pIDid for current reader
pStatusthe FbxStatus object to hold error codes
virtual ~FbxReaderFbx7 ( ) [virtual]

Destructor.


Member Function Documentation

virtual bool FileOpen ( char *  pFileName,
EFileOpenSpecialFlags  pFlags 
) [virtual]

Open file with certain EFileOpenSpecialFlags.

Parameters:
pFileNamename of the File to open
pFlagsthe EFileOpenSpecialFlags to open with
Returns:
if the file is open successfully return true, otherwise return false

Reimplemented from FbxReader.

virtual bool FileOpen ( char *  pFileName) [virtual]

Open file with default flag.

Parameters:
pFileNamename of the File to open
Returns:
if the file is open successfully return true, otherwise return false

Implements FbxReader.

virtual bool FileOpen ( FbxFile pFile) [virtual]

Open file with default flag.

Reimplemented from FbxReader.

virtual bool FileOpen ( FbxStream pStream,
void *  pStreamData 
) [virtual]

Open file from stream.

Reimplemented from FbxReader.

virtual bool FileClose ( ) [virtual]

Close the file stream.

Returns:
if the file is closed successfully return true, otherwise return false

Implements FbxReader.

virtual bool IsFileOpen ( ) [virtual]

Check whether the file stream is open.

Returns:
if the file stream is open return true, otherwise return false.

Implements FbxReader.

EImportMode GetImportMode ( )

Get current Import mode.

virtual void GetVersion ( int &  pMajor,
int &  pMinor,
int &  pRevision 
) [virtual]

Get file version.

Parameters:
pMajorMajor version
pMinorMinor version
pRevisionRevision version

Reimplemented from FbxReader.

virtual bool GetAxisInfo ( FbxAxisSystem pAxisSystem,
FbxSystemUnit pSystemUnits 
) [virtual]

Get axis system information from file.

Parameters:
pAxisSystemaxis system in file
pSystemUnitssystem unit in file
Returns:
if either pAxisSystem or pSystemUnits is NULL return false, otherwise return true.

Reimplemented from FbxReader.

virtual bool GetFrameRate ( FbxTime::EMode pTimeMode) [virtual]

Get FBX file time mode read from GlobalSettings in FBX 6.n and FBX 7.n.

Parameters:
pTimeModeref to a FbxTime::EMode enum
Returns:
true on success, false otherwise.
Remarks:
This function must be called after FbxImporter::Initialize(). Can be used for statistics (via GlobalSettings) before loading the whole scene from the file.

Reimplemented from FbxReader.

virtual bool GetStatistics ( FbxStatistics pStats) [virtual]

Get the statistics from file.

Parameters:
pStatsstatistics in file
Returns:
if fetching statistics is successfully return true, otherwise return false.

Reimplemented from FbxReader.

virtual bool GetReadOptions ( bool  pParseFileAsNeeded = true) [virtual]

Get the file stream options.

Parameters:
pParseFileAsNeededWhether to parse file as read options
Returns:
true on success, otherwise return false.

Implements FbxReader.

virtual bool Read ( FbxDocument pDocument) [virtual]

Read file with stream options.

Parameters:
pDocumentFbxDocument to store the file data
Returns:
if fetching statistics is successful return true, otherwise return false.

Implements FbxReader.

virtual void PluginReadParameters ( FbxObject pParams) [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.

Parameters:
pParamsThe 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 bool GetReadOptions ( FbxIO pFbx,
bool  pParseFileAsNeeded = true 
) [virtual]

Get the file options.

Parameters:
pFbxfile object to read options
pParseFileAsNeededWhether to parse file as read options
Returns:
true on success, otherwise return false.
virtual bool Read ( FbxDocument pDocument,
FbxIO pFbx 
) [virtual]

Read file with stream options.

Parameters:
pDocumentFbxDocument to store the file data
pFbxfile object to read from
Returns:
if reading the file is successful return true, otherwise return false.
virtual FbxDocumentInfo* GetSceneInfo ( ) [virtual]

Returns the scene info from the file.

Returns:
The pointer to file scene info defined by this reader.

Reimplemented from FbxReader.

virtual FbxArray<FbxTakeInfo*>* GetTakeInfo ( ) [virtual]

Returns the pointer to the list of TakeInfo from the file.

Returns:
NULL

Reimplemented from FbxReader.

virtual void SetProgressHandler ( FbxProgress pProgress) [virtual]

Pass a progress handler to the reader.

Parameters:
pProgressFbxProgress to store the progress information.

Reimplemented from FbxReader.

virtual void SetEmbeddingExtractionFolder ( const char *  pExtractFolder) [virtual]
virtual bool SupportsStreams ( ) const [inline, virtual]

Returns true if this reader supports FbxStream I/O.

Default value is false.

Reimplemented from FbxReader.

Definition at line 167 of file fbxreaderfbx7.h.

{ return true; }

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

FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7
FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7 FbxReaderFbx7