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

The SGI_BusLine class. More...

#include <sgi_busline.h>

Inherits QGraphicsItem.

+ Collaboration diagram for SGI_BusLine:

Public Member Functions

 SGI_BusLine ()=delete
 
 SGI_BusLine (const SGI_BusLine &other)=delete
 
 SGI_BusLine (SI_BusLine &line, const GraphicsLayerList &layers) noexcept
 
virtual ~SGI_BusLine () noexcept
 
SI_BusLinegetBusLine () noexcept
 
QRectF boundingRect () const noexcept override
 
QPainterPath shape () const noexcept override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
 
SGI_BusLineoperator= (const SGI_BusLine &rhs)=delete
 

Private Member Functions

void busLineEdited (const SI_BusLine &obj, SI_BusLine::Event event) noexcept
 
void updatePositions () noexcept
 
void updateBusName () noexcept
 
std::shared_ptr< GraphicsLayergetLayer (const QString &name) const noexcept
 

Private Attributes

SI_BusLinemBusLine
 
std::shared_ptr< const GraphicsLayermLayer
 
QLineF mLineF
 
QRectF mBoundingRect
 
QPainterPath mShape
 
SI_BusLine::OnEditedSlot mOnBusLineEditedSlot
 

Detailed Description

The SGI_BusLine class.

Constructor & Destructor Documentation

◆ SGI_BusLine() [1/3]

SGI_BusLine ( )
delete

◆ SGI_BusLine() [2/3]

SGI_BusLine ( const SGI_BusLine other)
delete

◆ SGI_BusLine() [3/3]

SGI_BusLine ( SI_BusLine line,
const GraphicsLayerList layers 
)
noexcept

◆ ~SGI_BusLine()

~SGI_BusLine ( )
virtualnoexcept

Member Function Documentation

◆ getBusLine()

SI_BusLine & getBusLine ( )
inlinenoexcept

◆ boundingRect()

QRectF boundingRect ( ) const
inlineoverridenoexcept

◆ shape()

QPainterPath shape ( ) const
overridenoexcept

◆ paint()

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

◆ operator=()

SGI_BusLine & operator= ( const SGI_BusLine rhs)
delete

◆ busLineEdited()

void busLineEdited ( const SI_BusLine obj,
SI_BusLine::Event  event 
)
privatenoexcept

◆ updatePositions()

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

◆ updateBusName()

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

◆ getLayer()

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

Member Data Documentation

◆ mBusLine

SI_BusLine& mBusLine
private

◆ mLayer

std::shared_ptr<const GraphicsLayer> mLayer
private

◆ mLineF

QLineF mLineF
private

◆ mBoundingRect

QRectF mBoundingRect
private

◆ mShape

QPainterPath mShape
private

◆ mOnBusLineEditedSlot

SI_BusLine::OnEditedSlot mOnBusLineEditedSlot
private

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