OpenMesh::IO::_OBJReader_ Class Reference

#include <OBJReader.hh>

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

List of all members.

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_

Detailed Description

Implementation of the OBJ format reader.

Definition at line 82 of file OBJReader.hh.


Member Typedef Documentation

typedef std::map<std::string, Material> OpenMesh::IO::_OBJReader_::MaterialList [private]

Definition at line 162 of file OBJReader.hh.


Constructor & Destructor Documentation

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

Definition at line 88 of file OBJReader.hh.


Member Function Documentation

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]

Member Data Documentation

Definition at line 164 of file OBJReader.hh.

std::string OpenMesh::IO::_OBJReader_::path_ [private]

Definition at line 170 of file OBJReader.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