LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 noexceptoverride
 
virtual QPainterPath shape () const noexceptoverride
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride
 
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 ( )
delete
CircleGraphicsItem ( const CircleGraphicsItem other)
delete
CircleGraphicsItem ( Circle circle,
const IF_GraphicsLayerProvider lp,
QGraphicsItem *  parent = nullptr 
)
noexcept

+ Here is the call graph for this function:

~CircleGraphicsItem ( )
noexcept

Member Function Documentation

Circle& getCircle ( )
inlinenoexcept

+ Here is the caller graph for this function:

CircleGraphicsItem& operator= ( const CircleGraphicsItem rhs)
delete
void circleEdited ( const Circle circle,
Circle::Event  event 
)
privatenoexcept

+ Here is the call graph for this function:

void updateFillLayer ( )
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

Circle& mCircle
private
const IF_GraphicsLayerProvider& mLayerProvider
private
Circle::OnEditedSlot mEditedSlot
private

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