#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:
<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.
Constructors and Destructor |
|
| FbxReaderCollada (FbxManager &pManager, int pID, FbxStatus &pStatus) | |
| Constructor. |
|
| virtual | ~FbxReaderCollada () |
| Destructor. |
|
File Management |
|
| virtual bool | FileOpen (char *pFileName) |
| Open file with the given name. |
|
| virtual bool | FileClose () |
| Close file. |
|
| virtual bool | IsFileOpen () |
| Check if current file is open. |
|
Read Functions |
|
| virtual bool | GetReadOptions (bool pParseFileAsNeeded=true) |
| Get Collada import options settings.
|
|
| virtual bool | GetAxisInfo (FbxAxisSystem *pAxisSystem, FbxSystemUnit *pSystemUnits) |
| Get axis system information from file.
|
|
| virtual FbxArray< FbxTakeInfo * > * | GetTakeInfo () |
| Returns the list of take infos from the
file. |
|
| virtual bool | Read (FbxDocument *pDocument) |
| Read from Collada file and import it to the
FBX document, according to the given options settings. |
|
| 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 ~FbxReaderCollada | ( | ) | [virtual] |
Destructor.
| virtual bool FileOpen | ( | char * | pFileName | ) | [virtual] |
Open file with the given name.
| pFileName | the name of file. |
Implements FbxReader.
| virtual bool FileClose | ( | ) | [virtual] |
Close file.
Implements FbxReader.
| virtual bool IsFileOpen | ( | ) | [virtual] |
Check if current file is open.
Implements FbxReader.
| virtual bool GetReadOptions | ( | bool | pParseFileAsNeeded =
true |
) | [inline, virtual] |
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.
{ return true; }
| virtual bool GetAxisInfo | ( | FbxAxisSystem * | pAxisSystem, |
| FbxSystemUnit * | pSystemUnits | ||
| ) | [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 FbxArray<FbxTakeInfo*>* GetTakeInfo | ( | ) | [virtual] |
| virtual bool Read | ( | FbxDocument * | pDocument | ) | [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.