20 #ifndef LIBREPCB_CORE_VERTEX_H 21 #define LIBREPCB_CORE_VERTEX_H 26 #include "../qtcompat.h" 27 #include "../types/angle.h" 28 #include "../types/point.h" QtCompat::Hash qHash(const AttributeKey &key, QtCompat::Hash seed=0) noexcept
Definition: attributekey.h:119
QtCompat::Hash qHash(const Vertex &key, QtCompat::Hash seed=0) noexcept
Definition: vertex.h:101
The Vertex class.
Definition: vertex.h:44
QDataStream & operator<<(QDataStream &stream, const AttributeKey &obj)
Definition: attributekey.h:109
Vertex(const Vertex &other) noexcept
Definition: vertex.h:48
Definition: occmodel.cpp:77
Angle mAngle
Definition: vertex.h:91
Vertex() noexcept
Definition: vertex.h:47
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
Vertex(const Point &pos, const Angle &angle=Angle::deg0()) noexcept
Definition: vertex.h:50
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:79
static Angle deg0() noexcept
0 degrees
Definition: angle.h:351
const Angle & getAngle() const noexcept
Definition: vertex.h:57
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: vertex.cpp:47
bool operator==(const Vertex &rhs) const noexcept
Definition: vertex.cpp:62
void setAngle(const Angle &angle) noexcept
Definition: vertex.h:61
~Vertex() noexcept
Definition: vertex.h:53
uint Hash
Return type of Qt's qHash() function.
Definition: qtcompat.h:58
Point mPos
Definition: vertex.h:90
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:56
The SExpression class.
Definition: sexpression.h:69
bool operator!=(const Vertex &rhs) const noexcept
Definition: vertex.h:75
void setPos(const Point &pos) noexcept
Definition: vertex.h:60