Public Member Functions | Private Member Functions | Private Attributes
ply_to_raw_converter Class Reference

List of all members.

Public Member Functions

bool convert (std::istream &istream, const std::string &istream_filename, std::ostream &ostream, const std::string &ostream_filename)
ply_to_raw_converteroperator= (const ply_to_raw_converter &f)
 ply_to_raw_converter ()
 ply_to_raw_converter (const ply_to_raw_converter &f)

Private Member Functions

boost::tuple< boost::function
< void()>, boost::function
< void()> > 
element_definition_callback (const std::string &element_name, std::size_t count)
void error_callback (const std::string &filename, std::size_t line_number, const std::string &message)
void face_begin ()
void face_end ()
void face_vertex_indices_begin (pcl::io::ply::uint8 size)
void face_vertex_indices_element (pcl::io::ply::int32 vertex_index)
void face_vertex_indices_end ()
void info_callback (const std::string &filename, std::size_t line_number, const std::string &message)
template<typename SizeType , typename ScalarType >
boost::tuple< boost::function
< void(SizeType)>
, boost::function< void(ScalarType)>
, boost::function< void()> > 
list_property_definition_callback (const std::string &element_name, const std::string &property_name)
template<typename ScalarType >
boost::function< void(ScalarType)> scalar_property_definition_callback (const std::string &element_name, const std::string &property_name)
void vertex_begin ()
void vertex_end ()
void vertex_x (pcl::io::ply::float32 x)
void vertex_y (pcl::io::ply::float32 y)
void vertex_z (pcl::io::ply::float32 z)
void warning_callback (const std::string &filename, std::size_t line_number, const std::string &message)

Private Attributes

pcl::io::ply::int32 face_vertex_indices_element_index_
pcl::io::ply::int32 face_vertex_indices_first_element_
pcl::io::ply::int32 face_vertex_indices_previous_element_
std::ostream * ostream_
pcl::io::ply::float32 vertex_x_
pcl::io::ply::float32 vertex_y_
pcl::io::ply::float32 vertex_z_
std::vector< boost::tuple
< pcl::io::ply::float32,
pcl::io::ply::float32,
pcl::io::ply::float32 > > 
vertices_

Detailed Description

Class ply_to_raw_converter converts a PLY file to a povray (www.povray.org) RAW file The following PLY elements and properties are supported. element vertex property float32 x property float32 y property float32 z element face property list uint8 int32 vertex_indices.

Author:
Ares Lagae

Definition at line 61 of file ply2raw.cpp.


Constructor & Destructor Documentation

Definition at line 64 of file ply2raw.cpp.

Definition at line 72 of file ply2raw.cpp.


Member Function Documentation

bool ply_to_raw_converter::convert ( std::istream &  istream,
const std::string istream_filename,
std::ostream &  ostream,
const std::string ostream_filename 
)

Definition at line 304 of file ply2raw.cpp.

boost::tuple< boost::function< void()>, boost::function< void()> > ply_to_raw_converter::element_definition_callback ( const std::string element_name,
std::size_t  count 
) [private]

Definition at line 174 of file ply2raw.cpp.

void ply_to_raw_converter::error_callback ( const std::string filename,
std::size_t  line_number,
const std::string message 
) [private]

Definition at line 168 of file ply2raw.cpp.

Definition at line 265 of file ply2raw.cpp.

void ply_to_raw_converter::face_end ( ) [private]

Definition at line 301 of file ply2raw.cpp.

Definition at line 268 of file ply2raw.cpp.

Definition at line 274 of file ply2raw.cpp.

Definition at line 298 of file ply2raw.cpp.

void ply_to_raw_converter::info_callback ( const std::string filename,
std::size_t  line_number,
const std::string message 
) [private]

Definition at line 156 of file ply2raw.cpp.

boost::tuple< boost::function< void(pcl::io::ply::uint8)>, boost::function< void(pcl::io::ply::int32)>, boost::function< void()> > ply_to_raw_converter::list_property_definition_callback ( const std::string element_name,
const std::string property_name 
) [private]

Definition at line 218 of file ply2raw.cpp.

ply_to_raw_converter& ply_to_raw_converter::operator= ( const ply_to_raw_converter f) [inline]

Definition at line 83 of file ply2raw.cpp.

boost::function< void(pcl::io::ply::float32)> ply_to_raw_converter::scalar_property_definition_callback ( const std::string element_name,
const std::string property_name 
) [private]

Definition at line 194 of file ply2raw.cpp.

Definition at line 238 of file ply2raw.cpp.

Definition at line 259 of file ply2raw.cpp.

Definition at line 241 of file ply2raw.cpp.

Definition at line 247 of file ply2raw.cpp.

Definition at line 253 of file ply2raw.cpp.

void ply_to_raw_converter::warning_callback ( const std::string filename,
std::size_t  line_number,
const std::string message 
) [private]

Definition at line 162 of file ply2raw.cpp.


Member Data Documentation

Definition at line 151 of file ply2raw.cpp.

Definition at line 151 of file ply2raw.cpp.

Definition at line 151 of file ply2raw.cpp.

std::ostream* ply_to_raw_converter::ostream_ [private]

Definition at line 149 of file ply2raw.cpp.

Definition at line 150 of file ply2raw.cpp.

Definition at line 150 of file ply2raw.cpp.

Definition at line 150 of file ply2raw.cpp.

Definition at line 152 of file ply2raw.cpp.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:53