Engauge Digitizer
2
Loading...
Searching...
No Matches
Ghosts
GhostPolygon.cpp
Go to the documentation of this file.
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
#include "
GhostPolygon.h
"
8
9
GhostPolygon::GhostPolygon
(
const
QPolygonF &
polygon
,
10
const
QPen &
pen
,
11
const
QBrush &
brush
) :
12
m_polygon (
polygon
),
13
m_pen (
pen
),
14
m_brush (
brush
)
15
{
16
}
17
18
GhostPolygon::GhostPolygon
(
const
GhostPolygon
&other) :
19
m_polygon (other.
polygon
()),
20
m_pen (other.
pen
()),
21
m_brush (other.
brush
())
22
{
23
}
24
25
GhostPolygon
&
GhostPolygon::operator=
(
const
GhostPolygon
&other)
26
{
27
m_polygon = other.
polygon
();
28
m_pen = other.
pen
();
29
m_brush = other.
brush
();
30
31
return
*
this
;
32
}
33
34
GhostPolygon::~GhostPolygon
()
35
{
36
}
37
38
QBrush
GhostPolygon::brush
()
const
39
{
40
return
m_brush;
41
}
42
43
QPen
GhostPolygon::pen
()
const
44
{
45
return
m_pen;
46
}
47
48
QPolygonF
GhostPolygon::polygon
()
const
49
{
50
return
m_polygon;
51
}
GhostPolygon.h
GhostPolygon::pen
QPen pen() const
Get method for pen.
Definition
GhostPolygon.cpp:43
GhostPolygon::polygon
QPolygonF polygon() const
Get method for polygon.
Definition
GhostPolygon.cpp:48
GhostPolygon::~GhostPolygon
~GhostPolygon()
Definition
GhostPolygon.cpp:34
GhostPolygon::brush
QBrush brush() const
Get method for brush.
Definition
GhostPolygon.cpp:38
GhostPolygon::operator=
GhostPolygon & operator=(const GhostPolygon &other)
Assignment operator.
Definition
GhostPolygon.cpp:25
GhostPolygon::GhostPolygon
GhostPolygon(const QPolygonF &polygon, const QPen &pen, const QBrush &brush)
Initial constructor.
Definition
GhostPolygon.cpp:9
Generated on
for Engauge Digitizer by
1.14.0