The XFileParser reads a XFile either in text or binary form and builds a temporary data structure out of it.
More...
The XFileParser reads a XFile either in text or binary form and builds a temporary data structure out of it.
◆ XFileParser()
| XFileParser::XFileParser |
( |
const std::vector< char > & |
pBuffer | ) |
|
|
explicit |
Constructor.
Creates a data structure out of the XFile given in the memory block.
- Parameters
-
| pBuffer | Null-terminated memory buffer containing the XFile |
◆ ~XFileParser()
| XFileParser::~XFileParser |
( |
| ) |
|
Destructor. Destroys all imported data along with it.
◆ CheckForClosingBrace()
| void XFileParser::CheckForClosingBrace |
( |
| ) |
|
|
protected |
checks for closing curly brace, throws exception if not there
checks for closing curly brace
◆ CheckForSemicolon()
| void XFileParser::CheckForSemicolon |
( |
| ) |
|
|
protected |
checks for one following semicolon, throws exception if not there
checks for one following semicolon
◆ CheckForSeparator()
| void XFileParser::CheckForSeparator |
( |
| ) |
|
|
protected |
checks for a separator char, either a ',' or a ';'
◆ FilterHierarchy()
| void XFileParser::FilterHierarchy |
( |
XFile::Node * |
pNode | ) |
|
|
protected |
Filters the imported hierarchy for some degenerated cases that some exporters produce.
- Parameters
-
| pData | The sub-hierarchy to filter |
◆ FindNextNoneWhiteSpace()
| void XFileParser::FindNextNoneWhiteSpace |
( |
| ) |
|
|
protected |
places pointer to next begin of a token, and ignores comments
◆ GetImportedData()
| XFile::Scene* Assimp::XFileParser::GetImportedData |
( |
| ) |
const |
|
inline |
Returns the temporary representation of the imported data.
◆ GetNextToken()
| std::string XFileParser::GetNextToken |
( |
| ) |
|
|
protected |
returns next valid token. Returns empty string if no token there
◆ GetNextTokenAsString()
| void XFileParser::GetNextTokenAsString |
( |
std::string & |
poString | ) |
|
|
protected |
reads a x file style string
◆ ParseDataObjectAnimation()
◆ ParseDataObjectAnimationKey()
| void XFileParser::ParseDataObjectAnimationKey |
( |
XFile::AnimBone * |
pAnimBone | ) |
|
|
protected |
◆ ParseDataObjectAnimationSet()
| void XFileParser::ParseDataObjectAnimationSet |
( |
| ) |
|
|
protected |
◆ ParseDataObjectAnimTicksPerSecond()
| void XFileParser::ParseDataObjectAnimTicksPerSecond |
( |
| ) |
|
|
protected |
◆ ParseDataObjectFrame()
| void XFileParser::ParseDataObjectFrame |
( |
XFile::Node * |
pParent | ) |
|
|
protected |
◆ ParseDataObjectMaterial()
◆ ParseDataObjectMesh()
| void XFileParser::ParseDataObjectMesh |
( |
XFile::Mesh * |
pMesh | ) |
|
|
protected |
◆ ParseDataObjectMeshMaterialList()
| void XFileParser::ParseDataObjectMeshMaterialList |
( |
XFile::Mesh * |
pMesh | ) |
|
|
protected |
◆ ParseDataObjectMeshNormals()
| void XFileParser::ParseDataObjectMeshNormals |
( |
XFile::Mesh * |
pMesh | ) |
|
|
protected |
◆ ParseDataObjectMeshTextureCoords()
| void XFileParser::ParseDataObjectMeshTextureCoords |
( |
XFile::Mesh * |
pMesh | ) |
|
|
protected |
◆ ParseDataObjectMeshVertexColors()
| void XFileParser::ParseDataObjectMeshVertexColors |
( |
XFile::Mesh * |
pMesh | ) |
|
|
protected |
◆ ParseDataObjectSkinMeshHeader()
| void XFileParser::ParseDataObjectSkinMeshHeader |
( |
XFile::Mesh * |
pMesh | ) |
|
|
protected |
◆ ParseDataObjectSkinWeights()
| void XFileParser::ParseDataObjectSkinWeights |
( |
XFile::Mesh * |
pMesh | ) |
|
|
protected |
◆ ParseDataObjectTemplate()
| void XFileParser::ParseDataObjectTemplate |
( |
| ) |
|
|
protected |
◆ ParseDataObjectTextureFilename()
| void XFileParser::ParseDataObjectTextureFilename |
( |
std::string & |
pName | ) |
|
|
protected |
◆ ParseDataObjectTransformationMatrix()
| void XFileParser::ParseDataObjectTransformationMatrix |
( |
aiMatrix4x4 & |
pMatrix | ) |
|
|
protected |
◆ ParseFile()
| void XFileParser::ParseFile |
( |
| ) |
|
|
protected |
◆ ParseUnknownDataObject()
| void XFileParser::ParseUnknownDataObject |
( |
| ) |
|
|
protected |
◆ ReadBinDWord()
| unsigned int XFileParser::ReadBinDWord |
( |
| ) |
|
|
protected |
◆ ReadBinWord()
| unsigned short XFileParser::ReadBinWord |
( |
| ) |
|
|
protected |
◆ ReadFloat()
◆ readHeadOfDataObject()
| void XFileParser::readHeadOfDataObject |
( |
std::string * |
poName = NULL | ) |
|
|
protected |
reads header of data object including the opening brace.
returns false if error happened, and writes name of object if there is one
◆ ReadInt()
| unsigned int XFileParser::ReadInt |
( |
| ) |
|
|
protected |
◆ ReadRGB()
◆ ReadRGBA()
◆ ReadUntilEndOfLine()
| void XFileParser::ReadUntilEndOfLine |
( |
| ) |
|
|
protected |
◆ ReadVector2()
◆ ReadVector3()
◆ TestForSeparator()
| void XFileParser::TestForSeparator |
( |
| ) |
|
|
protected |
tests and possibly consumes a separator char, but does nothing if there was no separator
◆ ThrowException()
| AI_WONT_RETURN void XFileParser::ThrowException |
( |
const std::string & |
pText | ) |
|
|
protected |
Throws an exception with a line number and the given text.
◆ mBinaryFloatSize
| unsigned int Assimp::XFileParser::mBinaryFloatSize |
|
protected |
float size in bytes, either 4 or 8
◆ mBinaryNumCount
| unsigned int Assimp::XFileParser::mBinaryNumCount |
|
protected |
◆ mEnd
| const char* Assimp::XFileParser::mEnd |
|
protected |
◆ mIsBinaryFormat
| bool Assimp::XFileParser::mIsBinaryFormat |
|
protected |
true if the file is in binary, false if it's in text form
◆ mLineNumber
| unsigned int Assimp::XFileParser::mLineNumber |
|
protected |
Line number when reading in text format.
◆ mMajorVersion
| unsigned int Assimp::XFileParser::mMajorVersion |
|
protected |
◆ mMinorVersion
| unsigned int Assimp::XFileParser::mMinorVersion |
|
protected |
◆ mP
| const char* Assimp::XFileParser::mP |
|
protected |
< counter for number arrays in binary format
◆ mScene
The documentation for this class was generated from the following files: