20 #ifndef LIBREPCB_CORE_VERTEX_H 21 #define LIBREPCB_CORE_VERTEX_H 26 #include "../types/angle.h" 27 #include "../types/point.h" The Vertex class.
Definition: vertex.h:43
QDataStream & operator<<(QDataStream &stream, const AttributeKey &obj)
Definition: attributekey.h:108
Vertex(const Vertex &other) noexcept
Definition: vertex.h:47
Definition: occmodel.cpp:76
Angle mAngle
Definition: vertex.h:90
Vertex() noexcept
Definition: vertex.h:46
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:76
Vertex(const Point &pos, const Angle &angle=Angle::deg0()) noexcept
Definition: vertex.h:49
Vertex & operator=(const Vertex &rhs) noexcept
Definition: vertex.cpp:56
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:78
static Angle deg0() noexcept
0 degrees
Definition: angle.h:346
const Angle & getAngle() const noexcept
Definition: vertex.h:56
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: vertex.cpp:47
uint qHash(const Vertex &key, uint seed=0) noexcept
Definition: vertex.h:100
bool operator==(const Vertex &rhs) const noexcept
Definition: vertex.cpp:62
void setAngle(const Angle &angle) noexcept
Definition: vertex.h:60
~Vertex() noexcept
Definition: vertex.h:52
Point mPos
Definition: vertex.h:89
bool operator<(const Vertex &rhs) const noexcept
The "<" operator to compare two librepcb::Vertex objects.
Definition: vertex.cpp:66
const Point & getPos() const noexcept
Definition: vertex.h:55
The SExpression class.
Definition: sexpression.h:66
bool operator!=(const Vertex &rhs) const noexcept
Definition: vertex.h:74
uint qHash(const AttributeKey &key, uint seed=0) noexcept
Definition: attributekey.h:118
void setPos(const Point &pos) noexcept
Definition: vertex.h:59