diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-17 19:19:38 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-17 19:19:38 +0200 |
| commit | 2778d2d6c0821a7a1622ca4312416739525781be (patch) | |
| tree | 8589cab180728a024b8bd29a01fd9a5e85e9bce4 /polygon.h | |
| parent | 31eb4d5361026dad3107dc647ac7c3ff63f50c7b (diff) | |
| download | GUI_SS2015-2778d2d6c0821a7a1622ca4312416739525781be.tar.gz GUI_SS2015-2778d2d6c0821a7a1622ca4312416739525781be.zip | |
Add different shapes for drawing
Diffstat (limited to 'polygon.h')
| -rw-r--r-- | polygon.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/polygon.h b/polygon.h new file mode 100644 index 0000000..54c8c4e --- /dev/null +++ b/polygon.h @@ -0,0 +1,22 @@ +#ifndef POLYGON_H +#define POLYGON_H + +#include <QPolygon> + +#include "line.h" + +class Polygon : public Line +{ +public: + Polygon(); + + // Line interface +public: + virtual bool isHit(const QPoint &clickPoint); + virtual void draw(QPainter *painter); + +private: + QPolygon m_polygon; +}; + +#endif // POLYGON_H |
