licornea_tools
Classes | Public Member Functions | List of all members
tlz::ply_importer Class Reference

Imports point cloud from PLY file. More...

#include <ply_importer.h>

Public Member Functions

 ply_importer (const std::string &filename, line_delimitor ld=line_delimitor::unknown)
 
std::size_t size () const
 
void rewind ()
 
std::ptrdiff_t tell () const
 
void read (point_xyz *, std::size_t sz)
 
void read (point_full *, std::size_t sz)
 
bool is_binary () const
 
bool is_ascii () const
 

Detailed Description

Imports point cloud from PLY file.

Reads only points (vertices), possibly with RGB color and normal vector data. Supports ASCII and binary formats. Detects line ending type from file. File may contains other elements except vertex, but those are not read. List-type properties are not supported, and are only tolerated in elements behinds vertex.

Definition at line 33 of file ply_importer.h.

Constructor & Destructor Documentation

tlz::ply_importer::ply_importer ( const std::string &  filename,
line_delimitor  ld = line_delimitor::unknown 
)
explicit

Definition at line 213 of file ply_importer.cc.

Here is the call graph for this function:

Member Function Documentation

bool tlz::ply_importer::is_ascii ( ) const
inline

Definition at line 102 of file ply_importer.h.

bool tlz::ply_importer::is_binary ( ) const
inline

Definition at line 101 of file ply_importer.h.

void tlz::ply_importer::read ( point_xyz buffer,
std::size_t  sz 
)

Definition at line 280 of file ply_importer.cc.

Here is the call graph for this function:

void tlz::ply_importer::read ( point_full buffer,
std::size_t  sz 
)

Definition at line 291 of file ply_importer.cc.

Here is the call graph for this function:

void tlz::ply_importer::rewind ( )

Definition at line 207 of file ply_importer.cc.

std::size_t tlz::ply_importer::size ( ) const

Definition at line 307 of file ply_importer.cc.

std::ptrdiff_t tlz::ply_importer::tell ( ) const

Definition at line 302 of file ply_importer.cc.


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