LibrePCB Developers Documentation
SGI_NetLabel Class Referencefinal

The SGI_NetLabel class. More...

#include <sgi_netlabel.h>

Inherits QGraphicsItem.

+ Collaboration diagram for SGI_NetLabel:

Public Member Functions

 SGI_NetLabel ()=delete
 
 SGI_NetLabel (const SGI_NetLabel &other)=delete
 
 SGI_NetLabel (SI_NetLabel &netlabel, const IF_GraphicsLayerProvider &lp, std::shared_ptr< const QSet< const NetSignal *>> highlightedNetSignals) noexcept
 
virtual ~SGI_NetLabel () noexcept
 
SI_NetLabelgetNetLabel () noexcept
 
QRectF boundingRect () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
 
SGI_NetLabeloperator= (const SGI_NetLabel &rhs)=delete
 

Private Member Functions

void netLabelEdited (const SI_NetLabel &obj, SI_NetLabel::Event event) noexcept
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 
void updatePosition () noexcept
 
void updateRotation () noexcept
 
void updateText () noexcept
 
void updateAnchor () noexcept
 

Private Attributes

SI_NetLabelmNetLabel
 
std::shared_ptr< const QSet< const NetSignal * > > mHighlightedNetSignals
 
std::shared_ptr< GraphicsLayermOriginCrossLayer
 
std::shared_ptr< GraphicsLayermNetLabelLayer
 
QScopedPointer< LineGraphicsItemmAnchorGraphicsItem
 
QStaticText mStaticText
 
QVector< QLineF > mOverlines
 
QFont mFont
 
bool mRotate180
 
QPointF mTextOrigin
 
QRectF mBoundingRect
 
SI_NetLabel::OnEditedSlot mOnEditedSlot
 

Static Private Attributes

static QVector< QLineF > sOriginCrossLines
 

Detailed Description

The SGI_NetLabel class.

Constructor & Destructor Documentation

◆ SGI_NetLabel() [1/3]

SGI_NetLabel ( )
delete

◆ SGI_NetLabel() [2/3]

SGI_NetLabel ( const SGI_NetLabel other)
delete

◆ SGI_NetLabel() [3/3]

SGI_NetLabel ( SI_NetLabel netlabel,
const IF_GraphicsLayerProvider lp,
std::shared_ptr< const QSet< const NetSignal *>>  highlightedNetSignals 
)
noexcept
+ Here is the call graph for this function:

◆ ~SGI_NetLabel()

~SGI_NetLabel ( )
virtualnoexcept

Member Function Documentation

◆ getNetLabel()

SI_NetLabel& getNetLabel ( )
inlinenoexcept

◆ boundingRect()

QRectF boundingRect ( ) const
inlineoverridenoexcept
+ Here is the call graph for this function:

◆ paint()

void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
overridenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

SGI_NetLabel& operator= ( const SGI_NetLabel rhs)
delete
+ Here is the caller graph for this function:

◆ netLabelEdited()

void netLabelEdited ( const SI_NetLabel obj,
SI_NetLabel::Event  event 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ itemChange()

QVariant itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprivatevirtualnoexcept
+ Here is the caller graph for this function:

◆ updatePosition()

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

◆ updateRotation()

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

◆ updateText()

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

◆ updateAnchor()

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

Member Data Documentation

◆ mNetLabel

SI_NetLabel& mNetLabel
private

◆ mHighlightedNetSignals

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

◆ mOriginCrossLayer

std::shared_ptr<GraphicsLayer> mOriginCrossLayer
private

◆ mNetLabelLayer

std::shared_ptr<GraphicsLayer> mNetLabelLayer
private

◆ mAnchorGraphicsItem

QScopedPointer<LineGraphicsItem> mAnchorGraphicsItem
private

◆ mStaticText

QStaticText mStaticText
private

◆ mOverlines

QVector<QLineF> mOverlines
private

◆ mFont

QFont mFont
private

◆ mRotate180

bool mRotate180
private

◆ mTextOrigin

QPointF mTextOrigin
private

◆ mBoundingRect

QRectF mBoundingRect
private

◆ mOnEditedSlot

SI_NetLabel::OnEditedSlot mOnEditedSlot
private

◆ sOriginCrossLines

QVector< QLineF > sOriginCrossLines
staticprivate

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