LibrePCB Developers Documentation
BGI_Via Class Referencefinal

The BGI_Via class. More...

#include <bgi_via.h>

Inherits QGraphicsItem.

+ Collaboration diagram for BGI_Via:

Public Member Functions

 BGI_Via ()=delete
 
 BGI_Via (const BGI_Via &other)=delete
 
 BGI_Via (BI_Via &via, const IF_GraphicsLayerProvider &lp, std::shared_ptr< const QSet< const NetSignal * > > highlightedNetSignals) noexcept
 
virtual ~BGI_Via () noexcept
 
BI_ViagetVia () noexcept
 
QRectF boundingRect () const noexcept override
 
QPainterPath shape () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
 
BGI_Viaoperator= (const BGI_Via &rhs)=delete
 

Private Member Functions

void viaEdited (const BI_Via &obj, BI_Via::Event event) noexcept
 
void layerEdited (const GraphicsLayer &layer, GraphicsLayer::Event event) noexcept
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 
void updatePosition () noexcept
 
void updateShapes () noexcept
 
void updateToolTip () noexcept
 
void updateText () noexcept
 
void updateTextHeight () noexcept
 
void updateVisibility () noexcept
 
void attachToCopperLayers () noexcept
 

Private Attributes

BI_ViamVia
 
const IF_GraphicsLayerProvidermLayerProvider
 
std::shared_ptr< const QSet< const NetSignal * > > mHighlightedNetSignals
 
std::shared_ptr< GraphicsLayermViaLayer
 
std::shared_ptr< GraphicsLayermTopStopMaskLayer
 
std::shared_ptr< GraphicsLayermBottomStopMaskLayer
 
QScopedPointer< PrimitivePathGraphicsItemmTextGraphicsItem
 
QVector< std::shared_ptr< GraphicsLayer > > mBlindBuriedCopperLayers
 Copper layers for blind- and buried vias (empty for through-hole vias) More...
 
QPainterPath mShape
 
QPainterPath mCopper
 
QPainterPath mStopMaskTop
 
QPainterPath mStopMaskBottom
 
QRectF mBoundingRect
 
QString mText
 
BI_Via::OnEditedSlot mOnEditedSlot
 
GraphicsLayer::OnEditedSlot mOnLayerEditedSlot
 

Detailed Description

The BGI_Via class.

Constructor & Destructor Documentation

◆ BGI_Via() [1/3]

BGI_Via ( )
delete

◆ BGI_Via() [2/3]

BGI_Via ( const BGI_Via other)
delete

◆ BGI_Via() [3/3]

BGI_Via ( BI_Via via,
const IF_GraphicsLayerProvider lp,
std::shared_ptr< const QSet< const NetSignal * > >  highlightedNetSignals 
)
noexcept

◆ ~BGI_Via()

~BGI_Via ( )
virtualnoexcept

Member Function Documentation

◆ getVia()

BI_Via & getVia ( )
inlinenoexcept

◆ boundingRect()

QRectF boundingRect ( ) const
inlineoverridenoexcept

◆ shape()

QPainterPath shape ( ) const
overridenoexcept

◆ paint()

void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
overridenoexcept

◆ operator=()

BGI_Via & operator= ( const BGI_Via rhs)
delete

◆ viaEdited()

void viaEdited ( const BI_Via obj,
BI_Via::Event  event 
)
privatenoexcept

◆ layerEdited()

void layerEdited ( const GraphicsLayer layer,
GraphicsLayer::Event  event 
)
privatenoexcept

◆ itemChange()

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

◆ updatePosition()

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

◆ updateShapes()

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

◆ updateToolTip()

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

◆ updateText()

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

◆ updateTextHeight()

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

◆ updateVisibility()

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

◆ attachToCopperLayers()

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

Member Data Documentation

◆ mVia

BI_Via& mVia
private

◆ mLayerProvider

const IF_GraphicsLayerProvider& mLayerProvider
private

◆ mHighlightedNetSignals

std::shared_ptr<const QSet<const NetSignal*> > mHighlightedNetSignals
private

◆ mViaLayer

std::shared_ptr<GraphicsLayer> mViaLayer
private

◆ mTopStopMaskLayer

std::shared_ptr<GraphicsLayer> mTopStopMaskLayer
private

◆ mBottomStopMaskLayer

std::shared_ptr<GraphicsLayer> mBottomStopMaskLayer
private

◆ mTextGraphicsItem

QScopedPointer<PrimitivePathGraphicsItem> mTextGraphicsItem
private

◆ mBlindBuriedCopperLayers

QVector<std::shared_ptr<GraphicsLayer> > mBlindBuriedCopperLayers
private

Copper layers for blind- and buried vias (empty for through-hole vias)

◆ mShape

QPainterPath mShape
private

◆ mCopper

QPainterPath mCopper
private

◆ mStopMaskTop

QPainterPath mStopMaskTop
private

◆ mStopMaskBottom

QPainterPath mStopMaskBottom
private

◆ mBoundingRect

QRectF mBoundingRect
private

◆ mText

QString mText
private

◆ mOnEditedSlot

BI_Via::OnEditedSlot mOnEditedSlot
private

◆ mOnLayerEditedSlot

GraphicsLayer::OnEditedSlot mOnLayerEditedSlot
private

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