Public Types | Public Member Functions | Private Attributes
obj::obj_parser Class Reference

#include <obj_parser.hpp>

List of all members.

Public Types

enum  { parse_blank_lines_as_comment = 1 << 0, triangulate_faces = 1 << 1, translate_negative_indices = 1 << 2 }
typedef std::tr1::function
< void(const std::string &)> 
comment_callback_type
typedef std::tr1::function
< void(std::size_t, const
std::string &)> 
error_callback_type
typedef int flags_type
typedef std::tr1::function
< void(float_type, float_type,
float_type)> 
geometric_vertex_callback_type
typedef std::tr1::function
< void(const std::string &)> 
group_name_callback_type
typedef std::tr1::function
< void(std::size_t, const
std::string &)> 
info_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 &)> 
object_name_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()> 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()> polygonal_face_geometric_vertices_texture_vertices_end_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(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()> polygonal_face_geometric_vertices_texture_vertices_vertex_normals_end_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(index_type)> 
polygonal_face_geometric_vertices_vertex_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()> polygonal_face_geometric_vertices_vertex_normals_end_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(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_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(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(size_type)> 
smoothing_group_callback_type
typedef std::tr1::function
< void(float_type, float_type)> 
texture_vertex_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_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(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(float_type, float_type,
float_type)> 
vertex_normal_callback_type
typedef std::tr1::function
< void(std::size_t, const
std::string &)> 
warning_callback_type

Public Member Functions

void comment_callback (const comment_callback_type &comment_callback)
void error_callback (const error_callback_type &error_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 geometric_vertex_callback (const geometric_vertex_callback_type &geometric_vertex_callback)
void group_name_callback (const group_name_callback_type &group_name_callback)
void info_callback (const info_callback_type &info_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)
 obj_parser (flags_type flags=0)
void object_name_callback (const object_name_callback_type &object_name_callback)
bool parse (std::istream &istream)
bool parse (const std::string &filename)
void smoothing_group_callback (const smoothing_group_callback_type &smoothing_group_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 warning_callback (const warning_callback_type &warning_callback)

Private Attributes

comment_callback_type comment_callback_
error_callback_type error_callback_
flags_type flags_
geometric_vertex_callback_type geometric_vertex_callback_
group_name_callback_type group_name_callback_
info_callback_type info_callback_
material_library_callback_type material_library_callback_
material_name_callback_type material_name_callback_
object_name_callback_type object_name_callback_
polygonal_face_geometric_vertices_begin_callback_type polygonal_face_geometric_vertices_begin_callback_
polygonal_face_geometric_vertices_end_callback_type polygonal_face_geometric_vertices_end_callback_
polygonal_face_geometric_vertices_texture_vertices_begin_callback_type polygonal_face_geometric_vertices_texture_vertices_begin_callback_
polygonal_face_geometric_vertices_texture_vertices_end_callback_type polygonal_face_geometric_vertices_texture_vertices_end_callback_
polygonal_face_geometric_vertices_texture_vertices_vertex_callback_type polygonal_face_geometric_vertices_texture_vertices_vertex_callback_
polygonal_face_geometric_vertices_texture_vertices_vertex_normals_begin_callback_type polygonal_face_geometric_vertices_texture_vertices_vertex_normals_begin_callback_
polygonal_face_geometric_vertices_texture_vertices_vertex_normals_end_callback_type polygonal_face_geometric_vertices_texture_vertices_vertex_normals_end_callback_
polygonal_face_geometric_vertices_texture_vertices_vertex_normals_vertex_callback_type polygonal_face_geometric_vertices_texture_vertices_vertex_normals_vertex_callback_
polygonal_face_geometric_vertices_vertex_callback_type polygonal_face_geometric_vertices_vertex_callback_
polygonal_face_geometric_vertices_vertex_normals_begin_callback_type polygonal_face_geometric_vertices_vertex_normals_begin_callback_
polygonal_face_geometric_vertices_vertex_normals_end_callback_type polygonal_face_geometric_vertices_vertex_normals_end_callback_
polygonal_face_geometric_vertices_vertex_normals_vertex_callback_type polygonal_face_geometric_vertices_vertex_normals_vertex_callback_
quadrilateral_face_geometric_vertices_callback_type quadrilateral_face_geometric_vertices_callback_
quadrilateral_face_geometric_vertices_texture_vertices_callback_type quadrilateral_face_geometric_vertices_texture_vertices_callback_
quadrilateral_face_geometric_vertices_texture_vertices_vertex_normals_callback_type quadrilateral_face_geometric_vertices_texture_vertices_vertex_normals_callback_
quadrilateral_face_geometric_vertices_vertex_normals_callback_type quadrilateral_face_geometric_vertices_vertex_normals_callback_
smoothing_group_callback_type smoothing_group_callback_
texture_vertex_callback_type texture_vertex_callback_
triangular_face_geometric_vertices_callback_type triangular_face_geometric_vertices_callback_
triangular_face_geometric_vertices_texture_vertices_callback_type triangular_face_geometric_vertices_texture_vertices_callback_
triangular_face_geometric_vertices_texture_vertices_vertex_normals_callback_type triangular_face_geometric_vertices_texture_vertices_vertex_normals_callback_
triangular_face_geometric_vertices_vertex_normals_callback_type triangular_face_geometric_vertices_vertex_normals_callback_
vertex_normal_callback_type vertex_normal_callback_
warning_callback_type warning_callback_

Detailed Description

Definition at line 14 of file obj_parser.hpp.


Member Typedef Documentation

typedef std::tr1::function<void (const std::string&)> obj::obj_parser::comment_callback_type

Definition at line 48 of file obj_parser.hpp.

typedef std::tr1::function<void (std::size_t, const std::string&)> obj::obj_parser::error_callback_type

Definition at line 19 of file obj_parser.hpp.

Definition at line 49 of file obj_parser.hpp.

Definition at line 20 of file obj_parser.hpp.

typedef std::tr1::function<void (const std::string&)> obj::obj_parser::group_name_callback_type

Definition at line 43 of file obj_parser.hpp.

typedef std::tr1::function<void (std::size_t, const std::string&)> obj::obj_parser::info_callback_type

Definition at line 17 of file obj_parser.hpp.

typedef std::tr1::function<void (const std::string&)> obj::obj_parser::material_library_callback_type

Definition at line 46 of file obj_parser.hpp.

typedef std::tr1::function<void (const std::string&)> obj::obj_parser::material_name_callback_type

Definition at line 47 of file obj_parser.hpp.

typedef std::tr1::function<void (const std::string&)> obj::obj_parser::object_name_callback_type

Definition at line 45 of file obj_parser.hpp.

Definition at line 31 of file obj_parser.hpp.

Definition at line 33 of file obj_parser.hpp.

Definition at line 34 of file obj_parser.hpp.

Definition at line 36 of file obj_parser.hpp.

Definition at line 35 of file obj_parser.hpp.

Definition at line 40 of file obj_parser.hpp.

Definition at line 42 of file obj_parser.hpp.

Definition at line 41 of file obj_parser.hpp.

Definition at line 32 of file obj_parser.hpp.

Definition at line 37 of file obj_parser.hpp.

Definition at line 39 of file obj_parser.hpp.

Definition at line 38 of file obj_parser.hpp.

Definition at line 27 of file obj_parser.hpp.

Definition at line 28 of file obj_parser.hpp.

Definition at line 30 of file obj_parser.hpp.

Definition at line 29 of file obj_parser.hpp.

typedef std::tr1::function<void (size_type)> obj::obj_parser::smoothing_group_callback_type

Definition at line 44 of file obj_parser.hpp.

Definition at line 21 of file obj_parser.hpp.

Definition at line 23 of file obj_parser.hpp.

Definition at line 24 of file obj_parser.hpp.

Definition at line 26 of file obj_parser.hpp.

Definition at line 25 of file obj_parser.hpp.

Definition at line 22 of file obj_parser.hpp.

typedef std::tr1::function<void (std::size_t, const std::string&)> obj::obj_parser::warning_callback_type

Definition at line 18 of file obj_parser.hpp.


Member Enumeration Documentation

anonymous enum
Enumerator:
parse_blank_lines_as_comment 
triangulate_faces 
translate_negative_indices 

Definition at line 50 of file obj_parser.hpp.


Constructor & Destructor Documentation

obj::obj_parser::obj_parser ( flags_type  flags = 0) [inline]

Definition at line 109 of file obj_parser.hpp.


Member Function Documentation

void obj::obj_parser::comment_callback ( const comment_callback_type comment_callback) [inline]

Definition at line 199 of file obj_parser.hpp.

void obj::obj_parser::error_callback ( const error_callback_type error_callback) [inline]

Definition at line 130 of file obj_parser.hpp.

void obj::obj_parser::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 
) [inline]

Definition at line 150 of file obj_parser.hpp.

void obj::obj_parser::geometric_vertex_callback ( const geometric_vertex_callback_type geometric_vertex_callback) [inline]

Definition at line 135 of file obj_parser.hpp.

void obj::obj_parser::group_name_callback ( const group_name_callback_type group_name_callback) [inline]

Definition at line 174 of file obj_parser.hpp.

void obj::obj_parser::info_callback ( const info_callback_type info_callback) [inline]

Definition at line 120 of file obj_parser.hpp.

void obj::obj_parser::material_library_callback ( const material_library_callback_type material_library_callback) [inline]

Definition at line 189 of file obj_parser.hpp.

void obj::obj_parser::material_name_callback ( const material_name_callback_type material_name_callback) [inline]

Definition at line 194 of file obj_parser.hpp.

void obj::obj_parser::object_name_callback ( const object_name_callback_type object_name_callback) [inline]

Definition at line 184 of file obj_parser.hpp.

bool obj::obj_parser::parse ( std::istream &  istream)

Definition at line 6 of file obj_parser.cpp.

bool obj::obj_parser::parse ( const std::string &  filename) [inline]

Definition at line 114 of file obj_parser.hpp.

void obj::obj_parser::smoothing_group_callback ( const smoothing_group_callback_type smoothing_group_callback) [inline]

Definition at line 179 of file obj_parser.hpp.

void obj::obj_parser::texture_vertex_callback ( const texture_vertex_callback_type texture_vertex_callback) [inline]

Definition at line 140 of file obj_parser.hpp.

void obj::obj_parser::vertex_normal_callback ( const vertex_normal_callback_type vertex_normal_callback) [inline]

Definition at line 145 of file obj_parser.hpp.

void obj::obj_parser::warning_callback ( const warning_callback_type warning_callback) [inline]

Definition at line 125 of file obj_parser.hpp.


Member Data Documentation

Definition at line 104 of file obj_parser.hpp.

Definition at line 75 of file obj_parser.hpp.

Definition at line 72 of file obj_parser.hpp.

Definition at line 76 of file obj_parser.hpp.

Definition at line 99 of file obj_parser.hpp.

Definition at line 73 of file obj_parser.hpp.

Definition at line 102 of file obj_parser.hpp.

Definition at line 103 of file obj_parser.hpp.

Definition at line 101 of file obj_parser.hpp.

Definition at line 87 of file obj_parser.hpp.

Definition at line 89 of file obj_parser.hpp.

Definition at line 90 of file obj_parser.hpp.

Definition at line 92 of file obj_parser.hpp.

Definition at line 91 of file obj_parser.hpp.

Definition at line 96 of file obj_parser.hpp.

Definition at line 98 of file obj_parser.hpp.

Definition at line 97 of file obj_parser.hpp.

Definition at line 88 of file obj_parser.hpp.

Definition at line 93 of file obj_parser.hpp.

Definition at line 95 of file obj_parser.hpp.

Definition at line 94 of file obj_parser.hpp.

Definition at line 83 of file obj_parser.hpp.

Definition at line 84 of file obj_parser.hpp.

Definition at line 86 of file obj_parser.hpp.

Definition at line 85 of file obj_parser.hpp.

Definition at line 100 of file obj_parser.hpp.

Definition at line 77 of file obj_parser.hpp.

Definition at line 79 of file obj_parser.hpp.

Definition at line 80 of file obj_parser.hpp.

Definition at line 82 of file obj_parser.hpp.

Definition at line 81 of file obj_parser.hpp.

Definition at line 78 of file obj_parser.hpp.

Definition at line 74 of file obj_parser.hpp.


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


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