20#ifndef LIBREPCB_CORE_BI_PLANE_H
21#define LIBREPCB_CORE_BI_PLANE_H
26#include "../../../exceptions.h"
27#include "../../../geometry/path.h"
28#include "../../../types/uuid.h"
The Board Item Base (BI_Base) class.
Definition bi_base.h:45
The BI_Plane class.
Definition bi_plane.h:52
bool mLocked
Definition bi_plane.h:142
const QVector< Path > & getFragments() const noexcept
Definition bi_plane.h:97
PositiveLength mThermalSpokeWidth
Definition bi_plane.h:141
BI_Plane & operator=(const BI_Plane &rhs)=delete
bool mKeepIslands
Definition bi_plane.h:137
void removeFromBoard() override
Definition bi_plane.cpp:199
int getPriority() const noexcept
Definition bi_plane.h:90
Signal< BI_Plane, Event > onEdited
Definition bi_plane.h:64
void setKeepIslands(bool keep) noexcept
Definition bi_plane.cpp:150
void setLayer(const Layer &layer) noexcept
Definition bi_plane.cpp:78
const UnsignedLength & getMinWidth() const noexcept
Definition bi_plane.h:85
NetSignal * mNetSignal
Optional (nullptr = no net)
Definition bi_plane.h:133
Uuid mUuid
Definition bi_plane.h:131
int mPriority
Definition bi_plane.h:138
const PositiveLength & getThermalSpokeWidth() const noexcept
Definition bi_plane.h:93
Event
Definition bi_plane.h:57
NetSignal * getNetSignal() const noexcept
Definition bi_plane.h:84
const UnsignedLength & getMinClearance() const noexcept
Definition bi_plane.h:86
void setCalculatedFragments(const QVector< Path > &fragments) noexcept
Definition bi_plane.cpp:171
const Layer & getLayer() const noexcept
Definition bi_plane.h:83
void setThermalGap(const PositiveLength &gap) noexcept
Definition bi_plane.cpp:129
BI_Plane(const BI_Plane &other)=delete
PositiveLength mThermalGap
Definition bi_plane.h:140
bool isLocked() const noexcept
Definition bi_plane.h:98
QVector< Path > mFragments
Definition bi_plane.h:145
~BI_Plane() noexcept
Definition bi_plane.cpp:63
Path mOutline
Definition bi_plane.h:134
Slot< BI_Plane, Event > OnEditedSlot
Definition bi_plane.h:65
void setNetSignal(NetSignal *netsignal)
Definition bi_plane.cpp:87
const PositiveLength & getThermalGap() const noexcept
Definition bi_plane.h:92
void setPriority(int priority) noexcept
Definition bi_plane.cpp:143
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition bi_plane.cpp:213
const Uuid & getUuid() const noexcept
Definition bi_plane.h:82
void setVisible(bool visible) noexcept
Definition bi_plane.cpp:164
void addToBoard() override
Definition bi_plane.cpp:185
const Layer * mLayer
Mandatory (never nullptr)
Definition bi_plane.h:132
void setConnectStyle(ConnectStyle style) noexcept
Definition bi_plane.cpp:122
const Path & getOutline() const noexcept
Definition bi_plane.h:96
bool getKeepIslands() const noexcept
Definition bi_plane.h:89
UnsignedLength mMinClearance
Definition bi_plane.h:136
void setMinWidth(const UnsignedLength &minWidth) noexcept
Definition bi_plane.cpp:108
void setLocked(bool locked) noexcept
Definition bi_plane.cpp:157
UnsignedLength mMinWidth
Definition bi_plane.h:135
void setMinClearance(const UnsignedLength &minClearance) noexcept
Definition bi_plane.cpp:115
ConnectStyle mConnectStyle
Definition bi_plane.h:139
bool mIsVisible
Definition bi_plane.h:143
void setOutline(const Path &outline) noexcept
Definition bi_plane.cpp:70
ConnectStyle getConnectStyle() const noexcept
Definition bi_plane.h:91
bool isVisible() const noexcept
Definition bi_plane.h:99
ConnectStyle
Definition bi_plane.h:68
@ ThermalRelief
Add thermal spokes to connect pads to plane.
@ None
Do not connect pads to plane.
@ Solid
Completely connect pads to plane.
void setThermalSpokeWidth(const PositiveLength &width) noexcept
Definition bi_plane.cpp:136
The Board class represents a PCB of a project and is always part of a circuit.
Definition board.h:73
The Layer class provides all supported geometry layers.
Definition layer.h:42
The NetSignal class.
Definition netsignal.h:50
The Path class represents a list of vertices connected by straight lines or circular arc segments.
Definition path.h:57
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 Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition uuid.h:56
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694