LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HoleGraphicsItem Class Referencefinal

The HoleGraphicsItem class is the graphical representation of a librepcb::Text. More...

#include <holegraphicsitem.h>

+ Inheritance diagram for HoleGraphicsItem:
+ Collaboration diagram for HoleGraphicsItem:

Public Member Functions

 HoleGraphicsItem ()=delete
 
 HoleGraphicsItem (const HoleGraphicsItem &other)=delete
 
 HoleGraphicsItem (Hole &hole, const IF_GraphicsLayerProvider &lp, QGraphicsItem *parent=nullptr) noexcept
 
 ~HoleGraphicsItem () noexcept
 
HolegetHole () noexcept
 
QPainterPath shape () const noexceptoverride
 
HoleGraphicsItemoperator= (const HoleGraphicsItem &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 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 holePositionChanged (const Point &newPos) noexceptoverride
 
void holeDiameterChanged (const PositiveLength &newDiameter) noexceptoverride
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexceptoverride
 

Private Attributes

HolemHole
 
const IF_GraphicsLayerProvidermLayerProvider
 
QScopedPointer
< OriginCrossGraphicsItem
mOriginCrossGraphicsItem
 

Additional Inherited Members

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

Detailed Description

The HoleGraphicsItem class is the graphical representation of a librepcb::Text.

Author
ubruhin
Date
2017-05-30

Constructor & Destructor Documentation

HoleGraphicsItem ( )
delete
HoleGraphicsItem ( const HoleGraphicsItem other)
delete
HoleGraphicsItem ( Hole hole,
const IF_GraphicsLayerProvider lp,
QGraphicsItem *  parent = nullptr 
)
noexcept

+ Here is the call graph for this function:

~HoleGraphicsItem ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

Hole& getHole ( )
inlinenoexcept

+ Here is the caller graph for this function:

QPainterPath shape ( ) const
overridevirtualnoexcept

Reimplemented from PrimitiveCircleGraphicsItem.

+ Here is the call graph for this function:

HoleGraphicsItem& operator= ( const HoleGraphicsItem rhs)
delete
void holePositionChanged ( const Point newPos)
overrideprivatevirtualnoexcept

Implements IF_HoleObserver.

void holeDiameterChanged ( const PositiveLength newDiameter)
overrideprivatevirtualnoexcept

Implements IF_HoleObserver.

+ Here is the call graph for this function:

QVariant itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprivatenoexcept

Member Data Documentation

Hole& mHole
private
const IF_GraphicsLayerProvider& mLayerProvider
private
QScopedPointer<OriginCrossGraphicsItem> mOriginCrossGraphicsItem
private

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