57 #ifndef __PLYWRITER_HH__ 58 #define __PLYWRITER_HH__ 69 #include <OpenMesh/Core/System/config.h> 70 #include <OpenMesh/Core/Utils/SingletonT.hh> 71 #include <OpenMesh/Core/IO/exporter/BaseExporter.hh> 72 #include <OpenMesh/Core/IO/writer/BaseWriter.hh> 106 bool write(
const std::string&,
BaseExporter&,
Options, std::streamsize _precision = 6)
const;
114 ValueTypeFLOAT32, ValueTypeFLOAT,
115 ValueTypeINT32, ValueTypeINT , ValueTypeUINT,
116 ValueTypeUCHAR, ValueTypeCHAR, ValueTypeUINT8,
117 ValueTypeUSHORT, ValueTypeSHORT,
124 struct CustomProperty
128 CustomProperty(
const BaseProperty*
const _p):type(Unsupported),property(_p){}
131 const char* nameOfType_[12];
134 std::vector<CustomProperty> writeCustomTypeHeader(std::ostream& _out, BaseKernel::const_prop_iterator _begin, BaseKernel::const_prop_iterator _end)
const;
135 void write_customProp_ascii(std::ostream& _our,
const CustomProperty& _prop,
size_t _index)
const;
138 void writeValue(ValueType _type, std::ostream& _out,
int value)
const;
139 void writeValue(ValueType _type, std::ostream& _out,
unsigned int value)
const;
140 void writeValue(ValueType _type, std::ostream& _out,
float value)
const;
145 void write_header(std::ostream& _out,
BaseExporter& _be,
Options& _opt, std::vector<CustomProperty>& _ovProps, std::vector<CustomProperty>& _ofProps)
const;
virtual ~_PLYWriter_()
Destructor.
Definition: PLYWriter.hh:101
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64
std::string get_extensions() const
Return file format's extension.
Definition: PLYWriter.hh:104
Implementation of the PLY format writer.
Definition: PLYWriter.hh:94
Set options for reader/writer modules.
Definition: Options.hh:95
_PLYWriter_ __PLYWriterInstance
Declare the single entity of the PLY writer.
Definition: PLYWriter.cc:76
Abstract class defining the basic interface of a dynamic property.
Definition: BaseProperty.hh:65
Base class for all writer modules.
Definition: BaseWriter.hh:88
std::string get_description() const
Return short description of the supported file format.
Definition: PLYWriter.hh:103
Base class for exporter modules.
Definition: BaseExporter.hh:89
size_t binary_size(const Mesh &_mesh, const std::string &_ext, Options _opt=Options::Default)
Get binary size of data.
Definition: MeshIO.hh:260