Commit 52740484 authored by Bernhard Beschow's avatar Bernhard Beschow

make attributes private

parent 0efc24be
...@@ -131,7 +131,7 @@ void VectorTileModel::removeTilesOutOfView(const GeoDataLatLonBox &boundingBox) ...@@ -131,7 +131,7 @@ void VectorTileModel::removeTilesOutOfView(const GeoDataLatLonBox &boundingBox)
{ {
GeoDataLatLonBox const extendedViewport = boundingBox.scaled(2.0, 2.0); GeoDataLatLonBox const extendedViewport = boundingBox.scaled(2.0, 2.0);
for (auto iter = m_documents.begin(); iter != m_documents.end();) { for (auto iter = m_documents.begin(); iter != m_documents.end();) {
bool const isOutOfView = !extendedViewport.intersects(iter.value()->m_boundingBox); bool const isOutOfView = !extendedViewport.intersects(iter.value()->latLonBox());
if (isOutOfView) { if (isOutOfView) {
iter = m_documents.erase(iter); iter = m_documents.erase(iter);
} else { } else {
......
...@@ -93,12 +93,14 @@ private: ...@@ -93,12 +93,14 @@ private:
/** Remove the document from the tree and delete the document */ /** Remove the document from the tree and delete the document */
~CacheDocument(); ~CacheDocument();
GeoDataDocument *const m_document; GeoDataLatLonBox latLonBox() const { return m_boundingBox; }
VectorTileModel *m_vectorTileModel;
GeoDataLatLonBox m_boundingBox;
private: private:
Q_DISABLE_COPY( CacheDocument ) Q_DISABLE_COPY( CacheDocument )
GeoDataDocument *const m_document;
VectorTileModel *const m_vectorTileModel;
GeoDataLatLonBox m_boundingBox;
}; };
TileLoader *const m_loader; TileLoader *const m_loader;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment