LibrePCB Developers Documentation
Loading...
Searching...
No Matches
PrimitiveHoleGraphicsItem Class Referencefinal

Independent graphical representation of a librepcb::Hole. More...

#include <primitiveholegraphicsitem.h>

Inherits QGraphicsItemGroup.

+ Collaboration diagram for PrimitiveHoleGraphicsItem:

Public Member Functions

 PrimitiveHoleGraphicsItem ()=delete
 
 PrimitiveHoleGraphicsItem (const PrimitiveHoleGraphicsItem &other)=delete
 
 PrimitiveHoleGraphicsItem (const IF_GraphicsLayerProvider &lp, bool originCrossesVisible, QGraphicsItem *parent=nullptr) noexcept
 
virtual ~PrimitiveHoleGraphicsItem () noexcept
 
void setHole (const NonEmptyPath &path, const PositiveLength &diameter, const std::optional< Length > &stopMaskOffset) noexcept
 
QPainterPath shape () const noexcept override
 
PrimitiveHoleGraphicsItemoperator= (const PrimitiveHoleGraphicsItem &rhs)=delete
 

Private Member Functions

QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 

Private Attributes

std::shared_ptr< GraphicsLayermHoleLayer
 
QScopedPointer< PrimitivePathGraphicsItemmHoleGraphicsItem
 
QScopedPointer< PrimitivePathGraphicsItemmStopMaskGraphicsItemBot
 
QScopedPointer< PrimitivePathGraphicsItemmStopMaskGraphicsItemTop
 
QScopedPointer< OriginCrossGraphicsItemmOriginCrossGraphicsItemStart
 
QScopedPointer< OriginCrossGraphicsItemmOriginCrossGraphicsItemEnd
 

Detailed Description

Independent graphical representation of a librepcb::Hole.

Constructor & Destructor Documentation

◆ PrimitiveHoleGraphicsItem() [1/3]

◆ PrimitiveHoleGraphicsItem() [2/3]

◆ PrimitiveHoleGraphicsItem() [3/3]

PrimitiveHoleGraphicsItem ( const IF_GraphicsLayerProvider lp,
bool  originCrossesVisible,
QGraphicsItem *  parent = nullptr 
)
noexcept
+ Here is the call graph for this function:

◆ ~PrimitiveHoleGraphicsItem()

~PrimitiveHoleGraphicsItem ( )
virtualnoexcept

Member Function Documentation

◆ setHole()

void setHole ( const NonEmptyPath path,
const PositiveLength diameter,
const std::optional< Length > &  stopMaskOffset 
)
noexcept
+ Here is the call graph for this function:

◆ shape()

QPainterPath shape ( ) const
overridenoexcept

◆ operator=()

PrimitiveHoleGraphicsItem & operator= ( const PrimitiveHoleGraphicsItem rhs)
delete

◆ itemChange()

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

Member Data Documentation

◆ mHoleLayer

std::shared_ptr<GraphicsLayer> mHoleLayer
private

◆ mHoleGraphicsItem

QScopedPointer<PrimitivePathGraphicsItem> mHoleGraphicsItem
private

◆ mStopMaskGraphicsItemBot

QScopedPointer<PrimitivePathGraphicsItem> mStopMaskGraphicsItemBot
private

◆ mStopMaskGraphicsItemTop

QScopedPointer<PrimitivePathGraphicsItem> mStopMaskGraphicsItemTop
private

◆ mOriginCrossGraphicsItemStart

QScopedPointer<OriginCrossGraphicsItem> mOriginCrossGraphicsItemStart
private

◆ mOriginCrossGraphicsItemEnd

QScopedPointer<OriginCrossGraphicsItem> mOriginCrossGraphicsItemEnd
private

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