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
 
void layerColorChanged (const GraphicsLayer &layer, const QColor &newColor) noexceptoverride
 
void layerHighlightColorChanged (const GraphicsLayer &layer, const QColor &newColor) noexceptoverride
 
void layerVisibleChanged (const GraphicsLayer &layer, bool newVisible) noexceptoverride
 
void layerEnabledChanged (const GraphicsLayer &layer, bool newEnabled) noexceptoverride
 
void layerDestroyed (const GraphicsLayer &layer) noexceptoverride
 
QRectF boundingRect () const noexceptoverride
 
QPainterPath shape () const noexceptoverride
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride
 
PrimitivePathGraphicsItemoperator= (const PrimitivePathGraphicsItem &rhs)=delete
 
- Public Member Functions inherited from IF_GraphicsLayerObserver
virtual ~IF_GraphicsLayerObserver ()
 

Private Member Functions

void polygonLayerNameChanged (const GraphicsLayerName &newLayerName) noexceptoverride
 
void polygonLineWidthChanged (const UnsignedLength &newLineWidth) noexceptoverride
 
void polygonIsFilledChanged (bool newIsFilled) noexceptoverride
 
void polygonIsGrabAreaChanged (bool newIsGrabArea) noexceptoverride
 
void polygonPathChanged (const Path &newPath) noexceptoverride
 
void updateFillLayer () noexcept
 

Private Attributes

PolygonmPolygon
 
const IF_GraphicsLayerProvidermLayerProvider
 

Additional Inherited Members

- Protected Member Functions inherited from IF_PolygonObserver
 IF_PolygonObserver () noexcept
 
 IF_PolygonObserver (const IF_PolygonObserver &other)=delete
 
virtual ~IF_PolygonObserver () noexcept
 
IF_PolygonObserveroperator= (const IF_PolygonObserver &rhs)=delete
 

Detailed Description

The PolygonGraphicsItem class.

Author
ubruhin
Date
2017-05-28

Constructor & Destructor Documentation

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

+ Here is the call graph for this function:

Member Function Documentation

Polygon& getPolygon ( )
inlinenoexcept

+ Here is the caller graph for this function:

PolygonGraphicsItem& operator= ( const PolygonGraphicsItem rhs)
delete
void polygonLayerNameChanged ( const GraphicsLayerName newLayerName)
overrideprivatevirtualnoexcept

Implements IF_PolygonObserver.

void polygonLineWidthChanged ( const UnsignedLength newLineWidth)
overrideprivatevirtualnoexcept

Implements IF_PolygonObserver.

void polygonIsFilledChanged ( bool  newIsFilled)
overrideprivatevirtualnoexcept

Implements IF_PolygonObserver.

void polygonIsGrabAreaChanged ( bool  newIsGrabArea)
overrideprivatevirtualnoexcept

Implements IF_PolygonObserver.

void polygonPathChanged ( const Path newPath)
overrideprivatevirtualnoexcept

Implements IF_PolygonObserver.

void updateFillLayer ( )
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

Polygon& mPolygon
private
const IF_GraphicsLayerProvider& mLayerProvider
private

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