#include <OMReader.hh>

Public Member Functions | |
| _OMReader_ () | |
| virtual bool | can_u_read (std::istream &_is) const |
| virtual bool | can_u_read (const std::string &_filename) const |
| Returns true if reader can parse _filename (checks extension). | |
| std::string | get_description () const |
| Returns a brief description of the file type that can be parsed. | |
| std::string | get_extensions () const |
| std::string | get_magic () const |
| Return magic bits used to determine file format. | |
| bool | read (std::istream &_is, BaseImporter &_bi, Options &_opt) |
| Stream Reader for std::istream input in binary format. | |
| bool | read (const std::string &_filename, BaseImporter &_bi, Options &_opt) |
| virtual | ~_OMReader_ () |
Private Types | |
| typedef OMFormat::Chunk::Header | ChunkHeader |
| typedef OMFormat::Header | Header |
| typedef OMFormat::Chunk::PropertyName | PropertyName |
Private Member Functions | |
| bool | read_ascii (std::istream &_is, BaseImporter &_bi, Options &_opt) const |
| bool | read_binary (std::istream &_is, BaseImporter &_bi, Options &_opt) const |
| bool | read_binary_edge_chunk (std::istream &_is, BaseImporter &_bi, Options &_opt, bool _swap) const |
| bool | read_binary_face_chunk (std::istream &_is, BaseImporter &_bi, Options &_opt, bool _swap) const |
| bool | read_binary_halfedge_chunk (std::istream &_is, BaseImporter &_bi, Options &_opt, bool _swap) const |
| bool | read_binary_mesh_chunk (std::istream &_is, BaseImporter &_bi, Options &_opt, bool _swap) const |
| bool | read_binary_vertex_chunk (std::istream &_is, BaseImporter &_bi, Options &_opt, bool _swap) const |
| size_t | restore_binary_custom_data (std::istream &_is, BaseProperty *_bp, size_t _n_elem, bool _swap) const |
| bool | supports (const OMFormat::uint8 version) const |
Private Attributes | |
| size_t | bytes_ |
| ChunkHeader | chunk_header_ |
| Header | header_ |
| PropertyName | property_name_ |
Implementation of the OM format reader. This class is singleton'ed by SingletonT to OMReader.
Definition at line 83 of file OMReader.hh.
typedef OMFormat::Chunk::Header OpenMesh::IO::_OMReader_::ChunkHeader [private] |
Definition at line 115 of file OMReader.hh.
typedef OMFormat::Header OpenMesh::IO::_OMReader_::Header [private] |
Definition at line 114 of file OMReader.hh.
typedef OMFormat::Chunk::PropertyName OpenMesh::IO::_OMReader_::PropertyName [private] |
Definition at line 116 of file OMReader.hh.
| OpenMesh::IO::_OMReader_::_OMReader_ | ( | ) |
| virtual OpenMesh::IO::_OMReader_::~_OMReader_ | ( | ) | [inline, virtual] |
Definition at line 88 of file OMReader.hh.
| virtual bool OpenMesh::IO::_OMReader_::can_u_read | ( | std::istream & | _is | ) | const [virtual] |
| virtual bool OpenMesh::IO::_OMReader_::can_u_read | ( | const std::string & | _filename | ) | const [virtual] |
Returns true if reader can parse _filename (checks extension).
Reimplemented from OpenMesh::IO::BaseReader.
| std::string OpenMesh::IO::_OMReader_::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 OMReader.hh.
| std::string OpenMesh::IO::_OMReader_::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 OMReader.hh.
| std::string OpenMesh::IO::_OMReader_::get_magic | ( | ) | const [inline, virtual] |
Return magic bits used to determine file format.
Reimplemented from OpenMesh::IO::BaseReader.
Definition at line 92 of file OMReader.hh.
| bool OpenMesh::IO::_OMReader_::read | ( | std::istream & | _is, | |
| BaseImporter & | _bi, | |||
| Options & | _opt | |||
| ) | [virtual] |
Stream Reader for std::istream input in binary format.
Implements OpenMesh::IO::BaseReader.
| bool OpenMesh::IO::_OMReader_::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::_OMReader_::read_ascii | ( | std::istream & | _is, | |
| BaseImporter & | _bi, | |||
| Options & | _opt | |||
| ) | const [private] |
| bool OpenMesh::IO::_OMReader_::read_binary | ( | std::istream & | _is, | |
| BaseImporter & | _bi, | |||
| Options & | _opt | |||
| ) | const [private] |
| bool OpenMesh::IO::_OMReader_::read_binary_edge_chunk | ( | std::istream & | _is, | |
| BaseImporter & | _bi, | |||
| Options & | _opt, | |||
| bool | _swap | |||
| ) | const [private] |
| bool OpenMesh::IO::_OMReader_::read_binary_face_chunk | ( | std::istream & | _is, | |
| BaseImporter & | _bi, | |||
| Options & | _opt, | |||
| bool | _swap | |||
| ) | const [private] |
| bool OpenMesh::IO::_OMReader_::read_binary_halfedge_chunk | ( | std::istream & | _is, | |
| BaseImporter & | _bi, | |||
| Options & | _opt, | |||
| bool | _swap | |||
| ) | const [private] |
| bool OpenMesh::IO::_OMReader_::read_binary_mesh_chunk | ( | std::istream & | _is, | |
| BaseImporter & | _bi, | |||
| Options & | _opt, | |||
| bool | _swap | |||
| ) | const [private] |
| bool OpenMesh::IO::_OMReader_::read_binary_vertex_chunk | ( | std::istream & | _is, | |
| BaseImporter & | _bi, | |||
| Options & | _opt, | |||
| bool | _swap | |||
| ) | const [private] |
| size_t OpenMesh::IO::_OMReader_::restore_binary_custom_data | ( | std::istream & | _is, | |
| BaseProperty * | _bp, | |||
| size_t | _n_elem, | |||
| bool | _swap | |||
| ) | const [private] |
| bool OpenMesh::IO::_OMReader_::supports | ( | const OMFormat::uint8 | version | ) | const [private] |
size_t OpenMesh::IO::_OMReader_::bytes_ [mutable, private] |
Definition at line 119 of file OMReader.hh.
ChunkHeader OpenMesh::IO::_OMReader_::chunk_header_ [mutable, private] |
Definition at line 121 of file OMReader.hh.
Header OpenMesh::IO::_OMReader_::header_ [mutable, private] |
Definition at line 120 of file OMReader.hh.
PropertyName OpenMesh::IO::_OMReader_::property_name_ [mutable, private] |
Definition at line 122 of file OMReader.hh.