Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/runner/osm/translators/OsmConverter.h
Show All 12 Lines | |||||
13 | 13 | | |||
14 | #include <GeoDataCoordinates.h> | 14 | #include <GeoDataCoordinates.h> | ||
15 | 15 | | |||
16 | namespace Marble | 16 | namespace Marble | ||
17 | { | 17 | { | ||
18 | 18 | | |||
19 | class GeoDataLineString; | 19 | class GeoDataLineString; | ||
20 | class GeoDataDocument; | 20 | class GeoDataDocument; | ||
21 | class GeoDataLinearRing; | ||||
21 | class GeoDataPolygon; | 22 | class GeoDataPolygon; | ||
23 | class GeoDataPlacemark; | ||||
22 | class GeoDataFeature; | 24 | class GeoDataFeature; | ||
23 | class OsmPlacemarkData; | 25 | class OsmPlacemarkData; | ||
24 | 26 | | |||
25 | class OsmConverter | 27 | class OsmConverter | ||
26 | { | 28 | { | ||
27 | public: | 29 | public: | ||
28 | typedef QPair<QString, QString> Tag; | 30 | typedef QPair<QString, QString> Tag; | ||
29 | typedef QPair<GeoDataCoordinates, OsmPlacemarkData > Node; | 31 | typedef QPair<GeoDataCoordinates, OsmPlacemarkData > Node; | ||
Show All 10 Lines | |||||
40 | const Nodes & nodes() const; | 42 | const Nodes & nodes() const; | ||
41 | const Ways & ways() const; | 43 | const Ways & ways() const; | ||
42 | const Relations &relations() const; | 44 | const Relations &relations() const; | ||
43 | 45 | | |||
44 | private: | 46 | private: | ||
45 | Nodes m_nodes; | 47 | Nodes m_nodes; | ||
46 | Ways m_ways; | 48 | Ways m_ways; | ||
47 | Relations m_relations; | 49 | Relations m_relations; | ||
50 | | ||||
51 | void processLinearRing(GeoDataLinearRing *linearRing, | ||||
52 | const OsmPlacemarkData& osmData); | ||||
53 | void processPolygon(GeoDataPolygon *polygon, | ||||
54 | const OsmPlacemarkData& osmData, | ||||
55 | GeoDataPlacemark* placemark); | ||||
48 | }; | 56 | }; | ||
49 | 57 | | |||
50 | } | 58 | } | ||
51 | 59 | | |||
52 | #endif | 60 | #endif | ||
53 | 61 | |