Engauge Digitizer  2
GhostPolygon.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef GHOST_POLYGON_H
8 #define GHOST_POLYGON_H
9 
10 #include <QBrush>
11 #include <QPen>
12 #include <QPolygon>
13 
16 {
17  public:
19  GhostPolygon(const QPolygonF &polygon,
20  const QPen &pen,
21  const QBrush &brush);
22  ~GhostPolygon();
23 
25  GhostPolygon(const GhostPolygon &other);
26 
28  GhostPolygon &operator=(const GhostPolygon &other);
29 
31  QBrush brush() const;
32 
34  QPen pen() const;
35 
37  QPolygonF polygon() const;
38 
39  private:
40  GhostPolygon();
41 
42  QPolygonF m_polygon;
43  QPen m_pen;
44  QBrush m_brush;
45 };
46 
47 #endif // GHOST_POLYGON_H
QPolygonF polygon() const
Get method for polygon.
GhostPolygon & operator=(const GhostPolygon &other)
Assignment operator.
QPen pen() const
Get method for pen.
Ghost for a QGraphicsPolygonItem.
Definition: GhostPolygon.h:15
QBrush brush() const
Get method for brush.