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