#include <OBJWriter.hh>

Public Member Functions | |
| _OBJWriter_ () | |
| size_t | binary_size (BaseExporter &, Options) const |
| Returns expected size of file if binary format is supported else 0. | |
| std::string | get_description () const |
| Return short description of the supported file format. | |
| std::string | get_extensions () const |
| Return file format's extension. | |
| bool | write (std::ostream &, BaseExporter &, Options) const |
| Write to std::ostream _os. Data source specified by BaseExporter _be. | |
| bool | write (const std::string &, BaseExporter &, Options) const |
| Write to file _filename. Data source specified by BaseExporter _be. | |
| virtual | ~_OBJWriter_ () |
| Destructor. | |
Private Member Functions | |
| int | getMaterial (OpenMesh::Vec4f _color) const |
| int | getMaterial (OpenMesh::Vec3f _color) const |
| bool | writeMaterial (std::ostream &_out, BaseExporter &, Options) const |
Private Attributes | |
| std::vector< OpenMesh::Vec3f > | material_ |
| std::vector< OpenMesh::Vec4f > | materialA_ |
| std::string | objName_ |
| std::string | path_ |
This class defines the OBJ writer. This class is further singleton'ed by SingletonT to OBJWriter.
Definition at line 80 of file OBJWriter.hh.
| OpenMesh::IO::_OBJWriter_::_OBJWriter_ | ( | ) |
| virtual OpenMesh::IO::_OBJWriter_::~_OBJWriter_ | ( | ) | [inline, virtual] |
Destructor.
Definition at line 87 of file OBJWriter.hh.
| size_t OpenMesh::IO::_OBJWriter_::binary_size | ( | BaseExporter & | , | |
| Options | ||||
| ) | const [inline, virtual] |
Returns expected size of file if binary format is supported else 0.
Reimplemented from OpenMesh::IO::BaseWriter.
Definition at line 96 of file OBJWriter.hh.
| std::string OpenMesh::IO::_OBJWriter_::get_description | ( | ) | const [inline, virtual] |
Return short description of the supported file format.
Implements OpenMesh::IO::BaseWriter.
Definition at line 89 of file OBJWriter.hh.
| std::string OpenMesh::IO::_OBJWriter_::get_extensions | ( | ) | const [inline, virtual] |
Return file format's extension.
Implements OpenMesh::IO::BaseWriter.
Definition at line 90 of file OBJWriter.hh.
| int OpenMesh::IO::_OBJWriter_::getMaterial | ( | OpenMesh::Vec4f | _color | ) | const [private] |
| int OpenMesh::IO::_OBJWriter_::getMaterial | ( | OpenMesh::Vec3f | _color | ) | const [private] |
| bool OpenMesh::IO::_OBJWriter_::write | ( | std::ostream & | _os, | |
| BaseExporter & | _be, | |||
| Options | _opt | |||
| ) | const [virtual] |
Write to std::ostream _os. Data source specified by BaseExporter _be.
Implements OpenMesh::IO::BaseWriter.
| bool OpenMesh::IO::_OBJWriter_::write | ( | const std::string & | _filename, | |
| BaseExporter & | _be, | |||
| Options | _opt | |||
| ) | const [virtual] |
Write to file _filename. Data source specified by BaseExporter _be.
Implements OpenMesh::IO::BaseWriter.
| bool OpenMesh::IO::_OBJWriter_::writeMaterial | ( | std::ostream & | _out, | |
| BaseExporter & | , | |||
| Options | ||||
| ) | const [private] |
std::vector< OpenMesh::Vec3f > OpenMesh::IO::_OBJWriter_::material_ [mutable, private] |
Definition at line 103 of file OBJWriter.hh.
std::vector< OpenMesh::Vec4f > OpenMesh::IO::_OBJWriter_::materialA_ [mutable, private] |
Definition at line 104 of file OBJWriter.hh.
std::string OpenMesh::IO::_OBJWriter_::objName_ [mutable, private] |
Definition at line 101 of file OBJWriter.hh.
std::string OpenMesh::IO::_OBJWriter_::path_ [mutable, private] |
Definition at line 100 of file OBJWriter.hh.