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 set_dt (double _dt)
void disturb ()
void set_pause (const bool &is_pause)
void set_mu (double _mu)
void set_K_structural (double &_K_structural)
void set_K_shear (double &_K_shear)
void set_K_bending (double &_K_bending)
void set_size (int _size)
void restart ()
void set_is_texture (bool _is_texture)
void set_is_grid (bool _is_grid)

Private Member Functions

void creation_damier ()
void affichage_damier ()

Private Attributes

cpe::mesh mesh_plan
std::vector< double > mesh_plan_normal
double dt
QTime timer
double t_courant
double t_precedent
double t_ecart
int framerate
bool is_pause
cpe::spring_mesh smesh
cpe::mesh mesh_draw
std::vector< double > mesh_normal
bool is_grid
bool is_texture

Detailed Description

TP 5ETI - CPE Lyon - 2011/2012


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(), cpe::mesh::scale_unity(), and cpe::mesh::translate().

Referenced by load_model().

Here is the call graph for this function:

void scene::disturb (  ) 
void scene::draw_scene (  ) 
void scene::load_model (  ) 

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

References creation_damier(), cpe::spring_mesh::get_damping(), cpe::spring_mesh::get_K_bending(), cpe::spring_mesh::get_K_shear(), cpe::spring_mesh::get_K_structural(), and smesh.

Referenced by glwidget::initializeGL().

Here is the call graph for this function:

void scene::restart (  ) 
void scene::set_dt ( double  _dt  ) 

References dt.

Referenced by Window::dt_text_edited().

void scene::set_is_grid ( bool  _is_grid  ) 

References is_grid.

Referenced by Window::set_grid().

void scene::set_is_texture ( bool  _is_texture  ) 

References is_texture.

Referenced by Window::set_texture().

void scene::set_K_bending ( double &  _K_bending  ) 

References cpe::spring_mesh::get_K_bending(), and smesh.

Referenced by Window::K_bending_text_edited().

Here is the call graph for this function:

void scene::set_K_shear ( double &  _K_shear  ) 

References cpe::spring_mesh::get_K_shear(), and smesh.

Referenced by Window::K_shear_text_edited().

Here is the call graph for this function:

void scene::set_K_structural ( double &  _K_structural  ) 

References cpe::spring_mesh::get_K_structural(), and smesh.

Referenced by Window::K_structural_text_edited().

Here is the call graph for this function:

void scene::set_mu ( double  _mu  ) 

References cpe::spring_mesh::get_damping(), and smesh.

Referenced by Window::mu_text_edited().

Here is the call graph for this function:

void scene::set_pause ( const bool &  is_pause  ) 

References is_pause.

Referenced by Window::pause_button_clicked().

void scene::set_size ( int  _size  ) 

Member Data Documentation

double scene::dt [private]

Referenced by draw_scene(), scene(), and set_dt().

int scene::framerate [private]

Referenced by draw_scene(), and scene().

bool scene::is_grid [private]

Referenced by draw_scene(), scene(), and set_is_grid().

bool scene::is_pause [private]

Referenced by draw_scene(), scene(), and set_pause().

bool scene::is_texture [private]

Referenced by draw_scene(), scene(), and set_is_texture().

Referenced by draw_scene().

std::vector<double> scene::mesh_normal [private]

Referenced by draw_scene().

std::vector<double> scene::mesh_plan_normal [private]
double scene::t_courant [private]

Referenced by draw_scene(), and scene().

double scene::t_ecart [private]

Referenced by draw_scene(), and scene().

double scene::t_precedent [private]

Referenced by draw_scene(), and scene().

QTime scene::timer [private]

Referenced by draw_scene(), and scene().


The documentation for this class was generated from the following files:
Generated on Thu Nov 17 16:15:21 2011 by  doxygen 1.6.3