Euclid
Geometry Processing and Shape Analysis in C++
Euclid::PlyReader Class Reference

An abstrct class for ply reader. More...

#include <PlyIO.h>

Inheritance diagram for Euclid::PlyReader:
Euclid::CommonPlyReader< VN, FloatType, IndexType, ColorType >

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
 

Detailed Description

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,

  1. Header is read and parsed into elements and properties in read_ply.
  2. read_ply will call PlyReader::on_read.
  3. read_ply will then call PlyReader::read to do the actual reading.

Note

You should use the CommonPlyReader class to read the most common ply format.

See also
read_ply CommonPlyReader

Member Function Documentation

virtual void Euclid::PlyReader::on_read ( const PlyHeader )
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 >.


The documentation for this class was generated from the following files: