20#ifndef LIBREPCB_CORE_BOARDHOLEDATA_H
21#define LIBREPCB_CORE_BOARDHOLEDATA_H
26#include "../../geometry/path.h"
27#include "../../types/length.h"
28#include "../../types/maskconfig.h"
29#include "../../types/uuid.h"
65 bool isSlot() const noexcept {
return mPath->getVertices().count() > 1; }
67 return mPath->getVertices().count() > 2;
90 return !(*
this == rhs);
The BoardHoleData class.
Definition: boardholedata.h:45
bool mLocked
Definition: boardholedata.h:99
bool isSlot() const noexcept
Definition: boardholedata.h:65
bool isMultiSegmentSlot() const noexcept
Definition: boardholedata.h:66
const MaskConfig & getStopMaskConfig() const noexcept
Definition: boardholedata.h:61
bool setStopMaskConfig(const MaskConfig &config) noexcept
Definition: boardholedata.cpp:107
BoardHoleData & operator=(const BoardHoleData &rhs)=default
bool operator==(const BoardHoleData &rhs) const noexcept
Definition: boardholedata.cpp:143
Uuid mUuid
Definition: boardholedata.h:95
NonEmptyPath mPath
Definition: boardholedata.h:97
bool setPath(const NonEmptyPath &path) noexcept
Definition: boardholedata.cpp:98
bool isLocked() const noexcept
Definition: boardholedata.h:64
const PositiveLength & getDiameter() const noexcept
Definition: boardholedata.h:59
MaskConfig mStopMaskConfig
Definition: boardholedata.h:98
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: boardholedata.cpp:129
const Uuid & getUuid() const noexcept
Definition: boardholedata.h:58
bool isCurvedSlot() const noexcept
Definition: boardholedata.h:69
bool operator!=(const BoardHoleData &rhs) const noexcept
Definition: boardholedata.h:89
PositiveLength mDiameter
Definition: boardholedata.h:96
bool setLocked(bool locked) noexcept
Definition: boardholedata.cpp:116
bool setDiameter(const PositiveLength &diameter) noexcept
Definition: boardholedata.cpp:89
const NonEmptyPath & getPath() const noexcept
Definition: boardholedata.h:60
bool setUuid(const Uuid &uuid) noexcept
Definition: boardholedata.cpp:80
~BoardHoleData() noexcept
Definition: boardholedata.cpp:73
The MaskConfig class defines how to add automatic stop mask or solder paste.
Definition: maskconfig.h:45
The SExpression class.
Definition: sexpression.h:69
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
type_safe::constrained_type< Path, NonEmptyPathConstraint, NonEmptyPathVerifier > NonEmptyPath
Definition: path.h:222