Engauge Digitizer  2
Public Member Functions | List of all members
GhostPath Class Reference

Ghost for a QGraphicsPathItem. More...

#include <GhostPath.h>

Collaboration diagram for GhostPath:
Collaboration graph

Public Member Functions

 GhostPath (const QPainterPath &path, const QPen &pen, const QBrush &brush)
 Initial constructor. More...
 
 ~GhostPath ()
 
 GhostPath (const GhostPath &other)
 Copy constructor. More...
 
GhostPathoperator= (const GhostPath &other)
 Assignment operator. More...
 
QBrush brush () const
 Get method for brush. More...
 
QPainterPath path () const
 Get method for path. More...
 
QPen pen () const
 Get method for pen. More...
 

Detailed Description

Ghost for a QGraphicsPathItem.

Definition at line 15 of file GhostPath.h.

Constructor & Destructor Documentation

◆ GhostPath() [1/2]

GhostPath::GhostPath ( const QPainterPath &  path,
const QPen &  pen,
const QBrush &  brush 
)

Initial constructor.

Definition at line 9 of file GhostPath.cpp.

11  :
12  m_path (path),
13  m_pen (pen),
14  m_brush (brush)
15 {
16 }
QBrush brush() const
Get method for brush.
Definition: GhostPath.cpp:38
QPainterPath path() const
Get method for path.
Definition: GhostPath.cpp:43
QPen pen() const
Get method for pen.
Definition: GhostPath.cpp:48

◆ ~GhostPath()

GhostPath::~GhostPath ( )

Definition at line 34 of file GhostPath.cpp.

35 {
36 }

◆ GhostPath() [2/2]

GhostPath::GhostPath ( const GhostPath other)

Copy constructor.

Definition at line 18 of file GhostPath.cpp.

18  :
19  m_path (other.path ()),
20  m_pen (other.pen()),
21  m_brush (other.brush ())
22 {
23 }
QBrush brush() const
Get method for brush.
Definition: GhostPath.cpp:38
QPainterPath path() const
Get method for path.
Definition: GhostPath.cpp:43
QPen pen() const
Get method for pen.
Definition: GhostPath.cpp:48

Member Function Documentation

◆ brush()

QBrush GhostPath::brush ( ) const

Get method for brush.

Definition at line 38 of file GhostPath.cpp.

39 {
40  return m_brush;
41 }

◆ operator=()

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

Assignment operator.

Definition at line 25 of file GhostPath.cpp.

26 {
27  m_path = other.path();
28  m_pen = other.pen();
29  m_brush = other.brush();
30 
31  return *this;
32 }
QBrush brush() const
Get method for brush.
Definition: GhostPath.cpp:38
QPainterPath path() const
Get method for path.
Definition: GhostPath.cpp:43
QPen pen() const
Get method for pen.
Definition: GhostPath.cpp:48

◆ path()

QPainterPath GhostPath::path ( ) const

Get method for path.

Definition at line 43 of file GhostPath.cpp.

44 {
45  return m_path;
46 }

◆ pen()

QPen GhostPath::pen ( ) const

Get method for pen.

Definition at line 48 of file GhostPath.cpp.

49 {
50  return m_pen;
51 }

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