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

segment.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 : segment.h / 00008 // / 00009 // Creation : 20/11/2005 / 00010 // / 00011 // Description : La classe Segment permet de spécifier et de dessiner des segments. / 00012 // / 00013 // Auteurs : - Guitteny Fabrice / 00014 // - Idiart Baptiste / 00015 // - Le Goff Erwan / 00016 // / 00018 00019 #ifndef SEGMENT_H 00020 #define SEGMENT_H 00021 00022 #include<iostream> 00023 #include <qpainter.h> 00024 #include "primitive.h" 00025 using namespace std; 00026 00034 00035 // Classe Segment // 00037 00038 class Segment : public Primitive 00039 { 00040 public : 00041 00043 Segment(); 00044 00049 Segment(Point3D * pA, Point3D * pB); 00050 00054 Segment(const Segment& seg); 00055 00056 // destructeur 00057 ~Segment() {}; 00058 00062 virtual void display(QPainter& paint); 00063 00067 virtual void toXML(QDomElement &elem); 00068 00073 virtual void setPrimitive(QPoint & refPoint, QPoint & modifPoint); 00074 00078 Point3D * getPointA(); 00079 00083 Point3D * getPointB(); 00084 00088 void setPointA(Point3D * pA); 00089 00093 void setPointB(Point3D * pB); 00094 00095 }; 00096 00097 #endif

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