#include <OFFWriter.hh>

Public Member Functions | |
| _OFFWriter_ () | |
| size_t | binary_size (BaseExporter &_be, Options _opt) 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 | ~_OFFWriter_ () |
Protected Member Functions | |
| bool | write_ascii (std::ostream &_in, BaseExporter &, Options) const |
| bool | write_binary (std::ostream &_in, BaseExporter &, Options) const |
| void | writeValue (std::ostream &_out, float value) const |
| void | writeValue (std::ostream &_out, unsigned int value) const |
| void | writeValue (std::ostream &_out, int value) const |
Implementation of the OFF format writer. This class is singleton'ed by SingletonT to OFFWriter.
By passing Options to the write function you can manipulate the writing behavoir. The following options can be set:
Binary VertexNormal VertexColor VertexTexCoord FaceColor ColorAlpha
Definition at line 92 of file OFFWriter.hh.
| OpenMesh::IO::_OFFWriter_::_OFFWriter_ | ( | ) |
| virtual OpenMesh::IO::_OFFWriter_::~_OFFWriter_ | ( | ) | [inline, virtual] |
Definition at line 98 of file OFFWriter.hh.
| size_t OpenMesh::IO::_OFFWriter_::binary_size | ( | BaseExporter & | , | |
| Options | ||||
| ) | const [virtual] |
Returns expected size of file if binary format is supported else 0.
Reimplemented from OpenMesh::IO::BaseWriter.
| std::string OpenMesh::IO::_OFFWriter_::get_description | ( | ) | const [inline, virtual] |
Return short description of the supported file format.
Implements OpenMesh::IO::BaseWriter.
Definition at line 100 of file OFFWriter.hh.
| std::string OpenMesh::IO::_OFFWriter_::get_extensions | ( | ) | const [inline, virtual] |
Return file format's extension.
Implements OpenMesh::IO::BaseWriter.
Definition at line 101 of file OFFWriter.hh.
| bool OpenMesh::IO::_OFFWriter_::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::_OFFWriter_::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::_OFFWriter_::write_ascii | ( | std::ostream & | _in, | |
| BaseExporter & | , | |||
| Options | ||||
| ) | const [protected] |
| bool OpenMesh::IO::_OFFWriter_::write_binary | ( | std::ostream & | _in, | |
| BaseExporter & | , | |||
| Options | ||||
| ) | const [protected] |
| void OpenMesh::IO::_OFFWriter_::writeValue | ( | std::ostream & | _out, | |
| float | value | |||
| ) | const [protected] |
| void OpenMesh::IO::_OFFWriter_::writeValue | ( | std::ostream & | _out, | |
| unsigned int | value | |||
| ) | const [protected] |
| void OpenMesh::IO::_OFFWriter_::writeValue | ( | std::ostream & | _out, | |
| int | value | |||
| ) | const [protected] |