Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GhostPolygon Class Reference

Ghost for a QGraphicsPolygonItem. More...

#include <GhostPolygon.h>

Collaboration diagram for GhostPolygon:
Collaboration graph

Public Member Functions

 GhostPolygon (const QPolygonF &polygon, const QPen &pen, const QBrush &brush)
 Initial constructor.
 
 ~GhostPolygon ()
 
 GhostPolygon (const GhostPolygon &other)
 Copy constructor.
 
GhostPolygonoperator= (const GhostPolygon &other)
 Assignment operator.
 
QBrush brush () const
 Get method for brush.
 
QPen pen () const
 Get method for pen.
 
QPolygonF polygon () const
 Get method for polygon.
 

Detailed Description

Ghost for a QGraphicsPolygonItem.

Definition at line 15 of file GhostPolygon.h.

Constructor & Destructor Documentation

◆ GhostPolygon() [1/2]

GhostPolygon::GhostPolygon ( const QPolygonF & polygon,
const QPen & pen,
const QBrush & brush )

Initial constructor.

Definition at line 9 of file GhostPolygon.cpp.

11 :
12 m_polygon (polygon),
13 m_pen (pen),
14 m_brush (brush)
15{
16}
QPen pen() const
Get method for pen.
QPolygonF polygon() const
Get method for polygon.
QBrush brush() const
Get method for brush.

◆ ~GhostPolygon()

GhostPolygon::~GhostPolygon ( )

Definition at line 34 of file GhostPolygon.cpp.

35{
36}

◆ GhostPolygon() [2/2]

GhostPolygon::GhostPolygon ( const GhostPolygon & other)

Copy constructor.

Definition at line 18 of file GhostPolygon.cpp.

18 :
19 m_polygon (other.polygon ()),
20 m_pen (other.pen()),
21 m_brush (other.brush())
22{
23}
const int INNER_RADIUS_MIN

Member Function Documentation

◆ brush()

QBrush GhostPolygon::brush ( ) const

Get method for brush.

Definition at line 38 of file GhostPolygon.cpp.

39{
40 return m_brush;
41}

◆ operator=()

GhostPolygon & GhostPolygon::operator= ( const GhostPolygon & other)

Assignment operator.

Definition at line 25 of file GhostPolygon.cpp.

26{
27 m_polygon = other.polygon();
28 m_pen = other.pen();
29 m_brush = other.brush();
30
31 return *this;
32}

◆ pen()

QPen GhostPolygon::pen ( ) const

Get method for pen.

Definition at line 43 of file GhostPolygon.cpp.

44{
45 return m_pen;
46}

◆ polygon()

QPolygonF GhostPolygon::polygon ( ) const

Get method for polygon.

Definition at line 48 of file GhostPolygon.cpp.

49{
50 return m_polygon;
51}

The documentation for this class was generated from the following files: