20#ifndef LIBREPCB_EDITOR_SGI_NETLABEL_H
21#define LIBREPCB_EDITOR_SGI_NETLABEL_H
40class IF_GraphicsLayerProvider;
41class LineGraphicsItem;
56 std::shared_ptr<
const QSet<const NetSignal*>>
57 highlightedNetSignals)
noexcept;
65 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option,
66 QWidget* widget)
noexcept override;
74 virtual QVariant
itemChange(GraphicsItemChange change,
75 const QVariant& value)
noexcept override;
The NetSignal class.
Definition: netsignal.h:50
The SI_NetLabel class.
Definition: si_netlabel.h:49
Event
Definition: si_netlabel.h:54
The GraphicsLayer class represents a graphical layer used in schematics and boards.
Definition: graphicslayer.h:53
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers.
Definition: graphicslayer.h:111
The LineGraphicsItem class.
Definition: linegraphicsitem.h:50
The SGI_NetLabel class.
Definition: sgi_netlabel.h:50
std::shared_ptr< const QSet< const NetSignal * > > mHighlightedNetSignals
Definition: sgi_netlabel.h:83
QRectF boundingRect() const noexcept override
Definition: sgi_netlabel.h:64
void updateText() noexcept
Definition: sgi_netlabel.cpp:192
bool mRotate180
Definition: sgi_netlabel.h:92
QVector< QLineF > mOverlines
Definition: sgi_netlabel.h:90
void updatePosition() noexcept
Definition: sgi_netlabel.cpp:184
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition: sgi_netlabel.cpp:141
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
Definition: sgi_netlabel.cpp:99
SGI_NetLabel(const SGI_NetLabel &other)=delete
SI_NetLabel & getNetLabel() noexcept
Definition: sgi_netlabel.h:61
void netLabelEdited(const SI_NetLabel &obj, SI_NetLabel::Event event) noexcept
Definition: sgi_netlabel.cpp:158
void updateRotation() noexcept
Definition: sgi_netlabel.cpp:188
QFont mFont
Definition: sgi_netlabel.h:91
QScopedPointer< LineGraphicsItem > mAnchorGraphicsItem
Definition: sgi_netlabel.h:86
QStaticText mStaticText
Definition: sgi_netlabel.h:89
SGI_NetLabel & operator=(const SGI_NetLabel &rhs)=delete
std::shared_ptr< GraphicsLayer > mOriginCrossLayer
Definition: sgi_netlabel.h:84
QRectF mBoundingRect
Definition: sgi_netlabel.h:94
virtual ~SGI_NetLabel() noexcept
Definition: sgi_netlabel.cpp:92
std::shared_ptr< GraphicsLayer > mNetLabelLayer
Definition: sgi_netlabel.h:85
QPointF mTextOrigin
Definition: sgi_netlabel.h:93
static QVector< QLineF > sOriginCrossLines
Definition: sgi_netlabel.h:100
void updateAnchor() noexcept
Definition: sgi_netlabel.cpp:235
SI_NetLabel::OnEditedSlot mOnEditedSlot
Definition: sgi_netlabel.h:97
SI_NetLabel & mNetLabel
Definition: sgi_netlabel.h:82
Definition: occmodel.cpp:77