00001
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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
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
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