
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 |
TP 5ETI - CPE Lyon - 2011/2012
| scene::scene | ( | ) |
References dt, framerate, is_grid, is_pause, is_texture, t_courant, t_ecart, t_precedent, and timer.
| 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().

| void scene::disturb | ( | ) |
| void scene::draw_scene | ( | ) |
Method called at every frame.
References affichage_damier(), cpe::spring_mesh::apply_force(), cpe::spring_mesh::compute_force(), cpe::opengl_drawer::draw(), dt, framerate, is_grid, is_pause, is_texture, mesh_draw, mesh_normal, cpe::mesh::normal_vertex(), smesh, cpe::spring_mesh::store_vertices(), t_courant, t_ecart, t_precedent, timer, and cpe::spring_mesh::to_mesh().
Referenced by glwidget::paintGL().

| 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().

| void scene::restart | ( | ) |
References cpe::spring_mesh::get_damping(), cpe::spring_mesh::get_K_bending(), cpe::spring_mesh::get_K_shear(), cpe::spring_mesh::get_K_structural(), cpe::spring_mesh::size(), and smesh.
Referenced by Window::restart_button_clicked().

| 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().

| void scene::set_K_shear | ( | double & | _K_shear | ) |
References cpe::spring_mesh::get_K_shear(), and smesh.
Referenced by Window::K_shear_text_edited().

| void scene::set_K_structural | ( | double & | _K_structural | ) |
References cpe::spring_mesh::get_K_structural(), and smesh.
Referenced by Window::K_structural_text_edited().

| void scene::set_mu | ( | double | _mu | ) |
References cpe::spring_mesh::get_damping(), and smesh.
Referenced by Window::mu_text_edited().

| void scene::set_pause | ( | const bool & | is_pause | ) |
References is_pause.
Referenced by Window::pause_button_clicked().
| void scene::set_size | ( | int | _size | ) |
References 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 Window::size_text_edited().

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().
cpe::mesh scene::mesh_draw [private] |
Referenced by draw_scene().
std::vector<double> scene::mesh_normal [private] |
Referenced by draw_scene().
cpe::mesh scene::mesh_plan [private] |
Referenced by affichage_damier(), and creation_damier().
std::vector<double> scene::mesh_plan_normal [private] |
Referenced by affichage_damier(), and creation_damier().
cpe::spring_mesh scene::smesh [private] |
Referenced by draw_scene(), load_model(), restart(), set_K_bending(), set_K_shear(), set_K_structural(), set_mu(), and set_size().
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().
1.6.3