00001
00002
00003
00004
00005
00006
00007 #ifndef GHOST_POLYGON_H
00008 #define GHOST_POLYGON_H
00009
00010 #include <QBrush>
00011 #include <QPen>
00012 #include <QPolygon>
00013
00015 class GhostPolygon
00016 {
00017 public:
00019 GhostPolygon(const QPolygonF &polygon,
00020 const QPen &pen,
00021 const QBrush &brush);
00022 ~GhostPolygon();
00023
00025 GhostPolygon(const GhostPolygon &other);
00026
00028 GhostPolygon &operator=(const GhostPolygon &other);
00029
00031 QBrush brush() const;
00032
00034 QPen pen() const;
00035
00037 QPolygonF polygon() const;
00038
00039 private:
00040 GhostPolygon();
00041
00042 QPolygonF m_polygon;
00043 QPen m_pen;
00044 QBrush m_brush;
00045 };
00046
00047 #endif // GHOST_POLYGON_H