20#ifndef LIBREPCB_CORE_SI_SYMBOLPIN_H
21#define LIBREPCB_CORE_SI_SYMBOLPIN_H
26#include "../../../types/angle.h"
27#include "../../../types/point.h"
40class ComponentPinSignalMapItem;
42class ComponentSignalInstance;
63 NumbersPositionChanged,
64 NumbersAlignmentChanged,
The Alignment class.
Definition: alignment.h:115
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The ComponentPinSignalMapItem class maps a symbol pin to a component signal.
Definition: componentpinsignalmap.h:50
The ComponentSignalInstance class.
Definition: componentsignalinstance.h:49
The NetLineAnchor class.
Definition: netline.h:44
The NetSignal class.
Definition: netsignal.h:50
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The Schematic Item Base (SI_Base) class.
Definition: si_base.h:45
Definition: si_netline.h:44
The SI_NetLine class.
Definition: si_netline.h:65
The SI_NetSegment class.
Definition: si_netsegment.h:53
The SI_Symbol class.
Definition: si_symbol.h:54
Event
Definition: si_symbol.h:59
The SI_SymbolPin class.
Definition: si_symbolpin.h:52
const Alignment & getNumbersAlignment() const noexcept
Definition: si_symbolpin.h:102
const Angle & getRotation() const noexcept
Get the absolute rotation of the pin (scene coordinates)
Definition: si_symbolpin.h:90
~SI_SymbolPin()
Definition: si_symbolpin.cpp:86
const Point & getPosition() const noexcept override
Get the absolute position of the pin (scene coordinates)
Definition: si_symbolpin.h:83
ComponentSignalInstance * getComponentSignalInstance() const noexcept
Definition: si_symbolpin.h:109
const Uuid & getLibPinUuid() const noexcept
Definition: si_symbolpin.cpp:94
SI_Symbol::OnEditedSlot mOnSymbolEditedSlot
Definition: si_symbolpin.h:168
const QString & getName() const noexcept
Definition: si_symbolpin.h:92
void unregisterNetLine(SI_NetLine &netline) override
Definition: si_symbolpin.cpp:185
QString getNetSignalName() const noexcept
Definition: si_symbolpin.cpp:341
QSet< SI_NetLine * > mRegisteredNetLines
all registered netlines
Definition: si_symbolpin.h:165
void registerNetLine(SI_NetLine &netline) override
Definition: si_symbolpin.cpp:152
SI_Symbol & getSymbol() const noexcept
Definition: si_symbolpin.h:107
Slot< SI_SymbolPin, Event > OnEditedSlot
Definition: si_symbolpin.h:68
const QStringList & getNumbers() const noexcept
Definition: si_symbolpin.h:94
ComponentSignalInstance * mComponentSignalInstance
Definition: si_symbolpin.h:153
bool isUsed() const noexcept
Definition: si_symbolpin.h:115
NetLineAnchor toNetLineAnchor() const noexcept override
Definition: si_symbolpin.cpp:124
const SymbolPin & getLibPin() const noexcept
Definition: si_symbolpin.h:108
Event
Definition: si_symbolpin.h:57
SI_SymbolPin(const SI_SymbolPin &other)=delete
QString mName
Definition: si_symbolpin.h:158
void symbolEdited(const SI_Symbol &obj, SI_Symbol::Event event) noexcept
Definition: si_symbolpin.cpp:199
const QSet< SI_NetLine * > & getNetLines() const noexcept override
Definition: si_symbolpin.h:129
const ComponentPinSignalMapItem * mPinSignalMapItem
Definition: si_symbolpin.h:152
bool isOpen() const noexcept override
Definition: si_symbolpin.h:117
void removeFromSchematic() override
Definition: si_symbolpin.cpp:142
const Point & getNumbersPosition() const noexcept
Definition: si_symbolpin.h:100
void netSignalChanged(NetSignal *from, NetSignal *to) noexcept
Definition: si_symbolpin.cpp:215
bool isRequired() const noexcept
Definition: si_symbolpin.cpp:112
Signal< SI_SymbolPin, Event > onEdited
Definition: si_symbolpin.h:67
void updateName() noexcept
Definition: si_symbolpin.cpp:256
const QString & getNumbersTruncated() const noexcept
Definition: si_symbolpin.h:96
void updateNumbers() noexcept
Definition: si_symbolpin.cpp:279
void updateTransform() noexcept
Definition: si_symbolpin.cpp:238
void addToSchematic() override
Definition: si_symbolpin.cpp:132
Angle mRotation
Definition: si_symbolpin.h:157
SI_SymbolPin & operator=(const SI_SymbolPin &rhs)=delete
QString getComponentSignalNameOrPinUuid() const noexcept
Definition: si_symbolpin.cpp:335
const SymbolPin * mSymbolPin
Definition: si_symbolpin.h:151
QString getLibraryComponentName() const noexcept
Definition: si_symbolpin.cpp:328
void padNamesChanged(const QStringList &names) noexcept
Alignment mNumbersAlignment
Definition: si_symbolpin.h:162
SI_Symbol & mSymbol
Definition: si_symbolpin.h:150
void netSignalNameChanged() noexcept
Definition: si_symbolpin.cpp:233
void updateNumbersTransform() noexcept
Definition: si_symbolpin.cpp:314
NetSignal * getCompSigInstNetSignal() const noexcept
Definition: si_symbolpin.cpp:98
QStringList mNumbers
Definition: si_symbolpin.h:159
Point mPosition
Definition: si_symbolpin.h:156
Point mNumbersPosition
Definition: si_symbolpin.h:161
bool isVisibleJunction() const noexcept
Definition: si_symbolpin.cpp:120
SI_NetSegment * getNetSegmentOfLines() const noexcept
Definition: si_symbolpin.cpp:106
QString mNumbersTruncated
Definition: si_symbolpin.h:160
The Signal class is used to emit signals on non-QObject derived classes.
Definition: signalslot.h:65
The SymbolPin class represents one pin of a symbol.
Definition: symbolpin.h:51
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
Definition: occmodel.cpp:77