12#include <QtCore/QHash>
13#include <QtCore/QList>
14#include <QtCore/QRectF>
74 int tileCount()
const {
return static_cast<int>(_tiles.count()); }
92 QHash<TileMath::TileKey, Grid> _tiles;
93 QHash<TileMath::TileKey, int> _descendantCounts;
94 QSet<TileMath::TileKey> _pinnedKeys;
95 mutable QHash<TileMath::TileKey, qint64> _lastUsed;
96 mutable qint64 _useTick = 0;
97 mutable qint64 _lookupCount = 0;
std::array< MsgOutKey, 4 > keys
View bestTileFor(const TileMath::TileKey &key) const
bool hasTile(const TileMath::TileKey &key) const
bool insertTile(const TileMath::TileKey &key, Grid grid, TileMath::TileKey *evictedKey=nullptr)
static constexpr int kMaxTiles
void setPinnedKeys(QSet< TileMath::TileKey > keys)
bool hasDescendant(const TileMath::TileKey &key) const
qint64 lookupCountForTest() const
Decoded elevation samples for one tile, row-major from the NW corner.
QList< float > heights
meters
const Grid * grid
null when nothing stored covers the query
TileMath::TileKey key
stored tile the view samples