50 #ifndef __BASEWRITER_HH__
51 #define __BASEWRITER_HH__
62 #include <OpenMesh/Core/System/config.h>
63 #include <OpenMesh/Core/IO/Options.hh>
64 #include <OpenMesh/Core/IO/exporter/BaseExporter.hh>
85 typedef unsigned int Option;
91 virtual std::string get_description()
const = 0;
94 virtual std::string get_extensions()
const = 0;
97 virtual bool can_u_write(
const std::string& _filename)
const;
105 virtual bool write(
const std::string& _filename,
108 std::streamsize _precision = 6)
const = 0;
116 virtual bool write(std::ostream& _os,
119 std::streamsize _precision = 6)
const = 0;
Definition: mconvert.cc:100
Set options for reader/writer modules.
Definition: Options.hh:88
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:56
virtual ~BaseWriter()
Destructor.
Definition: BaseWriter.hh:88
Has (r) / store (w) texture coordinates.
Definition: Options.hh:104
Has (r) / store (w) vertex normals.
Definition: Options.hh:102
Has (r) / store (w) face normals.
Definition: Options.hh:106
Base class for exporter modules.
Definition: BaseExporter.hh:82
Has (r) / store (w) vertex colors.
Definition: Options.hh:103
Has (r) / store (w) face colors.
Definition: Options.hh:107
Base class for all writer modules.
Definition: BaseWriter.hh:81
virtual size_t binary_size(BaseExporter &, Options) const
Returns expected size of file if binary format is supported else 0.
Definition: BaseWriter.hh:122