FBX C++ API Reference
|
#include <fbxreadercollada14.h>
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:
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.
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 | |
![]() | |
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) |
![]() | |
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 FbxDocumentInfo * | GetSceneInfo () |
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 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... | |
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... | |
FbxReaderCollada | ( | FbxManager & | pManager, |
int | pID, | ||
FbxStatus & | pStatus | ||
) |
Constructor.
pManager | FBX SDK object Manager. |
pID | Internal ID. |
pStatus | The FbxStatus object to hold error codes. |
|
virtual |
Destructor.
|
virtual |
Open file with the given name.
pFileName | the name of file. |
Implements FbxReader.
|
virtual |
Close file.
Implements FbxReader.
|
virtual |
Check if current file is open.
Implements FbxReader.
|
inlinevirtual |
Get Collada import options settings.
pParseFileAsNeeded | whether parse file as needed, the default value is true. |
Implements FbxReader.
Definition at line 105 of file fbxreadercollada14.h.
|
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 |
|
virtual |
Read from Collada file and import it to the FBX document, according to the given options settings.
pDocument | FBX Document to import. |
Implements FbxReader.