20#ifndef LIBREPCB_CORE_SYMBOLPIN_H
21#define LIBREPCB_CORE_SYMBOLPIN_H
26#include "../../serialization/serializableobjectlist.h"
27#include "../../types/alignment.h"
28#include "../../types/angle.h"
29#include "../../types/circuitidentifier.h"
30#include "../../types/length.h"
31#include "../../types/point.h"
76 const Angle& rotation,
const Point& namePosition,
116 return !(*
this == rhs);
The Alignment class.
Definition alignment.h:115
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
static HAlign right() noexcept
Definition alignment.h:54
static HAlign left() noexcept
Definition alignment.h:52
The Length class is used to represent a length (for example 12.75 millimeters)
Definition length.h:82
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The SExpression class.
Definition sexpression.h:69
The Signal class is used to emit signals on non-QObject derived classes.
Definition signalslot.h:65
The Slot class is used to receive signals from non-QObject derived classes.
Definition signalslot.h:170
The SymbolPin class represents one pin of a symbol.
Definition symbolpin.h:51
SymbolPin & operator=(const SymbolPin &rhs) noexcept
Definition symbolpin.cpp:217
const Angle & getRotation() const noexcept
Definition symbolpin.h:87
bool setPosition(const Point &pos) noexcept
Definition symbolpin.cpp:110
Alignment mNameAlignment
Definition symbolpin.h:147
bool setName(const CircuitIdentifier &name) noexcept
Definition symbolpin.cpp:100
const PositiveLength & getNameHeight() const noexcept
Definition symbolpin.h:90
const Point & getNamePosition() const noexcept
Definition symbolpin.h:88
static Point getDefaultNamePosition(const UnsignedLength &length) noexcept
Definition symbolpin.h:121
bool setNameHeight(const PositiveLength &height) noexcept
Definition symbolpin.cpp:160
Uuid mUuid
Definition symbolpin.h:139
Event
Definition symbolpin.h:56
bool setNameAlignment(const Alignment &align) noexcept
Definition symbolpin.cpp:170
static PositiveLength getNumbersHeight() noexcept
Definition symbolpin.h:130
Point mNamePosition
Definition symbolpin.h:144
const CircuitIdentifier & getName() const noexcept
Definition symbolpin.h:84
~SymbolPin() noexcept
Definition symbolpin.cpp:85
Signal< SymbolPin, Event > onEdited
Definition symbolpin.h:67
bool setNameRotation(const Angle &rotation) noexcept
Definition symbolpin.cpp:150
const UnsignedLength & getLength() const noexcept
Definition symbolpin.h:86
static Alignment getNumbersAlignment(bool flipped) noexcept
Definition symbolpin.h:133
Angle mRotation
Definition symbolpin.h:143
bool operator==(const SymbolPin &rhs) const noexcept
Definition symbolpin.cpp:204
bool setNamePosition(const Point &position) noexcept
Definition symbolpin.cpp:140
const Point & getPosition() const noexcept
Definition symbolpin.h:85
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition symbolpin.cpp:184
bool operator!=(const SymbolPin &rhs) const noexcept
Definition symbolpin.h:115
const Angle & getNameRotation() const noexcept
Definition symbolpin.h:89
const Uuid & getUuid() const noexcept
Definition symbolpin.h:83
static Alignment getDefaultNameAlignment() noexcept
Definition symbolpin.h:127
bool setRotation(const Angle &rotation) noexcept
Definition symbolpin.cpp:130
UnsignedLength mLength
Definition symbolpin.h:142
Angle mNameRotation
Definition symbolpin.h:145
bool setLength(const UnsignedLength &length) noexcept
Definition symbolpin.cpp:120
const Alignment & getNameAlignment() const noexcept
Definition symbolpin.h:91
CircuitIdentifier mName
Definition symbolpin.h:140
PositiveLength mNameHeight
Definition symbolpin.h:146
Slot< SymbolPin, Event > OnEditedSlot
Definition symbolpin.h:68
Point mPosition
Definition symbolpin.h:141
Point getNumbersPosition(bool flipped) const noexcept
Definition symbolpin.cpp:92
static PositiveLength getDefaultNameHeight() noexcept
Definition symbolpin.h:124
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition uuid.h:56
static VAlign bottom() noexcept
Definition alignment.h:90
static VAlign top() noexcept
Definition alignment.h:88
static VAlign center() noexcept
Definition alignment.h:89
Definition occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
type_safe::constrained_type< QString, CircuitIdentifierConstraint, CircuitIdentifierVerifier > CircuitIdentifier
Definition circuitidentifier.h:88
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694
Definition symbolpin.h:154
static constexpr const char * tagname
Definition symbolpin.h:155