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
 
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
 
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
 
- Public Member Functions inherited from IF_GraphicsLayerObserver
virtual ~IF_GraphicsLayerObserver ()
 

Private Member Functions

void circleLayerNameChanged (const GraphicsLayerName &newLayerName) noexceptoverride
 
void circleLineWidthChanged (const UnsignedLength &newLineWidth) noexceptoverride
 
void circleIsFilledChanged (bool newIsFilled) noexceptoverride
 
void circleIsGrabAreaChanged (bool newIsGrabArea) noexceptoverride
 
void circleCenterChanged (const Point &newCenter) noexceptoverride
 
void circleDiameterChanged (const PositiveLength &newDiameter) noexceptoverride
 
void updateFillLayer () noexcept
 

Private Attributes

CirclemCircle
 
const IF_GraphicsLayerProvidermLayerProvider
 

Additional Inherited Members

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

Detailed Description

The CircleGraphicsItem class.

Author
ubruhin
Date
2017-05-28

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

+ Here is the call graph for this function:

Member Function Documentation

Circle& getCircle ( )
inlinenoexcept

+ Here is the caller graph for this function:

CircleGraphicsItem& operator= ( const CircleGraphicsItem rhs)
delete
void circleLayerNameChanged ( const GraphicsLayerName newLayerName)
overrideprivatevirtualnoexcept

Implements IF_CircleObserver.

void circleLineWidthChanged ( const UnsignedLength newLineWidth)
overrideprivatevirtualnoexcept

Implements IF_CircleObserver.

void circleIsFilledChanged ( bool  newIsFilled)
overrideprivatevirtualnoexcept

Implements IF_CircleObserver.

void circleIsGrabAreaChanged ( bool  newIsGrabArea)
overrideprivatevirtualnoexcept

Implements IF_CircleObserver.

void circleCenterChanged ( const Point newCenter)
overrideprivatevirtualnoexcept

Implements IF_CircleObserver.

void circleDiameterChanged ( const PositiveLength newDiameter)
overrideprivatevirtualnoexcept

Implements IF_CircleObserver.

+ 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

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