Scene.h

Aller à la documentation de ce fichier.
00001 /*
00002  * Scene.h : Scene 3D
00003  * Copyright (C) 2007 Florence Zara, LIRIS
00004  *               florence.zara@liris.univ-lyon1.fr
00005  *               http://liris.cnrs.fr/florence.zara/
00006  *
00007  *
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU Lesser General Public License as published
00010  * by the Free Software Foundation; either version 2.1 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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

Généré le Sat Jan 19 15:49:32 2008 pour Animation 3D par  doxygen 1.5.1