#include <OBJReader.hh>

Classes | |
| class | Material |
Public Member Functions | |
| _OBJReader_ () | |
| std::string | get_description () const |
| Returns a brief description of the file type that can be parsed. | |
| std::string | get_extensions () const |
| bool | read (std::istream &_in, BaseImporter &_bi, Options &_opt) |
| bool | read (const std::string &_filename, BaseImporter &_bi, Options &_opt) |
| virtual | ~_OBJReader_ () |
Private Types | |
| typedef std::map< std::string, Material > | MaterialList |
Private Member Functions | |
| bool | read_material (std::fstream &_in) |
Private Attributes | |
| MaterialList | materials_ |
| std::string | path_ |
Implementation of the OBJ format reader.
Definition at line 82 of file OBJReader.hh.
typedef std::map<std::string, Material> OpenMesh::IO::_OBJReader_::MaterialList [private] |
Definition at line 162 of file OBJReader.hh.
| OpenMesh::IO::_OBJReader_::_OBJReader_ | ( | ) |
| virtual OpenMesh::IO::_OBJReader_::~_OBJReader_ | ( | ) | [inline, virtual] |
Definition at line 88 of file OBJReader.hh.
| std::string OpenMesh::IO::_OBJReader_::get_description | ( | ) | const [inline, virtual] |
Returns a brief description of the file type that can be parsed.
Implements OpenMesh::IO::BaseReader.
Definition at line 90 of file OBJReader.hh.
| std::string OpenMesh::IO::_OBJReader_::get_extensions | ( | ) | const [inline, virtual] |
Returns a string with the accepted file extensions separated by a whitespace and in small caps.
Implements OpenMesh::IO::BaseReader.
Definition at line 91 of file OBJReader.hh.
| bool OpenMesh::IO::_OBJReader_::read | ( | std::istream & | _is, | |
| BaseImporter & | _bi, | |||
| Options & | _opt | |||
| ) | [virtual] |
Reads a mesh given by a std::stream. This method usually uses the same stream reading method that read uses. Options can be passed via _opt. After execution _opt contains the Options that were available
Implements OpenMesh::IO::BaseReader.
| bool OpenMesh::IO::_OBJReader_::read | ( | const std::string & | _filename, | |
| BaseImporter & | _bi, | |||
| Options & | _opt | |||
| ) | [virtual] |
Reads a mesh given by a filename. Usually this method opens a stream and passes it to stream read method. Acceptance checks by filename extension can be placed here.
Options can be passed via _opt. After execution _opt contains the Options that were available
Implements OpenMesh::IO::BaseReader.
| bool OpenMesh::IO::_OBJReader_::read_material | ( | std::fstream & | _in | ) | [private] |
Definition at line 164 of file OBJReader.hh.
std::string OpenMesh::IO::_OBJReader_::path_ [private] |
Definition at line 170 of file OBJReader.hh.