LibrePCB Developers Documentation
BGI_Polygon Class Referencefinal

The BGI_Polygon class. More...

#include <bgi_polygon.h>

Inherits QGraphicsItemGroup.

+ Collaboration diagram for BGI_Polygon:

Public Member Functions

 BGI_Polygon ()=delete
 
 BGI_Polygon (const BGI_Polygon &other)=delete
 
 BGI_Polygon (BI_Polygon &polygon, const IF_GraphicsLayerProvider &lp) noexcept
 
virtual ~BGI_Polygon () noexcept
 
BI_PolygongetPolygon () noexcept
 
const PolygonGraphicsItemgetGraphicsItem () const noexcept
 
QPainterPath shape () const noexcept override
 
BGI_Polygonoperator= (const BGI_Polygon &rhs)=delete
 

Private Member Functions

void polygonEdited (const BI_Polygon &obj, BI_Polygon::Event event) noexcept
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 
void updateZValue () noexcept
 
void updateEditable () noexcept
 

Private Attributes

BI_PolygonmPolygon
 
Polygon mPolygonObj
 
QScopedPointer< PolygonGraphicsItemmGraphicsItem
 
BI_Polygon::OnEditedSlot mOnEditedSlot
 

Detailed Description

The BGI_Polygon class.

Constructor & Destructor Documentation

◆ BGI_Polygon() [1/3]

BGI_Polygon ( )
delete

◆ BGI_Polygon() [2/3]

BGI_Polygon ( const BGI_Polygon other)
delete

◆ BGI_Polygon() [3/3]

BGI_Polygon ( BI_Polygon polygon,
const IF_GraphicsLayerProvider lp 
)
noexcept

◆ ~BGI_Polygon()

~BGI_Polygon ( )
virtualnoexcept

Member Function Documentation

◆ getPolygon()

BI_Polygon & getPolygon ( )
inlinenoexcept

◆ getGraphicsItem()

const PolygonGraphicsItem & getGraphicsItem ( ) const
inlinenoexcept

◆ shape()

QPainterPath shape ( ) const
overridenoexcept

◆ operator=()

BGI_Polygon & operator= ( const BGI_Polygon rhs)
delete

◆ polygonEdited()

void polygonEdited ( const BI_Polygon obj,
BI_Polygon::Event  event 
)
privatenoexcept

◆ itemChange()

QVariant itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprivatenoexcept

◆ updateZValue()

void updateZValue ( )
privatenoexcept
+ Here is the call graph for this function:

◆ updateEditable()

void updateEditable ( )
privatenoexcept
+ Here is the call graph for this function:

Member Data Documentation

◆ mPolygon

BI_Polygon& mPolygon
private

◆ mPolygonObj

Polygon mPolygonObj
private

◆ mGraphicsItem

QScopedPointer<PolygonGraphicsItem> mGraphicsItem
private

◆ mOnEditedSlot

BI_Polygon::OnEditedSlot mOnEditedSlot
private

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