Euclid
Geometry Processing and Shape Analysis in C++
|
An abstract ply writer. More...
#include <PlyIO.h>
Public Member Functions | |
virtual void | on_write () |
On writing the ply file. More... | |
virtual PlyHeader | generate_header (PlyFormat format) const |
Generate the ply header. More... | |
virtual void | write (const PlyDoubleProperty *, std::ofstream &, PlyFormat) |
Write a PlyDoubleProperty. | |
virtual void | write (const PlyFloatProperty *, std::ofstream &, PlyFormat) |
Write a PlyFloatProperty. | |
virtual void | write (const PlyIntProperty *, std::ofstream &, PlyFormat) |
Write a PlyIntProperty. | |
virtual void | write (const PlyUintProperty *, std::ofstream &, PlyFormat) |
Write a PlyUintProperty. | |
virtual void | write (const PlyShortProperty *, std::ofstream &, PlyFormat) |
Write a PlyShortProperty. | |
virtual void | write (const PlyUshortProperty *, std::ofstream &, PlyFormat) |
Write a PlyUshortProperty. | |
virtual void | write (const PlyCharProperty *, std::ofstream &, PlyFormat) |
Write a PlyCharProperty. | |
virtual void | write (const PlyUcharProperty *, std::ofstream &, PlyFormat) |
Write a PlyUcharProperty. | |
Protected Attributes | |
bool | _sys_little_endian |
This class serves as an abstract base class for a ply file writer. A ply writer is supposed to be supplied to the function write_ply to customize the process of writing a ply file. A PlyWriter is used in the following way,
Note
You should use the CommonPlyWriter class to write the most common ply format.
The PlyWriter is in charge of generating the header based on the data given.
Reimplemented in Euclid::CommonPlyWriter< VN, FloatType, IndexType, ColorType >.
|
inlinevirtual |
This function is called right before writing the ply file. Override this function if you wish to do some preprocessing, e.g. resetting the inner iterator.
Reimplemented in Euclid::CommonPlyWriter< VN, FloatType, IndexType, ColorType >.