LibrePCB Developers Documentation
Loading...
Searching...
No Matches
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
 
virtual ~CircleGraphicsItem () noexcept
 
CirclegetObj () 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 std::shared_ptr< GraphicsLayer > &layer) noexcept
 
void setFillLayer (const std::shared_ptr< GraphicsLayer > &layer) noexcept
 
void setShapeMode (ShapeMode mode) 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
 
void updateZValue () noexcept
 

Private Attributes

CirclemCircle
 
const IF_GraphicsLayerProvidermLayerProvider
 
Circle::OnEditedSlot mEditedSlot
 

Additional Inherited Members

- Public Types inherited from PrimitiveCircleGraphicsItem
enum class  ShapeMode
 

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 ( )
virtualnoexcept

Member Function Documentation

◆ getObj()

Circle & getObj ( )
inlinenoexcept

◆ operator=()

CircleGraphicsItem & operator= ( const CircleGraphicsItem rhs)
delete

◆ circleEdited()

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

◆ updateFillLayer()

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

◆ updateZValue()

void updateZValue ( )
privatenoexcept
+ Here is the call 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: