Public Types | Public Member Functions | Private Member Functions | Private Attributes
obj_to_obj_converter Class Reference

List of all members.

Public Types

enum  flags { triangulate_faces = 1 << 0, translate_negative_indices = 1 << 1 }
typedef int flags_type

Public Member Functions

bool convert (std::istream &istream, std::ostream &ostream)
 obj_to_obj_converter (flags_type flags)

Private Member Functions

void comment_callback (const std::string &comment)
void error_callback (const std::string &filename, std::size_t line_number, const std::string &message)
void geometric_vertex_callback (obj::float_type x, obj::float_type y, obj::float_type z)
void group_name_callback (const std::string &group_name)
void info_callback (const std::string &filename, std::size_t line_number, const std::string &message)
void material_library_callback (const std::string &filename)
void material_name_callback (const std::string &material_name)
void object_name_callback (const std::string &object_name)
void polygonal_face_geometric_vertices_begin_callback (obj::index_type v1, obj::index_type v2, obj::index_type v3)
void polygonal_face_geometric_vertices_end_callback ()
void polygonal_face_geometric_vertices_texture_vertices_begin_callback (const obj::index_2_tuple_type &v1_vt1, const obj::index_2_tuple_type &v2_vt2, const obj::index_2_tuple_type &v3_vt3)
void polygonal_face_geometric_vertices_texture_vertices_end_callback ()
void polygonal_face_geometric_vertices_texture_vertices_vertex_callback (const obj::index_2_tuple_type &v_vt)
void polygonal_face_geometric_vertices_texture_vertices_vertex_normals_begin_callback (const obj::index_3_tuple_type &v1_vt1_vn1, const obj::index_3_tuple_type &v2_vt2_vn2, const obj::index_3_tuple_type &v3_vt3_vn3)
void polygonal_face_geometric_vertices_texture_vertices_vertex_normals_end_callback ()
void polygonal_face_geometric_vertices_texture_vertices_vertex_normals_vertex_callback (const obj::index_3_tuple_type &v_vt_vn)
void polygonal_face_geometric_vertices_vertex_callback (obj::index_type v)
void polygonal_face_geometric_vertices_vertex_normals_begin_callback (const obj::index_2_tuple_type &v1_vn1, const obj::index_2_tuple_type &v2_vn2, const obj::index_2_tuple_type &v3_vn3)
void polygonal_face_geometric_vertices_vertex_normals_end_callback ()
void polygonal_face_geometric_vertices_vertex_normals_vertex_callback (const obj::index_2_tuple_type &v_vn)
void quadrilateral_face_geometric_vertices_callback (obj::index_type v1, obj::index_type v2, obj::index_type v3, obj::index_type v4)
void quadrilateral_face_geometric_vertices_texture_vertices_callback (const obj::index_2_tuple_type &v1_vt1, const obj::index_2_tuple_type &v2_vt2, const obj::index_2_tuple_type &v3_vt3, const obj::index_2_tuple_type &v4_vt4)
void quadrilateral_face_geometric_vertices_texture_vertices_vertex_normals_callback (const obj::index_3_tuple_type &v1_vt1_vn1, const obj::index_3_tuple_type &v2_vt2_vn2, const obj::index_3_tuple_type &v3_vt3_vn3, const obj::index_3_tuple_type &v4_vt4_vn4)
void quadrilateral_face_geometric_vertices_vertex_normals_callback (const obj::index_2_tuple_type &v1_vn1, const obj::index_2_tuple_type &v2_vn2, const obj::index_2_tuple_type &v3_vn3, const obj::index_2_tuple_type &v4_vn4)
void smoothing_group_callback (obj::size_type group_number)
void texture_vertex_callback (obj::float_type u, obj::float_type v)
void triangular_face_geometric_vertices_callback (obj::index_type v1, obj::index_type v2, obj::index_type v3)
void triangular_face_geometric_vertices_texture_vertices_callback (const obj::index_2_tuple_type &v1_vt1, const obj::index_2_tuple_type &v2_vt2, const obj::index_2_tuple_type &v3_vt3)
void triangular_face_geometric_vertices_texture_vertices_vertex_normals_callback (const obj::index_3_tuple_type &v1_vt1_vn1, const obj::index_3_tuple_type &v2_vt2_vn2, const obj::index_3_tuple_type &v3_vt3_vn3)
void triangular_face_geometric_vertices_vertex_normals_callback (const obj::index_2_tuple_type &v1_vn1, const obj::index_2_tuple_type &v2_vn2, const obj::index_2_tuple_type &v3_vn3)
void vertex_normal_callback (obj::float_type x, obj::float_type y, obj::float_type z)
void warning_callback (const std::string &filename, std::size_t line_number, const std::string &message)

Private Attributes

flags_type flags_
std::ostream * ostream_

Detailed Description

Definition at line 14 of file obj2obj.cpp.


Member Typedef Documentation

Definition at line 17 of file obj2obj.cpp.


Member Enumeration Documentation

Enumerator:
triangulate_faces 
translate_negative_indices 

Definition at line 18 of file obj2obj.cpp.


Constructor & Destructor Documentation

Definition at line 22 of file obj2obj.cpp.


Member Function Documentation

void obj_to_obj_converter::comment_callback ( const std::string &  comment) [private]

Definition at line 223 of file obj2obj.cpp.

bool obj_to_obj_converter::convert ( std::istream &  istream,
std::ostream &  ostream 
)

Definition at line 228 of file obj2obj.cpp.

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

Definition at line 71 of file obj2obj.cpp.

Definition at line 76 of file obj2obj.cpp.

void obj_to_obj_converter::group_name_callback ( const std::string &  group_name) [private]

Definition at line 191 of file obj2obj.cpp.

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

Definition at line 61 of file obj2obj.cpp.

void obj_to_obj_converter::material_library_callback ( const std::string &  filename) [private]

Definition at line 213 of file obj2obj.cpp.

void obj_to_obj_converter::material_name_callback ( const std::string &  material_name) [private]

Definition at line 218 of file obj2obj.cpp.

void obj_to_obj_converter::object_name_callback ( const std::string &  object_name) [private]

Definition at line 208 of file obj2obj.cpp.

Definition at line 131 of file obj2obj.cpp.

Definition at line 141 of file obj2obj.cpp.

Definition at line 146 of file obj2obj.cpp.

Definition at line 156 of file obj2obj.cpp.

Definition at line 151 of file obj2obj.cpp.

Definition at line 176 of file obj2obj.cpp.

Definition at line 186 of file obj2obj.cpp.

Definition at line 181 of file obj2obj.cpp.

Definition at line 136 of file obj2obj.cpp.

Definition at line 161 of file obj2obj.cpp.

Definition at line 171 of file obj2obj.cpp.

Definition at line 166 of file obj2obj.cpp.

Definition at line 111 of file obj2obj.cpp.

Definition at line 116 of file obj2obj.cpp.

Definition at line 126 of file obj2obj.cpp.

Definition at line 121 of file obj2obj.cpp.

Definition at line 196 of file obj2obj.cpp.

Definition at line 81 of file obj2obj.cpp.

Definition at line 91 of file obj2obj.cpp.

Definition at line 96 of file obj2obj.cpp.

Definition at line 106 of file obj2obj.cpp.

Definition at line 101 of file obj2obj.cpp.

Definition at line 86 of file obj2obj.cpp.

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

Definition at line 66 of file obj2obj.cpp.


Member Data Documentation

Definition at line 57 of file obj2obj.cpp.

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

Definition at line 58 of file obj2obj.cpp.


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


libobj
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:32:19