50 #ifndef __PLYWRITER_HH__
51 #define __PLYWRITER_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>
98 bool write(
const std::string&,
BaseExporter&,
Options, std::streamsize _precision = 6)
const;
106 ValueTypeFLOAT32, ValueTypeFLOAT,
107 ValueTypeUINT8, ValueTypeINT32, ValueTypeINT ,
112 mutable Options options_;
115 void writeValue(ValueType _type, std::ostream& _out,
int value)
const;
116 void writeValue(ValueType _type, std::ostream& _out,
unsigned int value)
const;
117 void writeValue(ValueType _type, std::ostream& _out,
float value)
const;
119 bool write_ascii(std::ostream& _out, BaseExporter&, Options)
const;
120 bool write_binary(std::ostream& _out, BaseExporter&, Options)
const;
121 void write_header(std::ostream& _out, BaseExporter& _be, Options& _opt)
const;
130 OPENMESHDLLEXPORT _PLYWriter_& PLYWriter();
virtual ~_PLYWriter_()
Destructor.
Definition: PLYWriter.hh:93
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
_PLYWriter_ __PLYWriterInstance
Declare the single entity of the PLY writer.
Definition: PLYWriter.cc:66
size_t binary_size(const Mesh &_mesh, const std::string &_ext, Options _opt=Options::Default)
Get binary size of data.
Definition: MeshIO.hh:253
std::string get_extensions() const
Return file format's extension.
Definition: PLYWriter.hh:96
Base class for exporter modules.
Definition: BaseExporter.hh:82
std::string get_description() const
Return short description of the supported file format.
Definition: PLYWriter.hh:95
Base class for all writer modules.
Definition: BaseWriter.hh:81
Implementation of the PLY format writer.
Definition: PLYWriter.hh:86