LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PolygonGraphicsItem Class Referencefinal

The PolygonGraphicsItem class. More...

#include <polygongraphicsitem.h>

+ Inheritance diagram for PolygonGraphicsItem:
+ Collaboration diagram for PolygonGraphicsItem:

Public Member Functions

 PolygonGraphicsItem ()=delete
 
 PolygonGraphicsItem (const PolygonGraphicsItem &other)=delete
 
 PolygonGraphicsItem (Polygon &polygon, const IF_GraphicsLayerProvider &lp, QGraphicsItem *parent=nullptr) noexcept
 
 ~PolygonGraphicsItem () noexcept
 
PolygongetPolygon () noexcept
 
PolygonGraphicsItemoperator= (const PolygonGraphicsItem &rhs)=delete
 
- Public Member Functions inherited from PrimitivePathGraphicsItem
 PrimitivePathGraphicsItem (const PrimitivePathGraphicsItem &other)=delete
 
 PrimitivePathGraphicsItem (QGraphicsItem *parent=nullptr) noexcept
 
virtual ~PrimitivePathGraphicsItem () noexcept
 
void setPosition (const Point &pos) noexcept
 
void setRotation (const Angle &rot) noexcept
 
void setPath (const QPainterPath &path) noexcept
 
void setLineWidth (const UnsignedLength &width) noexcept
 
void setLineLayer (const GraphicsLayer *layer) noexcept
 
void setFillLayer (const GraphicsLayer *layer) noexcept
 
QRectF boundingRect () const noexceptoverride
 
QPainterPath shape () const noexceptoverride
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride
 
PrimitivePathGraphicsItemoperator= (const PrimitivePathGraphicsItem &rhs)=delete
 

Private Member Functions

void polygonEdited (const Polygon &polygon, Polygon::Event event) noexcept
 
void updateFillLayer () noexcept
 

Private Attributes

PolygonmPolygon
 
const IF_GraphicsLayerProvidermLayerProvider
 
Polygon::OnEditedSlot mOnEditedSlot
 

Detailed Description

Constructor & Destructor Documentation

PolygonGraphicsItem ( )
delete
PolygonGraphicsItem ( const PolygonGraphicsItem other)
delete
PolygonGraphicsItem ( Polygon polygon,
const IF_GraphicsLayerProvider lp,
QGraphicsItem *  parent = nullptr 
)
noexcept
~PolygonGraphicsItem ( )
noexcept

Member Function Documentation

Polygon& getPolygon ( )
inlinenoexcept

+ Here is the caller graph for this function:

PolygonGraphicsItem& operator= ( const PolygonGraphicsItem rhs)
delete
void polygonEdited ( const Polygon polygon,
Polygon::Event  event 
)
privatenoexcept
void updateFillLayer ( )
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

Polygon& mPolygon
private
const IF_GraphicsLayerProvider& mLayerProvider
private
Polygon::OnEditedSlot mOnEditedSlot
private

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