![]() |
Qt 6.x
The Qt SDK
|
Classes | |
struct | vec2 |
Enumerations | |
enum | greaterCirclePathForm { OpenPath , ClosedPath } |
Enumerator | |
---|---|
OpenPath | |
ClosedPath |
Definition at line 28 of file qdeclarativegeomapitemutils_p.h.
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().
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().
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().
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().
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().
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().
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().
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().