20#ifndef LIBREPCB_CORE_BOARDPLANEFRAGMENTSBUILDER_H
21#define LIBREPCB_CORE_BOARDPLANEFRAGMENTSBUILDER_H
26#include "../../geometry/path.h"
27#include "../../geometry/zone.h"
28#include "../../types/uuid.h"
29#include "../../utils/transform.h"
59 QObject* parent =
nullptr)
noexcept;
77 const QSet<const
Layer*>* layers =
nullptr);
96 const QSet<const
Layer*>* layers =
nullptr) noexcept;
104 bool isBusy() const noexcept;
182 QList<std::tuple<Transform, PositiveLength, NonEmptyPath>>
holes;
189 const QSet<const Layer*>* filter)
noexcept;
190 std::shared_ptr<JobData>
run(std::shared_ptr<JobData> data,
191 bool exceptionOnError);
194 bool applyToBoard(std::shared_ptr<JobData> data)
noexcept;
ConnectStyle
Definition: bi_plane.h:68
The Board class represents a PCB of a project and is always part of a circuit.
Definition: board.h:73
Plane fragments builder working on a librepcb::Board.
Definition: boardplanefragmentsbuilder.h:53
void boardPlanesModified()
std::shared_ptr< JobData > createJob(Board &board, const QSet< const Layer * > *filter) noexcept
Definition: boardplanefragmentsbuilder.cpp:123
void cancel() noexcept
Cancel the current asynchronous job.
Definition: boardplanefragmentsbuilder.cpp:112
bool isBusy() const noexcept
Check if there is currently a build in progress.
Definition: boardplanefragmentsbuilder.cpp:107
BoardPlaneFragmentsBuilder(const BoardPlaneFragmentsBuilder &other)=delete
bool mAbort
Definition: boardplanefragmentsbuilder.h:209
std::shared_ptr< JobData > run(std::shared_ptr< JobData > data, bool exceptionOnError)
Definition: boardplanefragmentsbuilder.cpp:259
static PositiveLength maxArcTolerance() noexcept
Definition: boardplanefragmentsbuilder.h:201
BoardPlaneFragmentsBuilder(bool rebuildAirWires=false, QObject *parent=nullptr) noexcept
Definition: boardplanefragmentsbuilder.cpp:58
bool startAsynchronously(Board &board, const QSet< const Layer * > *layers=nullptr) noexcept
Start building plane fragments asynchronously.
Definition: boardplanefragmentsbuilder.cpp:89
const bool mRebuildAirWires
Definition: boardplanefragmentsbuilder.h:206
bool applyToBoard(std::shared_ptr< JobData > data) noexcept
Definition: boardplanefragmentsbuilder.cpp:789
QFutureWatcher< std::shared_ptr< JobData > > mWatcher
Definition: boardplanefragmentsbuilder.h:208
void runSynchronously(Board &board, const QSet< const Layer * > *layers=nullptr)
Build and apply plane fragments synchronously (blocking)
Definition: boardplanefragmentsbuilder.cpp:78
static QVector< std::pair< Point, Angle > > determineThermalSpokes(const PadGeometry &geometry) noexcept
Definition: boardplanefragmentsbuilder.cpp:723
~BoardPlaneFragmentsBuilder() noexcept
Definition: boardplanefragmentsbuilder.cpp:70
QFuture< std::shared_ptr< JobData > > mFuture
Definition: boardplanefragmentsbuilder.h:207
The Layer class provides all supported geometry layers.
Definition: layer.h:40
The PadGeometry class describes the shape of a pad.
Definition: padgeometry.h:46
The Path class represents a list of vertices connected by straight lines or circular arc segments.
Definition: path.h:58
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
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< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696
Definition: boardplanefragmentsbuilder.h:174
QHash< Uuid, QVector< Path > > result
Definition: boardplanefragmentsbuilder.h:184
QList< std::tuple< Transform, PositiveLength, NonEmptyPath > > holes
Definition: boardplanefragmentsbuilder.h:182
QList< PolygonData > polygons
Definition: boardplanefragmentsbuilder.h:179
QList< TraceData > traces
Definition: boardplanefragmentsbuilder.h:183
QList< KeepoutZoneData > keepoutZones
Definition: boardplanefragmentsbuilder.h:178
bool finished
Definition: boardplanefragmentsbuilder.h:185
QList< PlaneData > planes
Definition: boardplanefragmentsbuilder.h:177
QList< ViaData > vias
Definition: boardplanefragmentsbuilder.h:180
QList< PadData > pads
Definition: boardplanefragmentsbuilder.h:181
QPointer< Board > board
Definition: boardplanefragmentsbuilder.h:175
QSet< const Layer * > layers
Definition: boardplanefragmentsbuilder.h:176
Definition: boardplanefragmentsbuilder.h:135
QSet< const Layer * > boardLayers
Definition: boardplanefragmentsbuilder.h:138
Transform transform
Definition: boardplanefragmentsbuilder.h:136
Zone::Layers layers
Definition: boardplanefragmentsbuilder.h:137
Path outline
Definition: boardplanefragmentsbuilder.h:139
Definition: boardplanefragmentsbuilder.h:159
Transform transform
Definition: boardplanefragmentsbuilder.h:160
tl::optional< Uuid > netSignal
Definition: boardplanefragmentsbuilder.h:161
QHash< const Layer *, QList< PadGeometry > > geometries
Definition: boardplanefragmentsbuilder.h:163
UnsignedLength clearance
Definition: boardplanefragmentsbuilder.h:162
Definition: boardplanefragmentsbuilder.h:121
Uuid uuid
Definition: boardplanefragmentsbuilder.h:122
tl::optional< Uuid > netSignal
Definition: boardplanefragmentsbuilder.h:124
bool keepIslands
Definition: boardplanefragmentsbuilder.h:128
Path outline
Definition: boardplanefragmentsbuilder.h:125
UnsignedLength minClearance
Definition: boardplanefragmentsbuilder.h:127
UnsignedLength minWidth
Definition: boardplanefragmentsbuilder.h:126
PositiveLength thermalSpokeWidth
Definition: boardplanefragmentsbuilder.h:132
BI_Plane::ConnectStyle connectStyle
Definition: boardplanefragmentsbuilder.h:130
int priority
Definition: boardplanefragmentsbuilder.h:129
const Layer * layer
Definition: boardplanefragmentsbuilder.h:123
PositiveLength thermalGap
Definition: boardplanefragmentsbuilder.h:131
Definition: boardplanefragmentsbuilder.h:142
UnsignedLength width
Definition: boardplanefragmentsbuilder.h:147
bool filled
Definition: boardplanefragmentsbuilder.h:148
Transform transform
Definition: boardplanefragmentsbuilder.h:143
tl::optional< Uuid > netSignal
Definition: boardplanefragmentsbuilder.h:145
Path path
Definition: boardplanefragmentsbuilder.h:146
const Layer * layer
Definition: boardplanefragmentsbuilder.h:144
Definition: boardplanefragmentsbuilder.h:166
Point startPos
Definition: boardplanefragmentsbuilder.h:169
tl::optional< Uuid > netSignal
Definition: boardplanefragmentsbuilder.h:168
Point endPos
Definition: boardplanefragmentsbuilder.h:170
const Layer * layer
Definition: boardplanefragmentsbuilder.h:167
PositiveLength width
Definition: boardplanefragmentsbuilder.h:171
Definition: boardplanefragmentsbuilder.h:151
tl::optional< Uuid > netSignal
Definition: boardplanefragmentsbuilder.h:152
const Layer * endLayer
Definition: boardplanefragmentsbuilder.h:156
PositiveLength diameter
Definition: boardplanefragmentsbuilder.h:154
const Layer * startLayer
Definition: boardplanefragmentsbuilder.h:155
Point position
Definition: boardplanefragmentsbuilder.h:153