8 #ifndef META_OCEAN_SCENEDESCRIPTION_SDL_OBJ_OBJ_PARSER_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDL_OBJ_OBJ_PARSER_H
19 namespace SceneDescription
35 class OCEAN_SCENEDESCRIPTION_SDL_OBJ_EXPORT
OBJParser
51 explicit OBJParser(
const std::string& filename,
float* progress =
nullptr);
This class implements a token for the scanner.
Definition: Scanner.h:43
This class implements a obj parser able to parse obj files.
Definition: OBJParser.h:36
OBJParser(const std::string &filename, float *progress=nullptr)
Creates a new parser for obj files.
void parseLine(OBJScene &scene)
Parses a line.
void parseUseMtl(OBJScene &scene)
Parses a usemtl statement.
SDLSceneRef parse(bool *cancel=nullptr)
Parses the given file and returns a node reference to the entire scene.
OBJScanner scanner_
Scanner scanning obj token.
Definition: OBJParser.h:143
void parseNormal(OBJScene &scene)
Parses a normal.
void parseMtlLib(OBJScene &scene)
Parses a mtllib statement.
void parseVertex(OBJScene &scene)
Parses a vertex.
OBJScanner::Token Token
Definition of a scanner token.
Definition: OBJParser.h:42
void parseFace(OBJScene &scene)
Parses a new face.
void parseGroup(OBJScene &scene)
Parses a group.
void parseTextureCoordinate(OBJScene &scene)
Parses a texture coordinate.
void parsePoint(OBJScene &scene)
Parses a point statement.
void parseObject(OBJScene &scene)
Parses a object name statement.
Scalar parseFloat()
Parses a float value.
void parseSmoothingFactor(OBJScene &scene)
Parses a smoothing factor.
void parseParameter(OBJScene &scene)
Parses a parameter.
This class implements a scanner able to scan obj token.
Definition: OBJScanner.h:32
This class holds the entire scene contained in one obj file.
Definition: OBJScene.h:37
This template class implements a smart object reference which is a specialization of an ObjectRef obj...
Definition: SmartObjectRef.h:90
float Scalar
Definition of a scalar type.
Definition: Math.h:128
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15