12#include <QtCore/QPointF>
13#include <QtGui/QVector3D>
14#include <QtPositioning/QGeoCoordinate>
15#include <QtQmlIntegration/QtQmlIntegration>
16#include <QtQuick/QQuickItem>
23Q_MOC_INCLUDE(
"GeoScene.h")
24Q_MOC_INCLUDE(
"SurfacePatchModel.h")
25Q_MOC_INCLUDE(
"QtQml/QQmlComponent")
56 explicit GeoMapItem(QQuickItem* parent =
nullptr);
67 QGeoCoordinate
coordinate()
const {
return _coordinate; }
69 void setCoordinate(
const QGeoCoordinate& coordinate);
75 void setAnchorPoint(
const QPointF& anchorPoint);
87 void setAltitudeMode(AltitudeMode mode);
105 void setDelegate3D(QQmlComponent* delegate3D);
109 QObject*
node3D()
const {
return _node3D; }
116 void setCrossfade3D(
bool crossfade3D);
122 void setNode3DOpacity(qreal node3DOpacity);
144 void _updatePosition();
145 void _terrainHeightsChanged();
148 void _connectCamera();
151 void _rebuildNode3D();
152 void _updateCrossfade();
153 void _updateNode3DVisibility();
155 QGeoCoordinate _coordinate;
156 QPointF _anchorPoint;
161 bool _projected =
false;
162 QVector3D _scenePosition;
163 QQmlComponent* _delegate3D =
nullptr;
164 QObject* _node3D =
nullptr;
165 bool _crossfade3D =
true;
166 qreal _node3DOpacity = 1.0;
167 qreal _contentOpacity2D = 1.0;
SurfacePatchModel * surfaceModel() const
void crossfade3DChanged()
void setAnchorPoint(const QPointF &anchorPoint)
void setNode3DOpacity(qreal node3DOpacity)
void setCrossfade3D(bool crossfade3D)
void surfaceModelChanged()
qreal contentOpacity2D() const
AltitudeMode
How the coordinate's vertical position is resolved.
@ ClampToGround
sit on the rendered terrain surface (default)
void setAltitudeMode(AltitudeMode mode)
void setDelegate3D(QQmlComponent *delegate3D)
QVector3D scenePosition() const
void scenePositionChanged()
GeoMapItem(QQuickItem *parent=nullptr)
void setScene(GeoScene *scene)
AltitudeMode altitudeMode() const
QPointF anchorPoint() const
void anchorPointChanged()
void setSurfaceModel(SurfacePatchModel *surfaceModel)
void node3DOpacityChanged()
QGeoCoordinate coordinate() const
void altitudeModeChanged()
QQmlComponent * delegate3D() const
void setCoordinate(const QGeoCoordinate &coordinate)
void contentOpacity2DChanged()
qreal node3DOpacity() const
void setScene(GeoScene *scene)