Euclid
Geometry Processing and Shape Analysis in C++
|
An abstrct class for ply reader. More...
#include <PlyIO.h>
Public Member Functions | |
virtual void | on_read (const PlyHeader &) |
On reading the header. More... | |
virtual void | read (const PlyDoubleProperty *, std::ifstream &, PlyFormat) |
Read a PlyDoubleProperty. | |
virtual void | read (const PlyFloatProperty *, std::ifstream &, PlyFormat) |
Read a PlyFloatProperty. | |
virtual void | read (const PlyIntProperty *, std::ifstream &, PlyFormat) |
Read a PlyIntProperty. | |
virtual void | read (const PlyUintProperty *, std::ifstream &, PlyFormat) |
Read a PlyUintProperty. | |
virtual void | read (const PlyShortProperty *, std::ifstream &, PlyFormat) |
Read a PlyShortProperty. | |
virtual void | read (const PlyUshortProperty *, std::ifstream &, PlyFormat) |
Read a PlyUshortProperty. | |
virtual void | read (const PlyCharProperty *, std::ifstream &, PlyFormat) |
Read a PlyCharProperty. | |
virtual void | read (const PlyUcharProperty *, std::ifstream &, PlyFormat) |
Read a PlyUcharProperty. | |
Protected Attributes | |
bool | _sys_little_endian |
This class serves as an abstract base class for a ply file reader. A ply reader is supposed to be supplied to the function read_ply to customize the process of reading a ply file. A PlyReader is used in the following way,
Note
You should use the CommonPlyReader class to read the most common ply format.
|
inlinevirtual |
This function is called right after the header specification is retrieved from the file. Override this function if you wish to do some preprocessing before reading the ply body, e.g. allocating space for buffers.
Reimplemented in Euclid::CommonPlyReader< VN, FloatType, IndexType, ColorType >.