LibrePCB Developers Documentation
HoleGraphicsItem Class Referencefinal

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

#include <holegraphicsitem.h>

Inherits QGraphicsItemGroup.

+ Collaboration diagram for HoleGraphicsItem:

Public Member Functions

 HoleGraphicsItem ()=delete
 
 HoleGraphicsItem (const HoleGraphicsItem &other)=delete
 
 HoleGraphicsItem (Hole &hole, const IF_GraphicsLayerProvider &lp, bool originCrossesVisible, QGraphicsItem *parent=nullptr) noexcept
 
virtual ~HoleGraphicsItem () noexcept
 
HolegetHole () noexcept
 
QPainterPath shape () const noexcept override
 
HoleGraphicsItemoperator= (const HoleGraphicsItem &rhs)=delete
 

Private Member Functions

void holeEdited (const Hole &hole, Hole::Event event) noexcept
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 
void updateHole () noexcept
 

Private Attributes

HolemHole
 
QScopedPointer< PrimitiveHoleGraphicsItemmGraphicsItem
 
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 ( Hole hole,
const IF_GraphicsLayerProvider lp,
bool  originCrossesVisible,
QGraphicsItem *  parent = nullptr 
)
noexcept

◆ ~HoleGraphicsItem()

~HoleGraphicsItem ( )
virtualnoexcept

Member Function Documentation

◆ getHole()

Hole & getHole ( )
inlinenoexcept

◆ shape()

QPainterPath shape ( ) const
overridenoexcept

◆ operator=()

HoleGraphicsItem & operator= ( const HoleGraphicsItem rhs)
delete

◆ holeEdited()

void holeEdited ( const Hole hole,
Hole::Event  event 
)
privatenoexcept

◆ itemChange()

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

◆ updateHole()

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

Member Data Documentation

◆ mHole

Hole& mHole
private

◆ mGraphicsItem

QScopedPointer<PrimitiveHoleGraphicsItem> mGraphicsItem
private

◆ mOnEditedSlot

Hole::OnEditedSlot mOnEditedSlot
private

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