![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qdeclarativepolygonmapitem_p_p.h>
Public Types | |
| enum | MapBorderBehaviour { DrawOnce , Duplicate , WrapAround } |
Protected Attributes | |
| QPainterPath | srcPath_ |
| qreal | maxCoord_ = 0.0 |
| bool | assumeSimple_ = false |
| Protected Attributes inherited from QGeoMapItemGeometry | |
| bool | sourceDirty_ = true |
| bool | screenDirty_ = true |
| bool | clipToViewport_ = true |
| bool | preserveGeometry_ = false |
| QGeoCoordinate | geoLeftBound_ |
| QPointF | firstPointOffset_ |
| QPainterPath | screenOutline_ |
| QRectF | sourceBounds_ |
| QRectF | screenBounds_ |
| QGeoCoordinate | srcOrigin_ |
| QList< QPointF > | screenVertices_ |
| QList< quint32 > | screenIndices_ |
Additional Inherited Members | |
| Static Public Member Functions inherited from QGeoMapItemGeometry | |
| static QList< QGeoCoordinate > | path (const QGeoRectangle &rect) |
| static QList< QGeoCoordinate > | perimeter (const QGeoRectangle &rect) |
| static QList< QDoubleVector2D > | pathMercator (const QList< QGeoCoordinate > &p) |
| Public Attributes inherited from QGeoMapItemGeometry | |
| bool | m_dataChanged = false |
Definition at line 38 of file qdeclarativepolygonmapitem_p_p.h.
| Enumerator | |
|---|---|
| DrawOnce | |
| Duplicate | |
| WrapAround | |
Definition at line 41 of file qdeclarativepolygonmapitem_p_p.h.
|
default |
\qmltype MapPolygon \nativetype QDeclarativePolygonMapItem \inqmlmodule QtLocation
The MapPolygon type displays a polygon on a Map.
The MapPolygon type displays a polygon on a Map, specified in terms of an ordered list of \l {QtPositioning::coordinate}{coordinates}. For best appearance and results, polygons should be simple (not self-intersecting).
Coordinates can be added or removed at any time using the \l addCoordinate and \l removeCoordinate methods. They can also be modified like any other list element in QML:
For drawing rectangles with "straight" edges (same latitude across one edge, same latitude across the other), the \l MapRectangle type provides a simpler, two-point API.
By default, the polygon is displayed as a 1 pixel black border with no fill. To change its appearance, use the \l color, \l border.color and \l border.width properties.
|
inline |
Definition at line 56 of file qdeclarativepolygonmapitem_p_p.h.
|
inline |
Definition at line 49 of file qdeclarativepolygonmapitem_p_p.h.
|
inline |
Definition at line 55 of file qdeclarativepolygonmapitem_p_p.h.
| void QGeoMapPolygonGeometry::updateSourcePoints | ( | const QGeoMap & | map, |
| const QList< QList< QDoubleVector2D > > & | basePaths, | ||
| MapBorderBehaviour | wrapping = Duplicate ) |
Definition at line 107 of file qdeclarativepolygonmapitem.cpp.
|
protected |
Definition at line 61 of file qdeclarativepolygonmapitem_p_p.h.
|
protected |
Definition at line 60 of file qdeclarativepolygonmapitem_p_p.h.
|
protected |
Definition at line 59 of file qdeclarativepolygonmapitem_p_p.h.