16#ifndef QGSQUICKMAPCANVASMAP_H
17#define QGSQUICKMAPCANVASMAP_H
19#include "qgis_quick.h"
22#include <QFutureSynchronizer>
24#include <QtQuick/QQuickItem>
70 Q_PROPERTY(
bool freeze READ freeze WRITE setFreeze NOTIFY freezeChanged )
77 Q_PROPERTY(
bool isRendering READ isRendering NOTIFY isRenderingChanged )
84 Q_PROPERTY(
int mapUpdateInterval READ mapUpdateInterval WRITE setMapUpdateInterval NOTIFY mapUpdateIntervalChanged )
89 Q_PROPERTY(
bool incrementalRendering READ incrementalRendering WRITE setIncrementalRendering NOTIFY incrementalRenderingChanged )
96 QSGNode *updatePaintNode( QSGNode *oldNode, QQuickItem::UpdatePaintNodeData * )
override;
105 void setFreeze(
bool freeze );
108 bool isRendering()
const;
111 int mapUpdateInterval()
const;
114 void setMapUpdateInterval(
int mapUpdateInterval );
117 bool incrementalRendering()
const;
120 void setIncrementalRendering(
bool incrementalRendering );
147#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
148 void geometryChanged(
const QRectF &newGeometry,
const QRectF &oldGeometry )
override;
150 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry )
override;
155 void stopRendering();
160 void zoom( QPointF center, qreal scale );
165 void pan( QPointF oldPos, QPointF newPos );
180 void renderJobUpdated();
181 void renderJobFinished();
182 void layerRepaintRequested(
bool deferred );
183 void onWindowChanged( QQuickWindow *window );
184 void onScreenChanged( QScreen *screen );
185 void onExtentChanged();
186 void onLayersChanged();
187 void onTemporalStateChanged();
188 void onzRangeChanged();
197 void updateTransform();
198 void zoomToFullExtent();
199 void clearTemporalCache();
200 void clearElevationCache();
202 std::unique_ptr<QgsQuickMapSettings> mMapSettings;
203 bool mPinching =
false;
204 QPoint mPinchStartPoint;
206 std::unique_ptr<QgsMapRendererCache> mCache;
210 QTimer mRefreshTimer;
212 bool mFreeze =
false;
213 QList<QMetaObject::Connection> mLayerConnections;
214 QTimer mMapUpdateTimer;
215 bool mIncrementalRendering =
false;
216 bool mSilentRefresh =
false;
217 bool mDeferredRefreshPending =
false;
219 QQuickWindow *mWindow =
nullptr;
Class that stores computed placement from labeling engine.
This class is responsible for keeping cache of rendered images resulting from a map rendering job.
Abstract base class for map rendering implementations.
Job implementation that renders all layers in parallel.
The QgsMapSettings class contains configuration for rendering of the map.
This class implements a visual Qt Quick Item that does map rendering according to the current map set...
void freezeChanged()
When freeze property is set to true, the map canvas does not refresh.
void mapCanvasRefreshed()
Signal is emitted when a canvas is refreshed.
void incrementalRenderingChanged()
When the incrementalRendering property is set to true, the automatic refresh of map canvas during ren...
void renderStarting()
Signal is emitted when a rendering is starting.
void mapUpdateIntervalChanged()
Interval in milliseconds after which the map canvas will be updated while a rendering job is ongoing.
void isRenderingChanged()
The isRendering property is set to true while a rendering job is pending for this map canvas map.
The QgsQuickMapSettings class encapsulates QgsMapSettings class to offer settings of configuration of...