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

The SGI_BusLabel class. More...

#include <sgi_buslabel.h>

Inherits QGraphicsItem.

+ Collaboration diagram for SGI_BusLabel:

Public Member Functions

 SGI_BusLabel ()=delete
 
 SGI_BusLabel (const SGI_BusLabel &other)=delete
 
 SGI_BusLabel (SI_BusLabel &label, const GraphicsLayerList &layers) noexcept
 
virtual ~SGI_BusLabel () noexcept
 
SI_BusLabelgetBusLabel () noexcept
 
QRectF boundingRect () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
 
SGI_BusLabeloperator= (const SGI_BusLabel &rhs)=delete
 

Private Member Functions

void busLabelEdited (const SI_BusLabel &obj, SI_BusLabel::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_BusLabelmBusLabel
 
std::shared_ptr< const GraphicsLayermOriginCrossLayer
 
std::shared_ptr< const GraphicsLayermBusLabelLayer
 
QScopedPointer< LineGraphicsItemmAnchorGraphicsItem
 
QStaticText mStaticText
 
QVector< QLineF > mOverlines
 
QFont mFont
 
bool mRotate180
 
QPointF mTextOrigin
 
QRectF mBoundingRect
 
SI_BusLabel::OnEditedSlot mOnEditedSlot
 

Static Private Attributes

static QVector< QLineF > sOriginCrossLines
 

Detailed Description

The SGI_BusLabel class.

Constructor & Destructor Documentation

◆ SGI_BusLabel() [1/3]

SGI_BusLabel ( )
delete

◆ SGI_BusLabel() [2/3]

SGI_BusLabel ( const SGI_BusLabel other)
delete

◆ SGI_BusLabel() [3/3]

SGI_BusLabel ( SI_BusLabel label,
const GraphicsLayerList layers 
)
noexcept
+ Here is the call graph for this function:

◆ ~SGI_BusLabel()

~SGI_BusLabel ( )
virtualnoexcept

Member Function Documentation

◆ getBusLabel()

SI_BusLabel & getBusLabel ( )
inlinenoexcept

◆ boundingRect()

QRectF boundingRect ( ) const
inlineoverridenoexcept

◆ paint()

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

◆ operator=()

SGI_BusLabel & operator= ( const SGI_BusLabel rhs)
delete

◆ busLabelEdited()

void busLabelEdited ( const SI_BusLabel obj,
SI_BusLabel::Event  event 
)
privatenoexcept

◆ itemChange()

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

◆ updatePosition()

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

◆ updateRotation()

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

◆ updateText()

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

◆ updateAnchor()

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

Member Data Documentation

◆ mBusLabel

SI_BusLabel& mBusLabel
private

◆ mOriginCrossLayer

std::shared_ptr<const GraphicsLayer> mOriginCrossLayer
private

◆ mBusLabelLayer

std::shared_ptr<const GraphicsLayer> mBusLabelLayer
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_BusLabel::OnEditedSlot mOnEditedSlot
private

◆ sOriginCrossLines

QVector< QLineF > sOriginCrossLines
staticprivate

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