Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

bezier.h

Go to the documentation of this file.
00001 00003 00004 // / 00005 // Projet : Générateur de cylindres généralisés / 00006 // / 00007 // Nom du fichier : bezier.h / 00008 // / 00009 // Creation : 20/11/2005 / 00010 // / 00011 // Description : La classe Bezier dessine des béziers cubiques. / 00012 // / 00013 // Auteurs : - Guitteny Fabrice / 00014 // - Idiart Baptiste / 00015 // - Le Goff Erwan / 00016 // / 00018 00019 #ifndef BEZIER_H 00020 #define BEZIER_H 00021 00022 #include<iostream> 00023 #include <qpainter.h> 00024 #include <vector> 00025 #include "primitive.h" 00026 00027 using namespace std; 00028 00036 00037 // Classe Bezier // 00039 00040 class Bezier : public Primitive 00041 { 00042 public : 00043 00045 Bezier(); 00046 00050 Bezier(const vector<Point3D *>& pointsList); 00051 00055 Bezier(const Bezier& bez); 00056 00057 // destructeur 00058 ~Bezier() {}; 00059 00063 virtual void display(QPainter& paint); 00064 00069 virtual void setPrimitive(QPoint & refPoint, QPoint & modifPoint); 00070 00074 virtual void toXML(QDomElement &elem); 00075 00079 vector<Point3D *> getCtrlPoints() const; 00080 00084 void addPoint(Point3D * point); 00085 00090 void addPointPosI(Point3D *point, const unsigned int pos); 00091 00092 }; 00093 00094 #endif 00095

Generated on Tue Nov 29 21:58:58 2005 for CylinderGenerator by doxygen 1.3.7