rock_widget_collection  0.1
GraphicsPointsItem.h
Go to the documentation of this file.
1 #ifndef GRAPHICSPOINTSITEM_H__
2 #define GRAPHICSPOINTSITEM_H__
3 
4 #include <QtGui>
5 #include <QtCore>
6 #include <QGraphicsItem>
7 
8 
9 // Library representing points which can be added to GraphicScene
10 // The main propose is :wa
11 class GraphicsPointsItem : public QGraphicsItem
12 {
13  public:
14  GraphicsPointsItem(const QList<QPoint> &points);
15  QRectF boundingRect() const;
16  void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
17  void setPen(const QPen &pen);
18 
19  private:
20  QRectF calcBoundingRect() const;
21 
22  private:
23  QList<QPoint> points;
24  QPen pen;
25 };
26 
27 #endif
void setPen(const QPen &pen)
QRectF boundingRect() const
GraphicsPointsItem(const QList< QPoint > &points)
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)