Public Types | |
enum | { triangulate = 1 << 0 } |
typedef int | flags_type |
Public Member Functions | |
bool | convert (std::istream &istream, const std::string &istream_filename, std::ostream &ostream, const std::string &ostream_filename) |
ply_to_obj_converter (flags_type flags=0) | |
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 | |
std::size_t | face_vertex_indices_element_index_ |
std::size_t | face_vertex_indices_first_element_ |
std::size_t | face_vertex_indices_previous_element_ |
flags_type | flags_ |
std::ostream * | ostream_ |
double | vertex_x_ |
double | vertex_y_ |
double | vertex_z_ |
Convert a PLY file, optionally meshed to an OBJ 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.
Definition at line 62 of file ply2obj.cpp.
typedef int ply_to_obj_converter::flags_type |
Definition at line 65 of file ply2obj.cpp.
anonymous enum |
Definition at line 66 of file ply2obj.cpp.
ply_to_obj_converter::ply_to_obj_converter | ( | flags_type | flags = 0 | ) |
Definition at line 131 of file ply2obj.cpp.
bool ply_to_obj_converter::convert | ( | std::istream & | istream, |
const std::string & | istream_filename, | ||
std::ostream & | ostream, | ||
const std::string & | ostream_filename | ||
) |
Definition at line 295 of file ply2obj.cpp.
boost::tuple< boost::function< void()>, boost::function< void()> > ply_to_obj_converter::element_definition_callback | ( | const std::string & | element_name, |
std::size_t | count | ||
) | [private] |
Definition at line 159 of file ply2obj.cpp.
void ply_to_obj_converter::error_callback | ( | const std::string & | filename, |
std::size_t | line_number, | ||
const std::string & | message | ||
) | [private] |
Definition at line 153 of file ply2obj.cpp.
void ply_to_obj_converter::face_begin | ( | ) | [private] |
Definition at line 247 of file ply2obj.cpp.
void ply_to_obj_converter::face_end | ( | ) | [private] |
Definition at line 290 of file ply2obj.cpp.
void ply_to_obj_converter::face_vertex_indices_begin | ( | pcl::io::ply::uint8 | size | ) | [private] |
Definition at line 255 of file ply2obj.cpp.
void ply_to_obj_converter::face_vertex_indices_element | ( | pcl::io::ply::int32 | vertex_index | ) | [private] |
Definition at line 261 of file ply2obj.cpp.
void ply_to_obj_converter::face_vertex_indices_end | ( | ) | [private] |
Definition at line 282 of file ply2obj.cpp.
void ply_to_obj_converter::info_callback | ( | const std::string & | filename, |
std::size_t | line_number, | ||
const std::string & | message | ||
) | [private] |
Definition at line 141 of file ply2obj.cpp.
boost::tuple< boost::function< void(pcl::io::ply::uint8)>, boost::function< void(pcl::io::ply::int32)>, boost::function< void()> > ply_to_obj_converter::list_property_definition_callback | ( | const std::string & | element_name, |
const std::string & | property_name | ||
) | [private] |
Definition at line 203 of file ply2obj.cpp.
boost::function< void(pcl::io::ply::float32)> ply_to_obj_converter::scalar_property_definition_callback | ( | const std::string & | element_name, |
const std::string & | property_name | ||
) | [private] |
Definition at line 181 of file ply2obj.cpp.
void ply_to_obj_converter::vertex_begin | ( | ) | [private] |
Definition at line 218 of file ply2obj.cpp.
void ply_to_obj_converter::vertex_end | ( | ) | [private] |
Definition at line 241 of file ply2obj.cpp.
void ply_to_obj_converter::vertex_x | ( | pcl::io::ply::float32 | x | ) | [private] |
Definition at line 223 of file ply2obj.cpp.
void ply_to_obj_converter::vertex_y | ( | pcl::io::ply::float32 | y | ) | [private] |
Definition at line 229 of file ply2obj.cpp.
void ply_to_obj_converter::vertex_z | ( | pcl::io::ply::float32 | z | ) | [private] |
Definition at line 235 of file ply2obj.cpp.
void ply_to_obj_converter::warning_callback | ( | const std::string & | filename, |
std::size_t | line_number, | ||
const std::string & | message | ||
) | [private] |
Definition at line 147 of file ply2obj.cpp.
std::size_t ply_to_obj_converter::face_vertex_indices_element_index_ [private] |
Definition at line 128 of file ply2obj.cpp.
std::size_t ply_to_obj_converter::face_vertex_indices_first_element_ [private] |
Definition at line 128 of file ply2obj.cpp.
std::size_t ply_to_obj_converter::face_vertex_indices_previous_element_ [private] |
Definition at line 128 of file ply2obj.cpp.
flags_type ply_to_obj_converter::flags_ [private] |
Definition at line 125 of file ply2obj.cpp.
std::ostream* ply_to_obj_converter::ostream_ [private] |
Definition at line 126 of file ply2obj.cpp.
double ply_to_obj_converter::vertex_x_ [private] |
Definition at line 127 of file ply2obj.cpp.
double ply_to_obj_converter::vertex_y_ [private] |
Definition at line 127 of file ply2obj.cpp.
double ply_to_obj_converter::vertex_z_ [private] |
Definition at line 127 of file ply2obj.cpp.