00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00028 #ifndef SCENE_H
00029 #define SCENE_H
00030
00031
00033 #include <list>
00034 #include <string>
00035 #include <iostream>
00036
00038 #include <GL/gl.h>
00039 #include <GL/glu.h>
00040
00041
00042
00044 #include "Noeuds.h"
00045 #include "Donnees.h"
00046
00050 typedef std::list<Noeud*> ListeNoeuds;
00051
00052
00056 class Scene
00057 {
00058 public:
00059
00061 Scene(std::string Fichier_Param);
00062
00064 void attache(Noeud *n);
00065
00067 void getName();
00068
00070 void Param(std::string Fichier_Param);
00071
00073 void setGravite(Coord g);
00074
00076 void setVisco(float visco);
00077
00079 void init_animation();
00080
00082 void affiche();
00083
00085 void Simulation(int Tps);
00086
00088 virtual ~Scene(){};
00089
00090
00091 public:
00092
00094 ListeNoeuds _enfants;
00095
00097 Coord _g;
00098
00100 float _visco;
00101
00103 int _nb_iter;
00104
00105 };
00106
00107
00108 #endif