LibrePCB Developers Documentation
ClipperHelpers Class Referencefinal

The ClipperHelpers class. More...

#include <clipperhelpers.h>

+ Collaboration diagram for ClipperHelpers:

Public Member Functions

 ClipperHelpers ()=delete
 
 ~ClipperHelpers ()=delete
 

Static Public Member Functions

static void unite (ClipperLib::Paths &paths)
 
static void unite (ClipperLib::Paths &subject, const ClipperLib::Path &clip)
 
static void unite (ClipperLib::Paths &subject, const ClipperLib::Paths &clip)
 
static std::unique_ptr< ClipperLib::PolyTree > intersect (const ClipperLib::Paths &subject, const ClipperLib::Paths &clip)
 
static void subtract (ClipperLib::Paths &subject, const ClipperLib::Paths &clip)
 
static void offset (ClipperLib::Paths &paths, const Length &offset, const PositiveLength &maxArcTolerance)
 
static ClipperLib::Paths flattenTree (const ClipperLib::PolyNode &node)
 
static QVector< Pathconvert (const ClipperLib::Paths &paths) noexcept
 
static Path convert (const ClipperLib::Path &path) noexcept
 
static Point convert (const ClipperLib::IntPoint &point) noexcept
 
static ClipperLib::Paths convert (const QVector< Path > &paths, const PositiveLength &maxArcTolerance) noexcept
 
static ClipperLib::Path convert (const Path &path, const PositiveLength &maxArcTolerance) noexcept
 
static ClipperLib::IntPoint convert (const Point &point) noexcept
 

Static Private Member Functions

static ClipperLib::Path convertHolesToCutIns (const ClipperLib::Path &outline, const ClipperLib::Paths &holes)
 
static ClipperLib::Paths prepareHoles (const ClipperLib::Paths &holes) noexcept
 
static ClipperLib::Path rotateCutInHole (const ClipperLib::Path &hole) noexcept
 
static int getHoleConnectionPointIndex (const ClipperLib::Path &hole) noexcept
 
static void addCutInToPath (ClipperLib::Path &outline, const ClipperLib::Path &hole)
 
static int insertConnectionPointToPath (ClipperLib::Path &path, const ClipperLib::IntPoint &p)
 
static bool calcIntersectionPos (const ClipperLib::IntPoint &p1, const ClipperLib::IntPoint &p2, const ClipperLib::cInt &x, ClipperLib::cInt &y) noexcept
 

Detailed Description

The ClipperHelpers class.

Constructor & Destructor Documentation

◆ ClipperHelpers()

ClipperHelpers ( )
delete

◆ ~ClipperHelpers()

~ClipperHelpers ( )
delete

Member Function Documentation

◆ unite() [1/3]

void unite ( ClipperLib::Paths &  paths)
static
+ Here is the caller graph for this function:

◆ unite() [2/3]

void unite ( ClipperLib::Paths &  subject,
const ClipperLib::Path &  clip 
)
static

◆ unite() [3/3]

void unite ( ClipperLib::Paths &  subject,
const ClipperLib::Paths &  clip 
)
static

◆ intersect()

std::unique_ptr< ClipperLib::PolyTree > intersect ( const ClipperLib::Paths &  subject,
const ClipperLib::Paths &  clip 
)
static
+ Here is the caller graph for this function:

◆ subtract()

void subtract ( ClipperLib::Paths &  subject,
const ClipperLib::Paths &  clip 
)
static
+ Here is the caller graph for this function:

◆ offset()

void offset ( ClipperLib::Paths &  paths,
const Length offset,
const PositiveLength maxArcTolerance 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ flattenTree()

ClipperLib::Paths flattenTree ( const ClipperLib::PolyNode &  node)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ convert() [1/6]

QVector< Path > convert ( const ClipperLib::Paths &  paths)
staticnoexcept
+ Here is the caller graph for this function:

◆ convert() [2/6]

Path convert ( const ClipperLib::Path &  path)
staticnoexcept
+ Here is the call graph for this function:

◆ convert() [3/6]

Point convert ( const ClipperLib::IntPoint &  point)
staticnoexcept

◆ convert() [4/6]

ClipperLib::Paths convert ( const QVector< Path > &  paths,
const PositiveLength maxArcTolerance 
)
staticnoexcept
+ Here is the call graph for this function:

◆ convert() [5/6]

ClipperLib::Path convert ( const Path path,
const PositiveLength maxArcTolerance 
)
staticnoexcept
+ Here is the call graph for this function:

◆ convert() [6/6]

ClipperLib::IntPoint convert ( const Point point)
staticnoexcept

◆ convertHolesToCutIns()

ClipperLib::Path convertHolesToCutIns ( const ClipperLib::Path &  outline,
const ClipperLib::Paths &  holes 
)
staticprivate
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareHoles()

ClipperLib::Paths prepareHoles ( const ClipperLib::Paths &  holes)
staticprivatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rotateCutInHole()

ClipperLib::Path rotateCutInHole ( const ClipperLib::Path &  hole)
staticprivatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHoleConnectionPointIndex()

int getHoleConnectionPointIndex ( const ClipperLib::Path &  hole)
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ addCutInToPath()

void addCutInToPath ( ClipperLib::Path &  outline,
const ClipperLib::Path &  hole 
)
staticprivate
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertConnectionPointToPath()

int insertConnectionPointToPath ( ClipperLib::Path &  path,
const ClipperLib::IntPoint &  p 
)
staticprivate
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ calcIntersectionPos()

bool calcIntersectionPos ( const ClipperLib::IntPoint &  p1,
const ClipperLib::IntPoint &  p2,
const ClipperLib::cInt &  x,
ClipperLib::cInt &  y 
)
staticprivatenoexcept
+ Here is the caller graph for this function:

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