52#ifndef __OFFWRITER_HH__
53#define __OFFWRITER_HH__
61#include <OpenMesh/Core/System/config.h>
62#include <OpenMesh/Core/Utils/SingletonT.hh>
63#include <OpenMesh/Core/IO/exporter/BaseExporter.hh>
64#include <OpenMesh/Core/IO/writer/BaseWriter.hh>
103 bool write(
const std::string&,
BaseExporter&,
const Options&, std::streamsize _precision = 6)
const override;
105 bool write(std::ostream&,
BaseExporter&,
const Options& _writeOptions, std::streamsize _precision = 6)
const override;
111 void writeValue(std::ostream& _out,
int value)
const;
112 void writeValue(std::ostream& _out,
unsigned int value)
const;
113 void writeValue(std::ostream& _out,
float value)
const;
125OPENMESHDLLEXPORT _OFFWriter_& OFFWriter();
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
size_t binary_size(const Mesh &_mesh, const std::string &_ext, Options _opt=Options::Default)
Get binary size of data.
Definition: MeshIO.hh:251
_OFFWriter_ __OFFWriterInstance
Declare the single entity of the OFF writer.
Definition: OFFWriter.cc:66
Base class for exporter modules.
Definition: BaseExporter.hh:85
Set options for reader/writer modules.
Definition: Options.hh:92
Base class for all writer modules.
Definition: BaseWriter.hh:84
Implementation of the OFF format writer.
Definition: OFFWriter.hh:93
std::string get_description() const override
Return short description of the supported file format.
Definition: OFFWriter.hh:100
std::string get_extensions() const override
Return file format's extension.
Definition: OFFWriter.hh:101