|
Public Types |
| enum | { parse_blank_lines_as_comment = 1 << 0,
triangulate_faces = 1 << 1,
translate_negative_indices = 1 << 2
} |
typedef std::tr1::function<
void(std::size_t, const std::string &)> | info_callback_type |
typedef std::tr1::function<
void(std::size_t, const std::string &)> | warning_callback_type |
typedef std::tr1::function<
void(std::size_t, const std::string &)> | error_callback_type |
typedef std::tr1::function<
void(float_type, float_type,
float_type)> | geometric_vertex_callback_type |
typedef std::tr1::function<
void(float_type, float_type)> | texture_vertex_callback_type |
typedef std::tr1::function<
void(float_type, float_type,
float_type)> | vertex_normal_callback_type |
typedef std::tr1::function<
void(index_type, index_type,
index_type)> | triangular_face_geometric_vertices_callback_type |
typedef std::tr1::function<
void(const index_2_tuple_type &,
const index_2_tuple_type &,
const index_2_tuple_type &)> | triangular_face_geometric_vertices_texture_vertices_callback_type |
typedef std::tr1::function<
void(const index_2_tuple_type &,
const index_2_tuple_type &,
const index_2_tuple_type &)> | triangular_face_geometric_vertices_vertex_normals_callback_type |
typedef std::tr1::function<
void(const index_3_tuple_type &,
const index_3_tuple_type &,
const index_3_tuple_type &)> | triangular_face_geometric_vertices_texture_vertices_vertex_normals_callback_type |
typedef std::tr1::function<
void(index_type, index_type,
index_type, index_type)> | quadrilateral_face_geometric_vertices_callback_type |
typedef std::tr1::function<
void(const index_2_tuple_type &,
const index_2_tuple_type &,
const index_2_tuple_type &,
const index_2_tuple_type &)> | quadrilateral_face_geometric_vertices_texture_vertices_callback_type |
typedef std::tr1::function<
void(const index_2_tuple_type &,
const index_2_tuple_type &,
const index_2_tuple_type &,
const index_2_tuple_type &)> | quadrilateral_face_geometric_vertices_vertex_normals_callback_type |
typedef std::tr1::function<
void(const index_3_tuple_type &,
const index_3_tuple_type &,
const index_3_tuple_type &,
const index_3_tuple_type &)> | quadrilateral_face_geometric_vertices_texture_vertices_vertex_normals_callback_type |
typedef std::tr1::function<
void(index_type, index_type,
index_type)> | polygonal_face_geometric_vertices_begin_callback_type |
typedef std::tr1::function<
void(index_type)> | polygonal_face_geometric_vertices_vertex_callback_type |
typedef std::tr1::function<
void()> | polygonal_face_geometric_vertices_end_callback_type |
typedef std::tr1::function<
void(const index_2_tuple_type &,
const index_2_tuple_type &,
const index_2_tuple_type &)> | polygonal_face_geometric_vertices_texture_vertices_begin_callback_type |
typedef std::tr1::function<
void(const index_2_tuple_type &)> | polygonal_face_geometric_vertices_texture_vertices_vertex_callback_type |
typedef std::tr1::function<
void()> | polygonal_face_geometric_vertices_texture_vertices_end_callback_type |
typedef std::tr1::function<
void(const index_2_tuple_type &,
const index_2_tuple_type &,
const index_2_tuple_type &)> | polygonal_face_geometric_vertices_vertex_normals_begin_callback_type |
typedef std::tr1::function<
void(const index_2_tuple_type &)> | polygonal_face_geometric_vertices_vertex_normals_vertex_callback_type |
typedef std::tr1::function<
void()> | polygonal_face_geometric_vertices_vertex_normals_end_callback_type |
typedef std::tr1::function<
void(const index_3_tuple_type &,
const index_3_tuple_type &,
const index_3_tuple_type &)> | polygonal_face_geometric_vertices_texture_vertices_vertex_normals_begin_callback_type |
typedef std::tr1::function<
void(const index_3_tuple_type &)> | polygonal_face_geometric_vertices_texture_vertices_vertex_normals_vertex_callback_type |
typedef std::tr1::function<
void()> | polygonal_face_geometric_vertices_texture_vertices_vertex_normals_end_callback_type |
typedef std::tr1::function<
void(const std::string &)> | group_name_callback_type |
typedef std::tr1::function<
void(size_type)> | smoothing_group_callback_type |
typedef std::tr1::function<
void(const std::string &)> | object_name_callback_type |
typedef std::tr1::function<
void(const std::string &)> | material_library_callback_type |
typedef std::tr1::function<
void(const std::string &)> | material_name_callback_type |
typedef std::tr1::function<
void(const std::string &)> | comment_callback_type |
| typedef int | flags_type |
Public Member Functions |
| | obj_parser (flags_type flags=0) |
| 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 | geometric_vertex_callback (const geometric_vertex_callback_type &geometric_vertex_callback) |
| void | texture_vertex_callback (const texture_vertex_callback_type &texture_vertex_callback) |
| void | vertex_normal_callback (const vertex_normal_callback_type &vertex_normal_callback) |
| void | face_callbacks (const triangular_face_geometric_vertices_callback_type &triangular_face_geometric_vertices_callback, const triangular_face_geometric_vertices_texture_vertices_callback_type &triangular_face_geometric_vertices_texture_vertices_callback, const triangular_face_geometric_vertices_vertex_normals_callback_type &triangular_face_geometric_vertices_vertex_normals_callback, const triangular_face_geometric_vertices_texture_vertices_vertex_normals_callback_type &triangular_face_geometric_vertices_texture_vertices_vertex_normals_callback, const quadrilateral_face_geometric_vertices_callback_type &quadrilateral_face_geometric_vertices_callback, const quadrilateral_face_geometric_vertices_texture_vertices_callback_type &quadrilateral_face_geometric_vertices_texture_vertices_callback, const quadrilateral_face_geometric_vertices_vertex_normals_callback_type &quadrilateral_face_geometric_vertices_vertex_normals_callback, const quadrilateral_face_geometric_vertices_texture_vertices_vertex_normals_callback_type &quadrilateral_face_geometric_vertices_texture_vertices_vertex_normals_callback, const polygonal_face_geometric_vertices_begin_callback_type &polygonal_face_geometric_vertices_begin_callback, const polygonal_face_geometric_vertices_vertex_callback_type &polygonal_face_geometric_vertices_vertex_callback, const polygonal_face_geometric_vertices_end_callback_type &polygonal_face_geometric_vertices_end_callback, const polygonal_face_geometric_vertices_texture_vertices_begin_callback_type &polygonal_face_geometric_vertices_texture_vertices_begin_callback, const polygonal_face_geometric_vertices_texture_vertices_vertex_callback_type &polygonal_face_geometric_vertices_texture_vertices_vertex_callback, const polygonal_face_geometric_vertices_texture_vertices_end_callback_type &polygonal_face_geometric_vertices_texture_vertices_end_callback, const polygonal_face_geometric_vertices_vertex_normals_begin_callback_type &polygonal_face_geometric_vertices_vertex_normals_begin_callback, const polygonal_face_geometric_vertices_vertex_normals_vertex_callback_type &polygonal_face_geometric_vertices_vertex_normals_vertex_callback, const polygonal_face_geometric_vertices_vertex_normals_end_callback_type &polygonal_face_geometric_vertices_vertex_normals_end_callback, const polygonal_face_geometric_vertices_texture_vertices_vertex_normals_begin_callback_type &polygonal_face_geometric_vertices_texture_vertices_vertex_normals_begin_callback, const polygonal_face_geometric_vertices_texture_vertices_vertex_normals_vertex_callback_type &polygonal_face_geometric_vertices_texture_vertices_vertex_normals_vertex_callback, const polygonal_face_geometric_vertices_texture_vertices_vertex_normals_end_callback_type &polygonal_face_geometric_vertices_texture_vertices_vertex_normals_end_callback) |
| void | group_name_callback (const group_name_callback_type &group_name_callback) |
| void | smoothing_group_callback (const smoothing_group_callback_type &smoothing_group_callback) |
| void | object_name_callback (const object_name_callback_type &object_name_callback) |
| void | material_library_callback (const material_library_callback_type &material_library_callback) |
| void | material_name_callback (const material_name_callback_type &material_name_callback) |
| void | comment_callback (const comment_callback_type &comment_callback) |
| bool | parse (std::istream &istream) |
| bool | parse (const std::string &filename) |