00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #include "GhostPolygon.h" 00008 00009 GhostPolygon::GhostPolygon(const QPolygonF &polygon, 00010 const QPen &pen, 00011 const QBrush &brush) : 00012 m_polygon (polygon), 00013 m_pen (pen), 00014 m_brush (brush) 00015 { 00016 } 00017 00018 GhostPolygon::GhostPolygon(const GhostPolygon &other) : 00019 m_polygon (other.polygon ()), 00020 m_pen (other.pen()), 00021 m_brush (other.brush()) 00022 { 00023 } 00024 00025 GhostPolygon &GhostPolygon::operator=(const GhostPolygon &other) 00026 { 00027 m_polygon = other.polygon(); 00028 m_pen = other.pen(); 00029 m_brush = other.brush(); 00030 00031 return *this; 00032 } 00033 00034 GhostPolygon::~GhostPolygon() 00035 { 00036 } 00037 00038 QBrush GhostPolygon::brush() const 00039 { 00040 return m_brush; 00041 } 00042 00043 QPen GhostPolygon::pen() const 00044 { 00045 return m_pen; 00046 } 00047 00048 QPolygonF GhostPolygon::polygon() const 00049 { 00050 return m_polygon; 00051 }