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"
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
static Angle deg0() noexcept
0 degrees
Definition: angle.h:351
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
uint Hash
Return type of Qt's qHash() function.
Definition: qtcompat.h:58
The SExpression class.
Definition: sexpression.h:69
The Vertex class.
Definition: vertex.h:44
Angle mAngle
Definition: vertex.h:91
const Point & getPos() const noexcept
Definition: vertex.h:56
Vertex(const Point &pos, const Angle &angle=Angle::deg0()) noexcept
Definition: vertex.h:50
bool operator!=(const Vertex &rhs) const noexcept
Definition: vertex.h:75
Vertex() noexcept
Definition: vertex.h:47
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
void setPos(const Point &pos) noexcept
Definition: vertex.h:60
Vertex(const Vertex &other) noexcept
Definition: vertex.h:48
bool operator<(const Vertex &rhs) const noexcept
The "<" operator to compare two librepcb::Vertex objects.
Definition: vertex.cpp:66
Vertex & operator=(const Vertex &rhs) noexcept
Definition: vertex.cpp:56
Point mPos
Definition: vertex.h:90
const Angle & getAngle() const noexcept
Definition: vertex.h:57
Definition: occmodel.cpp:77
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
QDataStream & operator<<(QDataStream &stream, const AttributeKey &obj)
Definition: attributekey.h:109