4#ifndef QGEOMAPITEMGEOMETRY_H
5#define QGEOMAPITEMGEOMETRY_H
18#include <QtLocation/private/qlocationglobal_p.h>
19#include <QtLocation/private/qdeclarativegeomapitembase_p.h>
20#include <QtLocation/private/qdeclarativegeomapitemutils_p.h>
21#include <QtPositioning/private/qdoublevector2d_p.h>
22#include <QtPositioning/private/qwebmercator_p.h>
24#include <QPainterPath>
28#include <QGeoCoordinate>
29#include <QGeoRectangle>
61 for (
const auto &
c:
p)
74 inline void markClean() { screenDirty_ = (sourceDirty_ =
false); clipToViewport_ =
true;}
88 return screenOutline_;
92 return screenOutline_.contains(screenPoint);
102 inline bool isIndexed()
const {
return (!screenIndices_.isEmpty()); }
108 return screenIndices_.size() / 3;
110 return screenVertices_.size() / 3;
114 screenVertices_.clear(); screenIndices_.clear(); }
116 mutable bool m_dataChanged =
false;
122 bool sourceDirty_ =
true;
123 bool screenDirty_ =
true;
124 bool clipToViewport_ =
true;
125 bool preserveGeometry_ =
false;
QVector2D vertex(quint32 index) const
QGeoCoordinate geoLeftBound_
QList< QPointF > vertices() const
QPointF firstPointOffset_
QList< quint32 > indices() const
QPainterPath screenOutline() const
bool isSourceDirty() const
void markFullScreenDirty()
static QList< QDoubleVector2D > pathMercator(const QList< QGeoCoordinate > &p)
QList< QPointF > screenVertices_
static QList< QGeoCoordinate > perimeter(const QGeoRectangle &rect)
QPointF firstPointOffset() const
static QList< QGeoCoordinate > path(const QGeoRectangle &rect)
QGeoCoordinate srcOrigin_
QRectF screenBoundingBox() const
QList< quint32 > screenIndices_
QRectF sourceBoundingBox() const
QPainterPath screenOutline_
const QGeoCoordinate & origin() const
QGeoCoordinate geoLeftBound()
bool isScreenDirty() const
virtual bool contains(const QPointF &screenPoint) const
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
The QVector2D class represents a vector or vertex in 2D space.
static QDoubleVector2D coordToMercator(const QGeoCoordinate &coord)
Combined button and popup list for selecting options.
GLsizei const GLchar *const * path