20#ifndef LIBREPCB_EDITOR_SGI_SYMBOLPIN_H
21#define LIBREPCB_EDITOR_SGI_SYMBOLPIN_H
41class IF_GraphicsLayerProvider;
42class LineGraphicsItem;
43class PrimitiveCircleGraphicsItem;
44class PrimitiveTextGraphicsItem;
62 std::shared_ptr<
const QSet<const NetSignal*>>
63 highlightedNetSignals)
noexcept;
74 QPainterPath
shape() const noexcept override;
83 virtual QVariant
itemChange(GraphicsItemChange change,
84 const QVariant& value) noexcept override;
The NetSignal class.
Definition: netsignal.h:50
The SI_SymbolPin class.
Definition: si_symbolpin.h:52
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers.
Definition: graphicslayer.h:111
The LineGraphicsItem class.
Definition: linegraphicsitem.h:50
The PrimitiveCircleGraphicsItem class.
Definition: primitivecirclegraphicsitem.h:49
The PrimitiveTextGraphicsItem class is the graphical representation of a text.
Definition: primitivetextgraphicsitem.h:52
The SGI_Symbol class.
Definition: sgi_symbol.h:52
The SGI_SymbolPin class.
Definition: sgi_symbolpin.h:53
std::shared_ptr< const QSet< const NetSignal * > > mHighlightedNetSignals
Definition: sgi_symbolpin.h:98
QScopedPointer< PrimitiveTextGraphicsItem > mNumbersGraphicsItem
Definition: sgi_symbolpin.h:102
void updatePosition() noexcept
Definition: sgi_symbolpin.cpp:203
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition: sgi_symbolpin.cpp:145
QScopedPointer< PrimitiveCircleGraphicsItem > mCircleGraphicsItem
Definition: sgi_symbolpin.h:99
SGI_SymbolPin(const SGI_SymbolPin &other)=delete
void updateToolTip() noexcept
Definition: sgi_symbolpin.cpp:268
void updateRotation() noexcept
Definition: sgi_symbolpin.cpp:207
QPainterPath shape() const noexcept override
Definition: sgi_symbolpin.cpp:140
SI_SymbolPin & getPin() noexcept
Definition: sgi_symbolpin.h:67
void updateJunction() noexcept
Definition: sgi_symbolpin.cpp:230
void pinEdited(const SI_SymbolPin &obj, SI_SymbolPin::Event event) noexcept
Definition: sgi_symbolpin.cpp:158
const IF_GraphicsLayerProvider & mLayerProvider
Definition: sgi_symbolpin.h:97
QScopedPointer< LineGraphicsItem > mLineGraphicsItem
Definition: sgi_symbolpin.h:100
void updateName() noexcept
Definition: sgi_symbolpin.cpp:247
void updateHighlightedState() noexcept
Definition: sgi_symbolpin.cpp:127
SI_SymbolPin & mPin
Definition: sgi_symbolpin.h:95
void updateNumbers() noexcept
Definition: sgi_symbolpin.cpp:252
virtual ~SGI_SymbolPin() noexcept
Definition: sgi_symbolpin.cpp:120
void updateNumbersAlignment() noexcept
Definition: sgi_symbolpin.cpp:263
void symbolGraphicsItemEdited(const SGI_Symbol &obj, SGI_Symbol::Event event) noexcept
Definition: sgi_symbolpin.cpp:196
const std::weak_ptr< SGI_Symbol > & getSymbolGraphicsItem() noexcept
Definition: sgi_symbolpin.h:68
SI_SymbolPin::OnEditedSlot mOnPinEditedSlot
Definition: sgi_symbolpin.h:105
std::weak_ptr< SGI_Symbol > mSymbolGraphicsItem
Definition: sgi_symbolpin.h:96
QScopedPointer< PrimitiveTextGraphicsItem > mNameGraphicsItem
Definition: sgi_symbolpin.h:101
SGI_Symbol::OnEditedSlot mOnSymbolEditedSlot
Definition: sgi_symbolpin.h:106
void updateNumbersPosition() noexcept
Definition: sgi_symbolpin.cpp:257
Definition: occmodel.cpp:77