mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | List of all members
mf::ply_importer Class Reference

Imports point cloud from PLY file. More...

#include <ply_importer.h>

Public Member Functions

 ply_importer (const char *filename, line_delimitor ld=line_delimitor::unknown)
 
 ply_importer (const std::string &filename, line_delimitor ld=line_delimitor::unknown)
 
std::size_t size () const override
 
bool all_valid () const override
 
void rewind () override
 
std::ptrdiff_t tell () const override
 
void read (point_xyz *, std::size_t sz) override
 
void read (point_full *, std::size_t sz) override
 
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.

Constructor & Destructor Documentation

mf::ply_importer::ply_importer ( const char *  filename,
line_delimitor  ld = line_delimitor::unknown 
)
explicit
mf::ply_importer::ply_importer ( const std::string &  filename,
line_delimitor  ld = line_delimitor::unknown 
)
inlineexplicit

Member Function Documentation

bool mf::ply_importer::all_valid ( ) const
override
bool mf::ply_importer::is_ascii ( ) const
inline
bool mf::ply_importer::is_binary ( ) const
inline
void mf::ply_importer::read ( point_xyz ,
std::size_t  sz 
)
override
void mf::ply_importer::read ( point_full ,
std::size_t  sz 
)
override
void mf::ply_importer::rewind ( )
override
std::size_t mf::ply_importer::size ( ) const
override
std::ptrdiff_t mf::ply_importer::tell ( ) const
override

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