scene.hpp

Go to the documentation of this file.
00001 
00005 #ifndef _SCENE_HPP_
00006 #define _SCENE_HPP_
00007 
00008 #include <matrix3.hpp>
00009 #include <v3.hpp>
00010 #include <mesh.hpp>
00011 #include <spring_mesh.hpp>
00012 #include <QTime>
00013 
00014 #include <vector>
00015 
00016 class scene
00017 {
00018 public:
00019 
00020     scene();
00021 
00023     void load_model();
00025     void draw_scene();
00026 
00027 
00028 //    void set_K(double _K);
00029     void set_dt(double _dt);
00030     void disturb();
00031     void set_pause(const bool& is_pause);
00032 //    void set_force_visible(const bool& is_visible);
00033     void set_mu(double _mu);
00034 
00035     void set_K_structural(double& _K_structural);
00036     void set_K_shear(double& _K_shear);
00037     void set_K_bending(double& _K_bending);
00038     void set_size(int _size);
00039     void restart();
00040 
00041     void set_is_texture(bool _is_texture);
00042     void set_is_grid(bool _is_grid);
00043 
00044 private:
00045 
00046     cpe::mesh mesh_plan;
00047     std::vector<double> mesh_plan_normal;
00048 
00049     void creation_damier();
00050     void affichage_damier();
00051 
00052 
00053     double dt;
00054 
00055 
00056     QTime timer;
00057     double t_courant;
00058     double t_precedent;
00059     double t_ecart;
00060     int framerate;
00061 
00062 //    cpe::mesh sphere;
00063 //    std::vector<double> sphere_normal;
00064 
00065     bool is_pause;
00066 //    bool is_force;
00067     cpe::spring_mesh smesh;
00068     cpe::mesh mesh_draw;
00069     std::vector<double> mesh_normal;
00070 
00071     bool is_grid;
00072     bool is_texture;
00073 
00074 
00075 };
00076 
00077 #endif
Generated on Thu Nov 17 16:15:16 2011 by  doxygen 1.6.3