LibrePCB Developers Documentation
HoleGraphicsItem Class Referencefinal

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

#include <holegraphicsitem.h>

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

Public Member Functions

 HoleGraphicsItem ()=delete
 
 HoleGraphicsItem (const HoleGraphicsItem &other)=delete
 
 HoleGraphicsItem (const Hole &hole, const IF_GraphicsLayerProvider &lp, QGraphicsItem *parent=nullptr) noexcept
 
 ~HoleGraphicsItem () noexcept
 
const HolegetHole () noexcept
 
QPainterPath shape () const noexcept override
 
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
 
virtual QRectF boundingRect () 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 holeEdited (const Hole &hole, Hole::Event event) noexcept
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 

Private Attributes

const HolemHole
 
const IF_GraphicsLayerProvidermLayerProvider
 
QScopedPointer< OriginCrossGraphicsItemmOriginCrossGraphicsItem
 
Hole::OnEditedSlot mOnEditedSlot
 

Detailed Description

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

Constructor & Destructor Documentation

◆ HoleGraphicsItem() [1/3]

HoleGraphicsItem ( )
delete

◆ HoleGraphicsItem() [2/3]

HoleGraphicsItem ( const HoleGraphicsItem other)
delete

◆ HoleGraphicsItem() [3/3]

HoleGraphicsItem ( const Hole hole,
const IF_GraphicsLayerProvider lp,
QGraphicsItem *  parent = nullptr 
)
noexcept
+ Here is the call graph for this function:

◆ ~HoleGraphicsItem()

~HoleGraphicsItem ( )
noexcept

Member Function Documentation

◆ getHole()

const Hole& getHole ( )
inlinenoexcept
+ Here is the call graph for this function:

◆ shape()

QPainterPath shape ( ) const
overridevirtualnoexcept

Reimplemented from PrimitiveCircleGraphicsItem.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

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

◆ holeEdited()

void holeEdited ( const Hole hole,
Hole::Event  event 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ itemChange()

QVariant itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprivatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mHole

const Hole& mHole
private

◆ mLayerProvider

const IF_GraphicsLayerProvider& mLayerProvider
private

◆ mOriginCrossGraphicsItem

QScopedPointer<OriginCrossGraphicsItem> mOriginCrossGraphicsItem
private

◆ mOnEditedSlot

Hole::OnEditedSlot mOnEditedSlot
private

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