Point Cloud Library (PCL)  1.9.1-dev
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions
pcl::io::ply::ply_parser Class Reference

Class ply_parser parses a PLY file and generates appropriate atomic parsers for the body. More...

#include <pcl/io/ply/ply_parser.h>

Classes

struct  list_property_begin_callback_type
 
struct  list_property_definition_callback_type
 
class  list_property_definition_callbacks_type
 
struct  list_property_element_callback_type
 
struct  list_property_end_callback_type
 
struct  scalar_property_callback_type
 
struct  scalar_property_definition_callback_type
 
class  scalar_property_definition_callbacks_type
 

Public Types

enum  flags
 
typedef boost::function< void(std::size_t, const std::string &)> info_callback_type
 
typedef boost::function< void(std::size_t, const std::string &)> warning_callback_type
 
typedef boost::function< void(std::size_t, const std::string &)> error_callback_type
 
typedef boost::function< void()> magic_callback_type
 
typedef boost::function< void(format_type, const std::string &)> format_callback_type
 
typedef boost::function< void(const std::string &)> comment_callback_type
 
typedef boost::function< void(const std::string &)> obj_info_callback_type
 
typedef boost::function< bool()> end_header_callback_type
 
typedef boost::function< void()> begin_element_callback_type
 
typedef boost::function< void()> end_element_callback_type
 
typedef boost::tuple< begin_element_callback_type, end_element_callback_typeelement_callbacks_type
 
typedef boost::function< element_callbacks_type(const std::string &, std::size_t)> element_definition_callback_type
 
typedef boost::mpl::vector< int8, int16, int32, uint8, uint16, uint32, float32, float64scalar_types
 
typedef boost::mpl::vector< uint8, uint16, uint32size_types
 
typedef int flags_type
 

Public Member Functions

void info_callback (const info_callback_type &info_callback)
 
void warning_callback (const warning_callback_type &warning_callback)
 
void error_callback (const error_callback_type &error_callback)
 
void magic_callback (const magic_callback_type &magic_callback)
 
void format_callback (const format_callback_type &format_callback)
 
void element_definition_callback (const element_definition_callback_type &element_definition_callback)
 
void scalar_property_definition_callbacks (const scalar_property_definition_callbacks_type &scalar_property_definition_callbacks)
 
void list_property_definition_callbacks (const list_property_definition_callbacks_type &list_property_definition_callbacks)
 
void comment_callback (const comment_callback_type &comment_callback)
 
void obj_info_callback (const obj_info_callback_type &obj_info_callback)
 
void end_header_callback (const end_header_callback_type &end_header_callback)
 
 ply_parser ()
 
bool parse (const std::string &filename)
 

Static Public Member Functions

template<typename ScalarType >
static scalar_property_definition_callback_type< ScalarType >::type & at (scalar_property_definition_callbacks_type &scalar_property_definition_callbacks)
 
template<typename ScalarType >
static const scalar_property_definition_callback_type< ScalarType >::type & at (const scalar_property_definition_callbacks_type &scalar_property_definition_callbacks)
 
template<typename SizeType , typename ScalarType >
static list_property_definition_callback_type< SizeType, ScalarType >::type & at (list_property_definition_callbacks_type &list_property_definition_callbacks)
 
template<typename SizeType , typename ScalarType >
static const list_property_definition_callback_type< SizeType, ScalarType >::type & at (const list_property_definition_callbacks_type &list_property_definition_callbacks)
 

Detailed Description

Class ply_parser parses a PLY file and generates appropriate atomic parsers for the body.

Author
Ares Lagae as part of libply, Nizar Sallem Ported with agreement from the author under the terms of the BSD license.

Definition at line 81 of file ply_parser.h.

Member Typedef Documentation

Definition at line 95 of file ply_parser.h.

typedef boost::function<void (const std::string&)> pcl::io::ply::ply_parser::comment_callback_type

Definition at line 91 of file ply_parser.h.

Definition at line 97 of file ply_parser.h.

typedef boost::function<element_callbacks_type (const std::string&, std::size_t)> pcl::io::ply::ply_parser::element_definition_callback_type

Definition at line 98 of file ply_parser.h.

typedef boost::function<void ()> pcl::io::ply::ply_parser::end_element_callback_type

Definition at line 96 of file ply_parser.h.

typedef boost::function<bool ()> pcl::io::ply::ply_parser::end_header_callback_type

Definition at line 93 of file ply_parser.h.

typedef boost::function<void (std::size_t, const std::string&)> pcl::io::ply::ply_parser::error_callback_type

Definition at line 87 of file ply_parser.h.

Definition at line 303 of file ply_parser.h.

typedef boost::function<void (format_type, const std::string&)> pcl::io::ply::ply_parser::format_callback_type

Definition at line 90 of file ply_parser.h.

typedef boost::function<void (std::size_t, const std::string&)> pcl::io::ply::ply_parser::info_callback_type

Definition at line 85 of file ply_parser.h.

typedef boost::function<void ()> pcl::io::ply::ply_parser::magic_callback_type

Definition at line 89 of file ply_parser.h.

typedef boost::function<void (const std::string&)> pcl::io::ply::ply_parser::obj_info_callback_type

Definition at line 92 of file ply_parser.h.

Definition at line 113 of file ply_parser.h.

Definition at line 206 of file ply_parser.h.

typedef boost::function<void (std::size_t, const std::string&)> pcl::io::ply::ply_parser::warning_callback_type

Definition at line 86 of file ply_parser.h.

Member Enumeration Documentation

Definition at line 304 of file ply_parser.h.

Constructor & Destructor Documentation

pcl::io::ply::ply_parser::ply_parser ( )
inline

Definition at line 306 of file ply_parser.h.

Member Function Documentation

template<typename ScalarType >
static scalar_property_definition_callback_type<ScalarType>::type& pcl::io::ply::ply_parser::at ( scalar_property_definition_callbacks_type scalar_property_definition_callbacks)
inlinestatic
template<typename ScalarType >
static const scalar_property_definition_callback_type<ScalarType>::type& pcl::io::ply::ply_parser::at ( const scalar_property_definition_callbacks_type scalar_property_definition_callbacks)
inlinestatic
template<typename SizeType , typename ScalarType >
static list_property_definition_callback_type<SizeType, ScalarType>::type& pcl::io::ply::ply_parser::at ( list_property_definition_callbacks_type list_property_definition_callbacks)
inlinestatic
template<typename SizeType , typename ScalarType >
static const list_property_definition_callback_type<SizeType, ScalarType>::type& pcl::io::ply::ply_parser::at ( const list_property_definition_callbacks_type list_property_definition_callbacks)
inlinestatic
void pcl::io::ply::ply_parser::comment_callback ( const comment_callback_type comment_callback)
inline

Definition at line 477 of file ply_parser.h.

void pcl::io::ply::ply_parser::element_definition_callback ( const element_definition_callback_type element_definition_callback)
inline

Definition at line 462 of file ply_parser.h.

void pcl::io::ply::ply_parser::end_header_callback ( const end_header_callback_type end_header_callback)
inline
void pcl::io::ply::ply_parser::error_callback ( const error_callback_type error_callback)
inline

Definition at line 447 of file ply_parser.h.

void pcl::io::ply::ply_parser::format_callback ( const format_callback_type format_callback)
inline

Definition at line 457 of file ply_parser.h.

void pcl::io::ply::ply_parser::info_callback ( const info_callback_type info_callback)
inline

Definition at line 437 of file ply_parser.h.

void pcl::io::ply::ply_parser::list_property_definition_callbacks ( const list_property_definition_callbacks_type list_property_definition_callbacks)
inline

Definition at line 472 of file ply_parser.h.

void pcl::io::ply::ply_parser::magic_callback ( const magic_callback_type magic_callback)
inline

Definition at line 452 of file ply_parser.h.

void pcl::io::ply::ply_parser::obj_info_callback ( const obj_info_callback_type obj_info_callback)
inline

Definition at line 482 of file ply_parser.h.

bool pcl::io::ply::ply_parser::parse ( const std::string &  filename)
void pcl::io::ply::ply_parser::scalar_property_definition_callbacks ( const scalar_property_definition_callbacks_type scalar_property_definition_callbacks)
inline

Definition at line 467 of file ply_parser.h.

void pcl::io::ply::ply_parser::warning_callback ( const warning_callback_type warning_callback)
inline

Definition at line 442 of file ply_parser.h.


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