scene Class Reference

Collaboration diagram for scene:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 scene ()
void load_model ()
 Method called only once at the beginning (load off files ...).
void draw_scene ()
 Method called at every frame.
void draw_debug (cpe::mesh mesh_current)
 Draw mesh in debug mode (draw indices).
void set_is_debug_mode (bool)
void set_is_debug_vertex_index (bool)
void set_is_debug_face_index (bool)
void set_is_debug_inverted_normal (bool)
void set_is_debug_vertex_point (bool)
void set_glwidget (glwidget *p_widget)

Private Member Functions

void creation_damier ()
void affichage_damier ()
void draw_index (const std::vector< cpe::v3 > &x)
void draw_index_face (const cpe::mesh &mesh, const std::vector< cpe::v3 > &translate)

Private Attributes

cpe::mesh mesh_0
std::vector< cpe::v3mesh_0_normal
cpe::mesh mesh_1
std::vector< cpe::v3mesh_1_normal
cpe::mesh mesh_plan
std::vector< cpe::v3mesh_plan_normal
cpe::mesh my_mesh
std::vector< cpe::v3my_mesh_normal
bool is_debug_mode
bool is_debug_vertex_index
bool is_debug_face_index
bool is_debug_inverted_normal
bool is_debug_draw_vertex
glwidgetp_widget

Constructor & Destructor Documentation

scene::scene (  ) 

Member Function Documentation

void scene::affichage_damier (  )  [private]

References mesh_plan, and mesh_plan_normal.

Referenced by draw_scene().

void scene::creation_damier (  )  [private]

References mesh_plan, mesh_plan_normal, cpe::mesh::normal_vertex(), cpe::mesh::scale(), and cpe::mesh::scale_unity().

Referenced by load_model().

Here is the call graph for this function:

void scene::draw_debug ( cpe::mesh  mesh_current  ) 
void scene::draw_index ( const std::vector< cpe::v3 > &  x  )  [private]

References glwidget::draw_text(), is_debug_vertex_index, p_widget, and cpe::string_converter::to_string().

Referenced by draw_debug().

Here is the call graph for this function:

void scene::draw_index_face ( const cpe::mesh mesh,
const std::vector< cpe::v3 > &  translate 
) [private]

References glwidget::draw_text(), cpe::mesh::get_vertex(), is_debug_face_index, p_widget, and cpe::mesh::triangle_number().

Referenced by draw_debug().

Here is the call graph for this function:

void scene::draw_scene (  ) 

Method called at every frame.

References affichage_damier(), cpe::opengl_drawer::draw(), mesh_0, mesh_0_normal, mesh_1, and mesh_1_normal.

Referenced by glwidget::paintGL().

Here is the call graph for this function:

void scene::load_model (  ) 

Method called only once at the beginning (load off files ...).

References cpe::mesh::apply(), creation_damier(), cpe::mesh::load_off_file(), mesh_0, mesh_0_normal, mesh_1, mesh_1_normal, cpe::mesh::normal_vertex(), cpe::mesh::scale(), cpe::mesh::scale_unity(), and cpe::mesh::translate().

Referenced by glwidget::initializeGL().

Here is the call graph for this function:

void scene::set_glwidget ( glwidget p_widget  ) 

References p_widget.

Referenced by glwidget::glwidget().

void scene::set_is_debug_face_index ( bool  value  ) 
void scene::set_is_debug_inverted_normal ( bool  value  ) 
void scene::set_is_debug_mode ( bool  value  ) 
void scene::set_is_debug_vertex_index ( bool  value  ) 
void scene::set_is_debug_vertex_point ( bool  value  ) 

Member Data Documentation

bool scene::is_debug_mode [private]

Referenced by draw_scene(), and load_model().

std::vector<cpe::v3> scene::mesh_0_normal [private]

Referenced by draw_scene(), and load_model().

Referenced by draw_scene(), and load_model().

std::vector<cpe::v3> scene::mesh_1_normal [private]

Referenced by draw_scene(), and load_model().

std::vector<cpe::v3> scene::mesh_plan_normal [private]
std::vector<cpe::v3> scene::my_mesh_normal [private]

The documentation for this class was generated from the following files:
Generated on Tue Nov 22 12:05:42 2011 by  doxygen 1.6.3