Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
Marble
Commits
52740484
Commit
52740484
authored
Apr 08, 2017
by
Bernhard Beschow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make attributes private
parent
0efc24be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/lib/marble/VectorTileModel.cpp
src/lib/marble/VectorTileModel.cpp
+1
-1
src/lib/marble/VectorTileModel.h
src/lib/marble/VectorTileModel.h
+5
-3
No files found.
src/lib/marble/VectorTileModel.cpp
View file @
52740484
...
...
@@ -131,7 +131,7 @@ void VectorTileModel::removeTilesOutOfView(const GeoDataLatLonBox &boundingBox)
{
GeoDataLatLonBox
const
extendedViewport
=
boundingBox
.
scaled
(
2.0
,
2.0
);
for
(
auto
iter
=
m_documents
.
begin
();
iter
!=
m_documents
.
end
();)
{
bool
const
isOutOfView
=
!
extendedViewport
.
intersects
(
iter
.
value
()
->
m_bounding
Box
);
bool
const
isOutOfView
=
!
extendedViewport
.
intersects
(
iter
.
value
()
->
latLon
Box
()
);
if
(
isOutOfView
)
{
iter
=
m_documents
.
erase
(
iter
);
}
else
{
...
...
src/lib/marble/VectorTileModel.h
View file @
52740484
...
...
@@ -93,12 +93,14 @@ private:
/** Remove the document from the tree and delete the document */
~
CacheDocument
();
GeoDataDocument
*
const
m_document
;
VectorTileModel
*
m_vectorTileModel
;
GeoDataLatLonBox
m_boundingBox
;
GeoDataLatLonBox
latLonBox
()
const
{
return
m_boundingBox
;
}
private:
Q_DISABLE_COPY
(
CacheDocument
)
GeoDataDocument
*
const
m_document
;
VectorTileModel
*
const
m_vectorTileModel
;
GeoDataLatLonBox
m_boundingBox
;
};
TileLoader
*
const
m_loader
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment