OpenMesh::IO::_OMReader_ Class Reference

#include <OMReader.hh>

Inheritance diagram for OpenMesh::IO::_OMReader_:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

Implementation of the OM format reader. This class is singleton'ed by SingletonT to OMReader.

Definition at line 83 of file OMReader.hh.


Member Typedef Documentation

Definition at line 115 of file OMReader.hh.

Definition at line 114 of file OMReader.hh.

Definition at line 116 of file OMReader.hh.


Constructor & Destructor Documentation

OpenMesh::IO::_OMReader_::_OMReader_ (  ) 
virtual OpenMesh::IO::_OMReader_::~_OMReader_ (  )  [inline, virtual]

Definition at line 88 of file OMReader.hh.


Member Function Documentation

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]

Member Data Documentation

size_t OpenMesh::IO::_OMReader_::bytes_ [mutable, private]

Definition at line 119 of file OMReader.hh.

Definition at line 121 of file OMReader.hh.

Definition at line 120 of file OMReader.hh.

Definition at line 122 of file OMReader.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


openmesh
Author(s): Benjamin Pitzer
autogenerated on Fri Jan 11 12:11:17 2013