rock_widget_collection  0.1
PolygonItem.h
Go to the documentation of this file.
1 /*
2  * File: PolygonItem.h
3  * Author: blueck
4  *
5  * Created on 29. Juni 2010, 12:06
6  */
7 
8 #include "PolylineItem.h"
9 
10 #ifndef POLYGONITEM_H
11 #define POLYGONITEM_H
12 
16 class PolygonItem : public PolylineItem
17 {
18 public:
26  PolygonItem(const QColor &color, int groupNr, const QList<QPoint> &points);
27 
31  virtual ~PolygonItem();
32 
37  DrawType getType() {return Polygon;};
38 
42  void draw(QPainter* painter, QRectF &source, QRectF &target);
43 
44 };
45 
46 #endif /* POLYGONITEM_H */
47 
void draw(QPainter *painter, QRectF &source, QRectF &target)
Definition: PolygonItem.cc:23
DrawType
Definition: DrawItem.h:19
DrawType getType()
Definition: PolygonItem.h:37
PolygonItem(const QColor &color, int groupNr, const QList< QPoint > &points)
Definition: PolygonItem.cc:14
virtual ~PolygonItem()
Definition: PolygonItem.cc:19
int groupNr
Definition: DrawItem.h:169
QList< QPoint > points
Definition: PolylineItem.h:76
QColor color
Definition: DrawItem.h:184