LibrePCB Developers Documentation
BoardClipperPathGenerator Class Referencefinal

The BoardClipperPathGenerator class creates a Clipper path from a librepcb::Board. More...

#include <boardclipperpathgenerator.h>

+ Collaboration diagram for BoardClipperPathGenerator:

Public Member Functions

 BoardClipperPathGenerator (Board &board, const PositiveLength &maxArcTolerance) noexcept
 
 ~BoardClipperPathGenerator () noexcept
 
const ClipperLib::Paths & getPaths () const noexcept
 
void takePathsTo (ClipperLib::Paths &out) noexcept
 
void addCopper (const Layer &layer, const QSet< const NetSignal *> &netsignals, bool ignorePlanes=false)
 
void addStopMaskOpenings (const Layer &layer, const Length &offset=Length(0))
 
void addVia (const BI_Via &via, const Length &offset=Length(0))
 
void addNetLine (const BI_NetLine &netLine, const Length &offset=Length(0))
 
void addPlane (const BI_Plane &plane)
 
void addPolygon (const Path &path, const UnsignedLength &lineWidth, bool filled, const Length &offset=Length(0))
 
void addCircle (const Circle &circle, const Transform &transform, const Length &offset=Length(0))
 
void addStrokeText (const BI_StrokeText &strokeText, const Length &offset=Length(0))
 
void addHole (const PositiveLength &diameter, const NonEmptyPath &path, const Transform &transform=Transform(), const Length &offset=Length(0))
 
void addPad (const BI_FootprintPad &pad, const Layer &layer, const Length &offset=Length(0))
 

Private Attributes

BoardmBoard
 
PositiveLength mMaxArcTolerance
 
ClipperLib::Paths mPaths
 

Detailed Description

The BoardClipperPathGenerator class creates a Clipper path from a librepcb::Board.

Constructor & Destructor Documentation

◆ BoardClipperPathGenerator()

BoardClipperPathGenerator ( Board board,
const PositiveLength maxArcTolerance 
)
explicitnoexcept

◆ ~BoardClipperPathGenerator()

Member Function Documentation

◆ getPaths()

const ClipperLib::Paths& getPaths ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ takePathsTo()

void takePathsTo ( ClipperLib::Paths &  out)
noexcept
+ Here is the caller graph for this function:

◆ addCopper()

void addCopper ( const Layer layer,
const QSet< const NetSignal *> &  netsignals,
bool  ignorePlanes = false 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addStopMaskOpenings()

void addStopMaskOpenings ( const Layer layer,
const Length offset = Length(0) 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addVia()

void addVia ( const BI_Via via,
const Length offset = Length(0) 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addNetLine()

void addNetLine ( const BI_NetLine netLine,
const Length offset = Length(0) 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addPlane()

void addPlane ( const BI_Plane plane)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addPolygon()

void addPolygon ( const Path path,
const UnsignedLength lineWidth,
bool  filled,
const Length offset = Length(0) 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addCircle()

void addCircle ( const Circle circle,
const Transform transform,
const Length offset = Length(0) 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addStrokeText()

void addStrokeText ( const BI_StrokeText strokeText,
const Length offset = Length(0) 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addHole()

void addHole ( const PositiveLength diameter,
const NonEmptyPath path,
const Transform transform = Transform(),
const Length offset = Length(0) 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addPad()

void addPad ( const BI_FootprintPad pad,
const Layer layer,
const Length offset = Length(0) 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mBoard

Board& mBoard
private

◆ mMaxArcTolerance

PositiveLength mMaxArcTolerance
private

◆ mPaths

ClipperLib::Paths mPaths
private

The documentation for this class was generated from the following files: