12#include <QtCore/QList>
13#include <QtCore/QObject>
14#include <QtCore/QPointF>
15#include <QtCore/QRectF>
16#include <QtQmlIntegration/QtQmlIntegration>
55 void setPinnedKeys(QSet<TileMath::TileKey> keys) { _pyramid.setPinnedKeys(std::move(keys)); }
59 double heightAt(
const QPointF& world)
const;
73 int tileCount()
const {
return _pyramid.tileCount(); }
109 mutable double _memoMinX = 0.0;
110 mutable double _memoMaxY = 0.0;
111 mutable double _memoSpan = 0.0;
bool insertTile(const TileMath::TileKey &key, ElevationTilePyramid::Grid grid)
QList< float > samplePatch(const TileMath::TileKey &key, int gridSize, PatchSampler::EdgeStep *edgeStep=nullptr) const
void setPinnedKeys(QSet< TileMath::TileKey > keys)
qint64 lookupCountForTest() const
bool hasTile(const TileMath::TileKey &key) const
True when the backing pyramid holds this exact tile.
HeightField(QObject *parent=nullptr)
double heightAt(const QPointF &world) const
static constexpr int kMaxGridSize
Sanity cap on patch density: rejects absurd sizes before allocation.
void regionChanged(const QRectF &worldRect)
TileMath::TileKey backingKeyFor(const TileMath::TileKey &key) const
Decoded elevation samples for one tile, row-major from the NW corner.
TileMath::TileKey key
stored tile the view samples