Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QDeclarativeGeoMapItemUtils Namespace Reference

Classes

struct  vec2
 

Enumerations

enum  greaterCirclePathForm { OpenPath , ClosedPath }
 

Functions

double distanceSqrPointLine (double p0_x, double p0_y, double p1_x, double p1_y, double p2_x, double p2_y)
 
void wrapPath (const QList< QGeoCoordinate > &perimeter, const QGeoCoordinate &geoLeftBound, const QGeoProjectionWebMercator &p, QList< QDoubleVector2D > &wrappedPath, QList< QDoubleVector2D > &wrappedPathMinus1, QList< QDoubleVector2D > &wrappedPathPlus1, QDoubleVector2D *leftBoundWrapped)
 
void wrapPath (const QList< QGeoCoordinate > &perimeter, const QGeoCoordinate &geoLeftBound, const QGeoProjectionWebMercator &p, QList< QDoubleVector2D > &wrappedPath, QDoubleVector2D *leftBoundWrapped)
 
void wrapPath (const QList< QDoubleVector2D > &path, const QDoubleVector2D &geoLeftBound, QList< QDoubleVector2D > &wrappedPath)
 
void clipPolygon (const QList< QDoubleVector2D > &wrappedPath, const QGeoProjectionWebMercator &p, QList< QList< QDoubleVector2D > > &clippedPaths, QDoubleVector2D *leftBoundWrapped, bool closed)
 
void projectBbox (const QList< QDoubleVector2D > &clippedBbox, const QGeoProjectionWebMercator &p, QPainterPath &projectedBbox)
 
QRectF boundingRectangleFromList (const QList< QDoubleVector2D > &list)
 
QList< QGeoCoordinategreaterCirclePath (const QList< QGeoCoordinate > &cornerPoints, greaterCirclePathForm form, int N)
 

Enumeration Type Documentation

◆ greaterCirclePathForm

Enumerator
OpenPath 
ClosedPath 

Definition at line 28 of file qdeclarativegeomapitemutils_p.h.

Function Documentation

◆ boundingRectangleFromList()

QRectF QDeclarativeGeoMapItemUtils::boundingRectangleFromList ( const QList< QDoubleVector2D > &  list)

Definition at line 179 of file qdeclarativegeomapitemutils.cpp.

References list, qInf(), qMax(), and qMin().

Referenced by QDeclarativeCircleMapItemPrivate::includeOnePoleInPath(), QDeclarativeCircleMapItemPrivateCPU::updatePolish(), QGeoMapPolylineGeometry::updateSourcePoints(), and QGeoMapPolygonGeometry::updateSourcePoints().

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

◆ clipPolygon()

void QDeclarativeGeoMapItemUtils::clipPolygon ( const QList< QDoubleVector2D > &  wrappedPath,
const QGeoProjectionWebMercator p,
QList< QList< QDoubleVector2D > > &  clippedPaths,
QDoubleVector2D leftBoundWrapped,
bool  closed 
)

Definition at line 118 of file qdeclarativegeomapitemutils.cpp.

References QClipperUtils::addClipPolygon(), QClipperUtils::addSubjectPath(), QClipperUtils::execute(), QClipperUtils::Intersection, QClipperUtils::pftEvenOdd, qInf(), qIsInf(), qMax(), QDoubleVector2D::setX(), QList< T >::size(), QDoubleVector2D::x(), and QDoubleVector2D::y().

+ Here is the call graph for this function:

◆ distanceSqrPointLine()

double QDeclarativeGeoMapItemUtils::distanceSqrPointLine ( double  p0_x,
double  p0_y,
double  p1_x,
double  p1_y,
double  p2_x,
double  p2_y 
)

Definition at line 19 of file qdeclarativegeomapitemutils.cpp.

References qInf().

Referenced by QDeclarativePolylineMapItemPrivateCPU::contains(), and QGeoMapPolygonGeometry::updateSourcePoints().

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

◆ greaterCirclePath()

QList< QGeoCoordinate > QDeclarativeGeoMapItemUtils::greaterCirclePath ( const QList< QGeoCoordinate > &  cornerPoints,
greaterCirclePathForm  form,
int  N 
)

Definition at line 194 of file qdeclarativegeomapitemutils.cpp.

References QList< T >::at(), QDoubleVector3D::dotProduct(), form, i, QList< T >::last(), M_PI, OpenPath, sign(), and QList< T >::size().

Referenced by QDeclarativePolygonMapItemPrivateCPU::regenerateCache(), QDeclarativePolylineMapItemPrivateCPU::regenerateCache(), and QDeclarativeRectangleMapItemPrivateCPU::updatePolish().

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

◆ projectBbox()

void QDeclarativeGeoMapItemUtils::projectBbox ( const QList< QDoubleVector2D > &  clippedBbox,
const QGeoProjectionWebMercator p,
QPainterPath projectedBbox 
)

Definition at line 160 of file qdeclarativegeomapitemutils.cpp.

References QPainterPath::clear(), QPainterPath::closeSubpath(), QPainterPath::lineTo(), QPainterPath::moveTo(), and QDoubleVector2D::toPointF().

+ Here is the call graph for this function:

◆ wrapPath() [1/3]

void QDeclarativeGeoMapItemUtils::wrapPath ( const QList< QDoubleVector2D > &  path,
const QDoubleVector2D geoLeftBound,
QList< QDoubleVector2D > &  wrappedPath 
)

Definition at line 97 of file qdeclarativegeomapitemutils.cpp.

References QList< T >::append(), QList< T >::clear(), qIsFinite(), and QDoubleVector2D::x().

+ Here is the call graph for this function:

◆ wrapPath() [2/3]

void QDeclarativeGeoMapItemUtils::wrapPath ( const QList< QGeoCoordinate > &  perimeter,
const QGeoCoordinate geoLeftBound,
const QGeoProjectionWebMercator p,
QList< QDoubleVector2D > &  wrappedPath,
QDoubleVector2D leftBoundWrapped 
)

Definition at line 82 of file qdeclarativegeomapitemutils.cpp.

References wrapPath().

+ Here is the call graph for this function:

◆ wrapPath() [3/3]

void QDeclarativeGeoMapItemUtils::wrapPath ( const QList< QGeoCoordinate > &  perimeter,
const QGeoCoordinate geoLeftBound,
const QGeoProjectionWebMercator p,
QList< QDoubleVector2D > &  wrappedPath,
QList< QDoubleVector2D > &  wrappedPathMinus1,
QList< QDoubleVector2D > &  wrappedPathPlus1,
QDoubleVector2D leftBoundWrapped 
)

Definition at line 44 of file qdeclarativegeomapitemutils.cpp.

References QList< T >::append(), QList< T >::clear(), qIsFinite(), and QDoubleVector2D::x().

Referenced by wrapPath().

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