|  | 
|  | PLYIO () | 
|  | Constructor.  More... 
 | 
|  | 
| ModelPtr | read (string filename) | 
|  | Read specified PLY file.  More... 
 | 
|  | 
| ModelPtr | read (string filename, bool readColor, bool readConfidence=true, bool readIntensity=true, bool readNormals=true, bool readFaces=true, bool readPanoramaCoords=true) | 
|  | Read specified PLY file.  More... 
 | 
|  | 
| void | save (ModelPtr model, string filename) | 
|  | 
| void | save (string filename) | 
|  | Save PLY with previously specified data.  More... 
 | 
|  | 
|  | ~PLYIO () | 
|  | 
|  | BaseIO () | 
|  | 
| virtual ModelPtr | getModel () | 
|  | Get the model for io operations.  More... 
 | 
|  | 
| virtual ModelPtr | read (std::string filename)=0 | 
|  | Parse the given file and load supported elements.  More... 
 | 
|  | 
| virtual void | save (ModelPtr model, std::string filename) | 
|  | Set the model and save the loaded elements to the given file.  More... 
 | 
|  | 
| virtual void | save (std::string filename)=0 | 
|  | Save the loaded elements to the given file.  More... 
 | 
|  | 
| virtual void | setModel (ModelPtr m) | 
|  | Set the model for io operations to use.  More... 
 | 
|  | 
| virtual | ~BaseIO () | 
|  | 
A class for input and output to ply files. 
The PLYIO class provides functionalities for reading and writing the Polygon File Format, also known as Stanford Triangle Format. Both binary and ascii modes are supported. For the actual file handling the RPly library is used. 
 
 The following list is a short description of all handled elements and properties of ply files. In short the elements vertex and face specifies a mesh and the element point specifies a pointcloud. However there is one exception to this: If neither point nor face is defined, it is assumed that the read vertices are meant to be points and thus are loaded as pointcloud. 
ELEMENT vertex
   PROPERTY              x (float)
   PROPERTY              y (float)
   PROPERTY              z (float)
   PROPERTY            red (unsigned char)
   PROPERTY          green (unsigned char)
   PROPERTY           blue (unsigned char)
   PROPERTY             nx (float)
   PROPERTY             ny (float)
   PROPERTY             nz (float)
   PROPERTY      intensity (float)
   PROPERTY     confidence (float)
   PROPERTY       x_coords (short)  <<  [only read]
   PROPERTY       y_coords (short)  <<  [only read]
ELEMENT point
   PROPERTY              x (float)
   PROPERTY              y (float)
   PROPERTY              z (float)
   PROPERTY            red (unsigned char)
   PROPERTY          green (unsigned char)
   PROPERTY           blue (unsigned char)
   PROPERTY             nx (float)
   PROPERTY             ny (float)
   PROPERTY             nz (float)
   PROPERTY      intensity (float)
   PROPERTY     confidence (float)
   PROPERTY       x_coords (short)  <<  [only read]
   PROPERTY       y_coords (short)  <<  [only read]
ELEMENT face
   PROPERTY vertex_indices (LIST uchar int)
   PROPERTY   vertex_index (LIST uchar int)  <<  [only read]
 
Definition at line 104 of file PLYIO.hpp.