LibrePCB Developers Documentation
SGI_NetLabel Class Referencefinal

The SGI_NetLabel class. More...

#include <sgi_netlabel.h>

+ Inheritance diagram for SGI_NetLabel:
+ Collaboration diagram for SGI_NetLabel:

Public Member Functions

 SGI_NetLabel (SI_NetLabel &netlabel) noexcept
 
 ~SGI_NetLabel () noexcept
 
void updateCacheAndRepaint () noexcept
 
void setAnchor (const Point &pos) noexcept
 
QRectF boundingRect () const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
- Public Member Functions inherited from SGI_Base
 SGI_Base () noexcept
 
virtual ~SGI_Base () noexcept
 

Private Member Functions

 SGI_NetLabel ()=delete
 
 SGI_NetLabel (const SGI_NetLabel &other)=delete
 
SGI_NetLabeloperator= (const SGI_NetLabel &rhs)=delete
 
GraphicsLayergetLayer (const QString &name) const noexcept
 

Private Attributes

SI_NetLabelmNetLabel
 
QScopedPointer< LineGraphicsItemmAnchorGraphicsItem
 
QStaticText mStaticText
 
QFont mFont
 
bool mRotate180
 
QPointF mTextOrigin
 
QRectF mBoundingRect
 

Static Private Attributes

static QVector< QLineF > sOriginCrossLines
 

Detailed Description

The SGI_NetLabel class.

Constructor & Destructor Documentation

◆ SGI_NetLabel() [1/3]

SGI_NetLabel ( SI_NetLabel netlabel)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~SGI_NetLabel()

~SGI_NetLabel ( )
noexcept

◆ SGI_NetLabel() [2/3]

SGI_NetLabel ( )
privatedelete
+ Here is the caller graph for this function:

◆ SGI_NetLabel() [3/3]

SGI_NetLabel ( const SGI_NetLabel other)
privatedelete

Member Function Documentation

◆ updateCacheAndRepaint()

void updateCacheAndRepaint ( )
noexcept
+ Here is the call graph for this function:

◆ setAnchor()

void setAnchor ( const Point pos)
noexcept
+ Here is the call graph for this function:

◆ boundingRect()

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

◆ paint()

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

◆ operator=()

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

◆ getLayer()

GraphicsLayer * getLayer ( const QString &  name) const
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

◆ mAnchorGraphicsItem

QScopedPointer<LineGraphicsItem> mAnchorGraphicsItem
private

◆ mStaticText

QStaticText mStaticText
private

◆ mFont

QFont mFont
private

◆ mRotate180

bool mRotate180
private

◆ mTextOrigin

QPointF mTextOrigin
private

◆ mBoundingRect

QRectF mBoundingRect
private

◆ sOriginCrossLines

QVector< QLineF > sOriginCrossLines
staticprivate

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