00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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