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::Hole. 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
 
virtual QRectF boundingRect () const noexceptoverride
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride
 
PrimitiveCircleGraphicsItemoperator= (const PrimitiveCircleGraphicsItem &rhs)=delete
 

Private Member Functions

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

Private Attributes

HolemHole
 
const IF_GraphicsLayerProvidermLayerProvider
 
QScopedPointer
< OriginCrossGraphicsItem
mOriginCrossGraphicsItem
 
Hole::OnEditedSlot mOnEditedSlot
 

Detailed Description

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

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

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 holeEdited ( const Hole hole,
Hole::Event  event 
)
privatenoexcept

+ 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
Hole::OnEditedSlot mOnEditedSlot
private

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