LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ( SI_NetLabel netlabel)
explicitnoexcept

+ Here is the call graph for this function:

~SGI_NetLabel ( )
noexcept
SGI_NetLabel ( )
privatedelete
SGI_NetLabel ( const SGI_NetLabel other)
privatedelete

Member Function Documentation

void updateCacheAndRepaint ( )
noexcept

+ Here is the call graph for this function:

void setAnchor ( const Point pos)
noexcept

+ Here is the call graph for this function:

QRectF boundingRect ( ) const
inline
void paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

+ Here is the call graph for this function:

SGI_NetLabel& operator= ( const SGI_NetLabel rhs)
privatedelete
GraphicsLayer * getLayer ( const QString &  name) const
privatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

SI_NetLabel& mNetLabel
private
QScopedPointer<LineGraphicsItem> mAnchorGraphicsItem
private
QStaticText mStaticText
private
QFont mFont
private
bool mRotate180
private
QPointF mTextOrigin
private
QRectF mBoundingRect
private
QVector< QLineF > sOriginCrossLines
staticprivate

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