Assimp
v4.1. (December 2018)
|
Parser for a obj waveform file. More...
Public Types | |
typedef std::vector< char >::const_iterator | ConstDataArrayIt |
typedef std::vector< char > | DataArray |
typedef std::vector< char >::iterator | DataArrayIt |
Public Member Functions | |
ObjFile::Model * | GetModel () const |
Model getter. More... | |
ObjFileParser () | |
The default constructor. More... | |
ObjFileParser (IOStreamBuffer< char > &streamBuffer, const std::string &modelName, IOSystem *io, ProgressHandler *progress, const std::string &originalObjFileName) | |
Constructor with data array. More... | |
void | setBuffer (std::vector< char > &buffer) |
If you want to load in-core data. More... | |
~ObjFileParser () | |
Destructor. More... | |
Static Public Attributes | |
static const size_t | Buffersize = 4096 |
Protected Member Functions | |
void | copyNextWord (char *pBuffer, size_t length) |
Method to copy the new delimited word in the current line. More... | |
void | createMesh (const std::string &meshName) |
Creates a new mesh. More... | |
void | createObject (const std::string &strObjectName) |
Creates a new object. More... | |
void | getComment () |
Gets a comment. More... | |
void | getFace (aiPrimitiveType type) |
Stores the following face. More... | |
void | getGroupName () |
Gets the group name from file. More... | |
void | getGroupNumber () |
Gets the group number from file. More... | |
void | getGroupNumberAndResolution () |
Gets the group number and resolution from file. More... | |
void | getHomogeneousVector3 (std::vector< aiVector3D > &point3d_array) |
Stores the following homogeneous vector as a 3D vector. More... | |
void | getMaterialDesc () |
Reads the material description. More... | |
int | getMaterialIndex (const std::string &strMaterialName) |
Returns the index of the material. Is -1 if not material was found. More... | |
void | getMaterialLib () |
Gets a a material library. More... | |
void | getNewMaterial () |
Creates a new material. More... | |
size_t | getNumComponentsInDataDefinition () |
Method to copy the new line. More... | |
void | getObjectName () |
Parse object name. More... | |
size_t | getTexCoordVector (std::vector< aiVector3D > &point3d_array) |
Stores the vector. More... | |
void | getTwoVectors3 (std::vector< aiVector3D > &point3d_array_a, std::vector< aiVector3D > &point3d_array_b) |
Stores the following two 3d vectors on the line. More... | |
void | getVector2 (std::vector< aiVector2D > &point2d_array) |
Stores the following 3d vector. More... | |
void | getVector3 (std::vector< aiVector3D > &point3d_array) |
Stores the following 3d vector. More... | |
bool | needsNewMesh (const std::string &rMaterialName) |
Returns true, if a new mesh instance must be created. More... | |
void | parseFile (IOStreamBuffer< char > &streamBuffer) |
Parse the loaded file. More... | |
void | reportErrorTokenInFace () |
Error report in token. More... | |
Parser for a obj waveform file.
typedef std::vector<char>::const_iterator Assimp::ObjFileParser::ConstDataArrayIt |
typedef std::vector<char> Assimp::ObjFileParser::DataArray |
typedef std::vector<char>::iterator Assimp::ObjFileParser::DataArrayIt |
ObjFileParser::ObjFileParser | ( | ) |
The default constructor.
ObjFileParser::ObjFileParser | ( | IOStreamBuffer< char > & | streamBuffer, |
const std::string & | modelName, | ||
IOSystem * | io, | ||
ProgressHandler * | progress, | ||
const std::string & | originalObjFileName | ||
) |
Constructor with data array.
ObjFileParser::~ObjFileParser | ( | ) |
Destructor.
|
protected |
Method to copy the new delimited word in the current line.
|
protected |
Creates a new mesh.
|
protected |
Creates a new object.
|
protected |
Gets a comment.
|
protected |
Stores the following face.
|
protected |
Gets the group name from file.
|
protected |
Gets the group number from file.
|
protected |
Gets the group number and resolution from file.
|
protected |
Stores the following homogeneous vector as a 3D vector.
|
protected |
Reads the material description.
|
protected |
Returns the index of the material. Is -1 if not material was found.
|
protected |
Gets a a material library.
ObjFile::Model * ObjFileParser::GetModel | ( | ) | const |
Model getter.
|
protected |
Creates a new material.
|
protected |
Method to copy the new line.
Get the number of components in a line.
|
protected |
Parse object name.
|
protected |
Stores the vector.
|
protected |
Stores the following two 3d vectors on the line.
|
protected |
Stores the following 3d vector.
|
protected |
Stores the following 3d vector.
|
protected |
Returns true, if a new mesh instance must be created.
|
protected |
Parse the loaded file.
|
protected |
Error report in token.
void ObjFileParser::setBuffer | ( | std::vector< char > & | buffer | ) |
If you want to load in-core data.
|
static |