LibrePCB Developers Documentation
CircleGraphicsItem Class Referencefinal

The CircleGraphicsItem class. More...

#include <circlegraphicsitem.h>

+ Inheritance diagram for CircleGraphicsItem:
+ Collaboration diagram for CircleGraphicsItem:

Public Member Functions

 CircleGraphicsItem ()=delete
 
 CircleGraphicsItem (const CircleGraphicsItem &other)=delete
 
 CircleGraphicsItem (Circle &circle, const IF_GraphicsLayerProvider &lp, QGraphicsItem *parent=nullptr) noexcept
 
 ~CircleGraphicsItem () noexcept
 
CirclegetCircle () noexcept
 
CircleGraphicsItemoperator= (const CircleGraphicsItem &rhs)=delete
 
- Public Member Functions inherited from PrimitiveCircleGraphicsItem
 PrimitiveCircleGraphicsItem (const PrimitiveCircleGraphicsItem &other)=delete
 
 PrimitiveCircleGraphicsItem (QGraphicsItem *parent=nullptr) noexcept
 
virtual ~PrimitiveCircleGraphicsItem () noexcept
 
void setPosition (const Point &pos) noexcept
 
void setDiameter (const UnsignedLength &dia) noexcept
 
void setLineWidth (const UnsignedLength &width) noexcept
 
void setLineLayer (const GraphicsLayer *layer) noexcept
 
void setFillLayer (const GraphicsLayer *layer) noexcept
 
virtual QRectF boundingRect () const noexcept override
 
virtual QPainterPath shape () const noexcept override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexcept override
 
PrimitiveCircleGraphicsItemoperator= (const PrimitiveCircleGraphicsItem &rhs)=delete
 

Private Member Functions

void circleEdited (const Circle &circle, Circle::Event event) noexcept
 
void updateFillLayer () noexcept
 

Private Attributes

CirclemCircle
 
const IF_GraphicsLayerProvidermLayerProvider
 
Circle::OnEditedSlot mEditedSlot
 

Detailed Description

The CircleGraphicsItem class.

Constructor & Destructor Documentation

◆ CircleGraphicsItem() [1/3]

CircleGraphicsItem ( )
delete

◆ CircleGraphicsItem() [2/3]

CircleGraphicsItem ( const CircleGraphicsItem other)
delete

◆ CircleGraphicsItem() [3/3]

CircleGraphicsItem ( Circle circle,
const IF_GraphicsLayerProvider lp,
QGraphicsItem *  parent = nullptr 
)
noexcept
+ Here is the call graph for this function:

◆ ~CircleGraphicsItem()

~CircleGraphicsItem ( )
noexcept

Member Function Documentation

◆ getCircle()

Circle& getCircle ( )
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

CircleGraphicsItem& operator= ( const CircleGraphicsItem rhs)
delete
+ Here is the caller graph for this function:

◆ circleEdited()

void circleEdited ( const Circle circle,
Circle::Event  event 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateFillLayer()

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

Member Data Documentation

◆ mCircle

Circle& mCircle
private

◆ mLayerProvider

const IF_GraphicsLayerProvider& mLayerProvider
private

◆ mEditedSlot

Circle::OnEditedSlot mEditedSlot
private

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