LibrePCB Developers Documentation
SGI_NetLine Class Referencefinal

The SGI_NetLine class. More...

#include <sgi_netline.h>

Inherits QGraphicsItem.

+ Collaboration diagram for SGI_NetLine:

Public Member Functions

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

Private Member Functions

void netLineEdited (const SI_NetLine &obj, SI_NetLine::Event event) noexcept
 
void updatePositions () noexcept
 
void updateNetSignalName () noexcept
 
std::shared_ptr< GraphicsLayergetLayer (const QString &name) const noexcept
 

Private Attributes

SI_NetLinemNetLine
 
std::shared_ptr< const QSet< const NetSignal * > > mHighlightedNetSignals
 
std::shared_ptr< GraphicsLayermLayer
 
QLineF mLineF
 
QRectF mBoundingRect
 
QPainterPath mShape
 
SI_NetLine::OnEditedSlot mOnNetLineEditedSlot
 

Detailed Description

The SGI_NetLine class.

Constructor & Destructor Documentation

◆ SGI_NetLine() [1/3]

SGI_NetLine ( )
delete

◆ SGI_NetLine() [2/3]

SGI_NetLine ( const SGI_NetLine other)
delete

◆ SGI_NetLine() [3/3]

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

◆ ~SGI_NetLine()

~SGI_NetLine ( )
virtualnoexcept

Member Function Documentation

◆ getNetLine()

SI_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=()

SGI_NetLine & operator= ( const SGI_NetLine rhs)
delete

◆ netLineEdited()

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

◆ updatePositions()

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

◆ updateNetSignalName()

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

◆ getLayer()

std::shared_ptr< GraphicsLayer > getLayer ( const QString &  name) const
privatenoexcept

Member Data Documentation

◆ mNetLine

SI_NetLine& mNetLine
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

SI_NetLine::OnEditedSlot mOnNetLineEditedSlot
private

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