Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Marble
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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)
...
@@ -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
{
...
...
src/lib/marble/VectorTileModel.h
View file @
52740484
...
@@ -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
;
...
...
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