Changeset View
Changeset View
Standalone View
Standalone View
tools/osm-simplify/NodeReducer.h
- This file was added.
1 | // | ||||
---|---|---|---|---|---|
2 | // This file is part of the Marble Virtual Globe. | ||||
3 | // | ||||
4 | // This program is free software licensed under the GNU LGPL. You can | ||||
5 | // find a copy of this license in LICENSE.txt in the top directory of | ||||
6 | // the source code. | ||||
7 | // | ||||
8 | // Copyright 2016 Akshat Tandon <akshat.tandon@research.iiit.ac.in> | ||||
9 | // | ||||
10 | | ||||
11 | #ifndef MARBLE_NODEREDUCER_H | ||||
12 | #define MARBLE_NODEREDUCER_H | ||||
13 | | ||||
14 | #include "PlacemarkFilter.h" | ||||
15 | #include "GeoDataLineString.h" | ||||
16 | | ||||
17 | class NodeReducer : public PlacemarkFilter{ | ||||
18 | public: | ||||
19 | NodeReducer(GeoDataDocument* document, int zoomLevel); | ||||
20 | virtual void process(); | ||||
21 | private: | ||||
22 | GeoDataLineString* reduce(GeoDataLineString* lineString); | ||||
23 | static qreal resolutionForLevel(int level); | ||||
24 | qreal m_resolution; | ||||
25 | qint64 m_count; | ||||
26 | }; | ||||
27 | | ||||
28 | #endif | ||||
29 | No newline at end of file |