Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qclipperutils.cpp File Reference

(503723f0699911cd54d68e4f3379486ce54b01b3)

#include "qclipperutils_p.h"
#include <clip2tri.h>
+ Include dependency graph for qclipperutils.cpp:

Go to the source code of this file.

Classes

class  QClipperUtilsPrivate
 

Functions

static IntPoint toIntPoint (const QDoubleVector2D &p)
 
static QDoubleVector2D toVector2D (const IntPoint &p)
 
static QList< QDoubleVector2DpathToQList (const Path &path)
 
static QList< QList< QDoubleVector2D > > pathsToQList (const Paths &paths)
 
static Path qListToPath (const QList< QDoubleVector2D > &list)
 

Variables

static const double kClipperScaleFactor = 281474976710656.0
 
static const double kClipperScaleFactorInv = 1.0 / kClipperScaleFactor
 

Function Documentation

◆ pathsToQList()

static QList< QList< QDoubleVector2D > > pathsToQList ( const Paths & paths)
static

Definition at line 38 of file qclipperutils.cpp.

References pathToQList().

Referenced by QClipperUtils::execute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pathToQList()

static QList< QDoubleVector2D > pathToQList ( const Path & path)
static

Definition at line 29 of file qclipperutils.cpp.

References toVector2D().

Referenced by pathsToQList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qListToPath()

static Path qListToPath ( const QList< QDoubleVector2D > & list)
static

Definition at line 48 of file qclipperutils.cpp.

References list, QList< T >::size(), and toIntPoint().

Referenced by QClipperUtils::addClipPolygon(), QClipperUtils::addSubjectPath(), QClipperUtils::pointInPolygon(), and QClipperUtils::setPolygon().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toIntPoint()

static IntPoint toIntPoint ( const QDoubleVector2D & p)
static

Definition at line 19 of file qclipperutils.cpp.

References kClipperScaleFactor.

Referenced by QClipperUtils::pointInPolygon(), QClipperUtils::pointInPolygon(), and qListToPath().

+ Here is the caller graph for this function:

◆ toVector2D()

static QDoubleVector2D toVector2D ( const IntPoint & p)
static

Definition at line 24 of file qclipperutils.cpp.

References kClipperScaleFactorInv.

Referenced by pathToQList().

+ Here is the caller graph for this function:

Variable Documentation

◆ kClipperScaleFactor

const double kClipperScaleFactor = 281474976710656.0
static

Definition at line 16 of file qclipperutils.cpp.

Referenced by QClipperUtils::clipperScaleFactor(), and toIntPoint().

◆ kClipperScaleFactorInv

const double kClipperScaleFactorInv = 1.0 / kClipperScaleFactor
static

Definition at line 17 of file qclipperutils.cpp.

Referenced by toVector2D().