Noeuds.h

Aller à la documentation de ce fichier.
00001 /*
00002  * Noeuds.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 
00023 
00029 #ifndef NOEUDS_H
00030 #define NOEUDS_H
00031 
00032 
00034 #include <list>
00035 #include <string>
00036 #include <iostream>
00037 
00039 #ifndef WIN32
00040 #include <GL/gl.h>
00041 #include <GL/glu.h>
00042 #endif
00043 
00044 #include "Donnees.h"
00045 
00049 class Noeud 
00050 {
00051 public:
00052         
00054         Noeud() {}
00055         
00057         void setName(const char* n) {_name = std::string(n); }
00058         
00060         const std::string &getName() const {return _name;}
00061         
00063         virtual void affiche() = 0;
00064         
00066         virtual void init() = 0;
00067                 
00069         virtual void Simulation(Coord gravite, float viscosite, int Tps) = 0;
00070         
00072         virtual ~Noeud(){};
00073         
00074         
00075 public:
00076                 
00078                 std::string _name;  
00079         
00080 };
00081 
00082 
00083 
00084 
00085 #endif

Généré le Thu Jan 24 19:11:42 2008 pour Animation 3D par  doxygen 1.5.1