LibrePCB Developers Documentation
Loading...
Searching...
No Matches
BoardClipperPathGenerator Class Referencefinal

Helper to create Clipper paths for librepcb::BoardDesignRuleCheck. More...

#include <boardclipperpathgenerator.h>

+ Collaboration diagram for BoardClipperPathGenerator:

Public Types

using Data = BoardDesignRuleCheckData
 

Public Member Functions

 BoardClipperPathGenerator (const PositiveLength &maxArcTolerance) noexcept
 
 ~BoardClipperPathGenerator () noexcept
 
const ClipperLib::Paths & getPaths () const noexcept
 
void takePathsTo (ClipperLib::Paths &out) noexcept
 
void addCopper (const Data &data, const Layer &layer, const QSet< std::optional< Uuid > > &netsignals, bool ignorePlanes=false)
 
void addStopMaskOpenings (const Data &data, const Layer &layer, const Length &offset=Length(0))
 
void addVia (const Data::Via &via, const Length &offset=Length(0))
 
void addTrace (const Data::Trace &trace, const Length &offset=Length(0))
 
void addPlane (const QVector< Path > &fragments)
 
void addPolygon (const Path &path, const UnsignedLength &lineWidth, bool filled, const Length &offset=Length(0))
 
void addCircle (const Data::Circle &circle, const Transform &transform, const Length &offset=Length(0))
 
void addStrokeText (const Data::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 Data::Pad &pad, const Layer &layer, const Length &offset=Length(0))
 

Private Attributes

PositiveLength mMaxArcTolerance
 
ClipperLib::Paths mPaths
 

Detailed Description

Helper to create Clipper paths for librepcb::BoardDesignRuleCheck.

Member Typedef Documentation

◆ Data

Constructor & Destructor Documentation

◆ BoardClipperPathGenerator()

BoardClipperPathGenerator ( const PositiveLength maxArcTolerance)
explicitnoexcept

◆ ~BoardClipperPathGenerator()

Member Function Documentation

◆ getPaths()

const ClipperLib::Paths & getPaths ( ) const
inlinenoexcept
+ 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 Data data,
const Layer layer,
const QSet< std::optional< Uuid > > &  netsignals,
bool  ignorePlanes = false 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addStopMaskOpenings()

void addStopMaskOpenings ( const Data data,
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 Data::Via via,
const Length offset = Length(0) 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addTrace()

void addTrace ( const Data::Trace trace,
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 QVector< Path > &  fragments)
+ 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 Data::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 Data::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 Data::Pad 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

◆ mMaxArcTolerance

PositiveLength mMaxArcTolerance
private

◆ mPaths

ClipperLib::Paths mPaths
private

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