FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FbxReaderCollada Class Reference

#include <fbxreadercollada14.h>

Class Description

Class to read a Collada file and import it to a FBX scene.

Some terms about COLLADA (from the spec of the COLLADA).

Element: An XML document consists primarily of elements. An element is a block of information that is bounded by tags at the beginning and end of the block. Elements can be nested, producing a hierarchical data set.

Tag: Each XML element begins with a start tag and ends with an end tag.

Attribute: An XML element can have zero or more attributes. Attributes are given within the start tag and follow the tag name. Each attribute is a name-value pair. The value portion of an attribute is always surrounded by quotation marks (" "). Attributes provide semantic information about the element on which they are bound. For example:

<tagName attribute="value">

URI Addressing: Refers to the id attribute of an element. Used in url, source or target attributes. In a url, source or target attribute, the URI fragment identifier is preceded with the pound sign ("#").

Markup and Content: The characters which make up an XML document are divided into markup and content. Markup and content may be distinguished by the application of simple syntactic rules. All strings which constitute markup either begin with the character "<" and end with a ">", or begin with the character "&" and end with a ";". Strings of characters which are not markup are content.

Definition at line 53 of file fbxreadercollada14.h.

+ Inheritance diagram for FbxReaderCollada:

Constructors and Destructor

 FbxReaderCollada (FbxManager &pManager, int pID, FbxStatus &pStatus)
 Constructor. More...
 
virtual ~FbxReaderCollada ()
 Destructor. More...
 

File Management

virtual bool FileOpen (char *pFileName)
 Open file with the given name. More...
 
virtual bool FileClose ()
 Close file. More...
 
virtual bool IsFileOpen ()
 Check if current file is open. More...
 

Read Functions

virtual bool GetReadOptions (bool pParseFileAsNeeded=true)
 Get Collada import options settings. More...
 
virtual bool GetAxisInfo (FbxAxisSystem *pAxisSystem, FbxSystemUnit *pSystemUnits)
 Get axis system information from file. More...
 
virtual FbxArray< FbxTakeInfo * > * GetTakeInfo ()
 Returns the list of take infos from the file. More...
 
virtual bool Read (FbxDocument *pDocument)
 Read from Collada file and import it to the FBX document, according to the given options settings. More...
 

Additional Inherited Members

- Public Types inherited from FbxReader
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 inherited from FbxReader
 FbxReader (FbxManager &pManager, int pID, FbxStatus &pStatus)
 Constructor. More...
 
virtual ~FbxReader ()
 Destructor. More...
 
virtual void GetVersion (int &pMajor, int &pMinor, int &pRevision)
 Returns the file version. More...
 
virtual bool FileOpen (FbxStream *pStream, void *pStreamData)
 Opens the stream with default flag. 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 FileOpen (char *pFileName, EFileOpenSpecialFlags)
 Opens the file with specific EFileOpenSpecialFlags. More...
 
virtual bool GetStatistics (FbxStatistics *)
 Returns statistics from the 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 FbxDocumentInfoGetSceneInfo ()
 Returns the scene info from the file. 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 FbxIOSettingsGetIOSettings ()
 Access to a IOSettings object. More...
 
virtual void SetIOSettings (FbxIOSettings *pIOSettings)
 Set the IOSettings pointer to be used for this reader instance. More...
 
virtual void SetProgressHandler (FbxProgress *)
 Pass a progress handler to the reader. More...
 
virtual void SetEmbeddingExtractionFolder (const char *)
 
virtual bool SupportsStreams () const
 Returns true if this reader supports FbxStream I/O. More...
 

Constructor & Destructor Documentation

◆ FbxReaderCollada()

FbxReaderCollada ( FbxManager pManager,
int  pID,
FbxStatus pStatus 
)

Constructor.

Parameters
pManagerFBX SDK object Manager.
pIDInternal ID.
pStatusThe FbxStatus object to hold error codes.

◆ ~FbxReaderCollada()

virtual ~FbxReaderCollada ( )
virtual

Destructor.

Member Function Documentation

◆ FileOpen()

virtual bool FileOpen ( char *  pFileName)
virtual

Open file with the given name.

Parameters
pFileNamethe name of file.
Returns
Return true if the specified file is opened.

Implements FbxReader.

◆ FileClose()

virtual bool FileClose ( )
virtual

Close file.

Returns
Return true if file is closed successfully, false otherwise.

Implements FbxReader.

◆ IsFileOpen()

virtual bool IsFileOpen ( )
virtual

Check if current file is open.

Returns
Return true if file is open, false otherwise.

Implements FbxReader.

◆ GetReadOptions()

virtual bool GetReadOptions ( bool  pParseFileAsNeeded = true)
inlinevirtual

Get Collada import options settings.

Parameters
pParseFileAsNeededwhether parse file as needed, the default value is true.
Returns
true

Implements FbxReader.

Definition at line 105 of file fbxreadercollada14.h.

105 { return true; }

◆ GetAxisInfo()

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.

◆ GetTakeInfo()

virtual FbxArray<FbxTakeInfo*>* GetTakeInfo ( )
virtual

Returns the list of take infos from the file.

Returns
NULL

Reimplemented from FbxReader.

◆ Read()

virtual bool Read ( FbxDocument pDocument)
virtual

Read from Collada file and import it to the FBX document, according to the given options settings.

Parameters
pDocumentFBX Document to import.
Returns
true on success, false otherwise.

Implements FbxReader.


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