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"
75 const Angle& rotation,
const Point& namePosition,
115 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:212
const Angle & getRotation() const noexcept
Definition symbolpin.h:86
bool setPosition(const Point &pos) noexcept
Definition symbolpin.cpp:105
Alignment mNameAlignment
Definition symbolpin.h:146
bool setName(const CircuitIdentifier &name) noexcept
Definition symbolpin.cpp:95
const PositiveLength & getNameHeight() const noexcept
Definition symbolpin.h:89
const Point & getNamePosition() const noexcept
Definition symbolpin.h:87
static Point getDefaultNamePosition(const UnsignedLength &length) noexcept
Definition symbolpin.h:120
bool setNameHeight(const PositiveLength &height) noexcept
Definition symbolpin.cpp:155
Uuid mUuid
Definition symbolpin.h:138
Event
Definition symbolpin.h:56
bool setNameAlignment(const Alignment &align) noexcept
Definition symbolpin.cpp:165
static PositiveLength getNumbersHeight() noexcept
Definition symbolpin.h:129
Point mNamePosition
Definition symbolpin.h:143
const CircuitIdentifier & getName() const noexcept
Definition symbolpin.h:83
~SymbolPin() noexcept
Definition symbolpin.cpp:80
Signal< SymbolPin, Event > onEdited
Definition symbolpin.h:67
bool setNameRotation(const Angle &rotation) noexcept
Definition symbolpin.cpp:145
const UnsignedLength & getLength() const noexcept
Definition symbolpin.h:85
static Alignment getNumbersAlignment(bool flipped) noexcept
Definition symbolpin.h:132
Angle mRotation
Definition symbolpin.h:142
bool operator==(const SymbolPin &rhs) const noexcept
Definition symbolpin.cpp:199
bool setNamePosition(const Point &position) noexcept
Definition symbolpin.cpp:135
const Point & getPosition() const noexcept
Definition symbolpin.h:84
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition symbolpin.cpp:179
bool operator!=(const SymbolPin &rhs) const noexcept
Definition symbolpin.h:114
const Angle & getNameRotation() const noexcept
Definition symbolpin.h:88
const Uuid & getUuid() const noexcept
Definition symbolpin.h:82
static Alignment getDefaultNameAlignment() noexcept
Definition symbolpin.h:126
bool setRotation(const Angle &rotation) noexcept
Definition symbolpin.cpp:125
UnsignedLength mLength
Definition symbolpin.h:141
Angle mNameRotation
Definition symbolpin.h:144
bool setLength(const UnsignedLength &length) noexcept
Definition symbolpin.cpp:115
const Alignment & getNameAlignment() const noexcept
Definition symbolpin.h:90
CircuitIdentifier mName
Definition symbolpin.h:139
PositiveLength mNameHeight
Definition symbolpin.h:145
Slot< SymbolPin, Event > OnEditedSlot
Definition symbolpin.h:68
Point mPosition
Definition symbolpin.h:140
Point getNumbersPosition(bool flipped) const noexcept
Definition symbolpin.cpp:87
static PositiveLength getDefaultNameHeight() noexcept
Definition symbolpin.h:123
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:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
type_safe::constrained_type< QString, CircuitIdentifierConstraint, CircuitIdentifierVerifier > CircuitIdentifier
Definition circuitidentifier.h:95
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694
Definition symbolpin.h:153
static constexpr const char * tagname
Definition symbolpin.h:154