Plane fragments builder working on a librepcb::Board.
More...
#include <boardplanefragmentsbuilder.h>
Inherits QObject.
Plane fragments builder working on a librepcb::Board.
◆ BoardPlaneFragmentsBuilder() [1/2]
◆ BoardPlaneFragmentsBuilder() [2/2]
◆ ~BoardPlaneFragmentsBuilder()
◆ runSynchronously()
void runSynchronously |
( |
Board & |
board, |
|
|
const QSet< const Layer * > * |
layers = nullptr |
|
) |
| |
Build and apply plane fragments synchronously (blocking)
- Parameters
-
board | The board to rebuild the planes of. |
layers | If not nullptr , rebuild only planes which are scheduled to rebuild and located on the given layers (quick rebuild). If nullptr (default), rebuild all planes (more reliable, but slower). |
- Exceptions
-
◆ startAsynchronously()
bool startAsynchronously |
( |
Board & |
board, |
|
|
const QSet< const Layer * > * |
layers = nullptr |
|
) |
| |
|
noexcept |
Start building plane fragments asynchronously.
The calculated fragments will automatically be applied to the board once the rebuild is finished.
- Parameters
-
board | The board to rebuild the planes of. |
layers | If not nullptr , rebuild only planes which are scheduled to rebuild and located on the given layers (quick rebuild). If nullptr (default), rebuild all planes (more reliable, but slower). |
- Return values
-
true | If the build started. |
false | If none of the planes need a rebuild, thus did not start a rebuild. |
◆ isBusy()
Check if there is currently a build in progress.
- Return values
-
true | if a build is in progress. |
false | if idle. |
◆ cancel()
Cancel the current asynchronous job.
◆ operator=()
◆ started
◆ finished
◆ boardPlanesModified
void boardPlanesModified |
( |
| ) |
|
|
signal |
◆ createJob()
◆ run()
◆ determineThermalSpokes()
◆ applyToBoard()
bool applyToBoard |
( |
std::shared_ptr< JobData > |
data | ) |
|
|
privatenoexcept |
◆ maxArcTolerance()
|
inlinestaticprivatenoexcept |
Returns the maximum allowed arc tolerance when flattening arcs. Do not change this if you don't know exactly what you're doing (it affects all planes in all existing boards)!
◆ mRebuildAirWires
const bool mRebuildAirWires |
|
private |
◆ mFuture
QFuture<std::shared_ptr<JobData> > mFuture |
|
private |
◆ mWatcher
QFutureWatcher<std::shared_ptr<JobData> > mWatcher |
|
private |
◆ mAbort
The documentation for this class was generated from the following files: