00001 #pragma ident "$Id: Line.hpp 1644 2009-01-27 19:26:14Z ckiesch $"
00002
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef VDRAW_LINE_H
00029 #define VDRAW_LINE_H
00030
00031 #include<string>
00032 #include<list>
00033
00034 #include "StrokeStyle.hpp"
00035 #include "Path.hpp"
00036 #include "Markable.hpp"
00037 #include "Marker.hpp"
00038
00039 namespace vdraw
00040 {
00043
00049 class Line: public Path, public Markable {
00050
00051 public:
00052
00060 Line(double ix1, double iy1, double ix2, double iy2);
00061
00071 Line(double ix1, double iy1, double ix2, double iy2,
00072 const StrokeStyle& istyle);
00073
00078 Line(const Path& iPath)
00079 : Path(iPath), Markable()
00080 {}
00081
00087 Line(const Path& iPath, const StrokeStyle& istyle)
00088 : Path(iPath), Markable(istyle)
00089 {}
00090
00100 Line(const Path& iPath, const Marker& imarker)
00101 : Path(iPath), Markable(imarker)
00102 {}
00103
00110 Line(const Path& iPath, const StrokeStyle& istyle, const Marker& imarker)
00111 : Path(iPath), Markable(istyle,imarker)
00112 {}
00113
00114 protected:
00115
00116 private:
00117
00118 };
00119
00121
00122 }
00123
00124 #endif //VDRAW_LINE_H
00125