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

The BGI_NetLine class. More...

#include <bgi_netline.h>

Inherits QGraphicsItem.

+ Collaboration diagram for BGI_NetLine:

Public Member Functions

 BGI_NetLine ()=delete
 
 BGI_NetLine (const BGI_NetLine &other)=delete
 
 BGI_NetLine (BI_NetLine &netline, const IF_GraphicsLayerProvider &lp, std::shared_ptr< const QSet< const NetSignal * > > highlightedNetSignals) noexcept
 
virtual ~BGI_NetLine () noexcept
 
BI_NetLinegetNetLine () noexcept
 
QRectF boundingRect () const noexcept override
 
QPainterPath shape () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
 
BGI_NetLineoperator= (const BGI_NetLine &rhs)=delete
 

Private Member Functions

void netLineEdited (const BI_NetLine &obj, BI_NetLine::Event event) noexcept
 
void layerEdited (const GraphicsLayer &layer, GraphicsLayer::Event event) noexcept
 
void updateLine () noexcept
 
void updateLayer () noexcept
 
void updateNetSignalName () noexcept
 
void updateVisibility () noexcept
 

Private Attributes

BI_NetLinemNetLine
 
const IF_GraphicsLayerProvidermLayerProvider
 
std::shared_ptr< const QSet< const NetSignal * > > mHighlightedNetSignals
 
std::shared_ptr< GraphicsLayermLayer
 
QLineF mLineF
 
QRectF mBoundingRect
 
QPainterPath mShape
 
BI_NetLine::OnEditedSlot mOnNetLineEditedSlot
 
GraphicsLayer::OnEditedSlot mOnLayerEditedSlot
 

Detailed Description

The BGI_NetLine class.

Constructor & Destructor Documentation

◆ BGI_NetLine() [1/3]

BGI_NetLine ( )
delete

◆ BGI_NetLine() [2/3]

BGI_NetLine ( const BGI_NetLine other)
delete

◆ BGI_NetLine() [3/3]

BGI_NetLine ( BI_NetLine netline,
const IF_GraphicsLayerProvider lp,
std::shared_ptr< const QSet< const NetSignal * > >  highlightedNetSignals 
)
noexcept

◆ ~BGI_NetLine()

~BGI_NetLine ( )
virtualnoexcept

Member Function Documentation

◆ getNetLine()

BI_NetLine & getNetLine ( )
inlinenoexcept

◆ boundingRect()

QRectF boundingRect ( ) const
inlineoverridenoexcept

◆ shape()

QPainterPath shape ( ) const
overridenoexcept

◆ paint()

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

◆ operator=()

BGI_NetLine & operator= ( const BGI_NetLine rhs)
delete

◆ netLineEdited()

void netLineEdited ( const BI_NetLine obj,
BI_NetLine::Event  event 
)
privatenoexcept

◆ layerEdited()

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

◆ updateLine()

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

◆ updateLayer()

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

◆ updateNetSignalName()

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

◆ updateVisibility()

void updateVisibility ( )
privatenoexcept

Member Data Documentation

◆ mNetLine

BI_NetLine& mNetLine
private

◆ mLayerProvider

const IF_GraphicsLayerProvider& mLayerProvider
private

◆ mHighlightedNetSignals

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

◆ mLayer

std::shared_ptr<GraphicsLayer> mLayer
private

◆ mLineF

QLineF mLineF
private

◆ mBoundingRect

QRectF mBoundingRect
private

◆ mShape

QPainterPath mShape
private

◆ mOnNetLineEditedSlot

BI_NetLine::OnEditedSlot mOnNetLineEditedSlot
private

◆ mOnLayerEditedSlot

GraphicsLayer::OnEditedSlot mOnLayerEditedSlot
private

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