• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • tools
  • osm-addresses
OsmRegion.h
Go to the documentation of this file.
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 2011 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #ifndef MARBLE_OSMREGION_H
12 #define MARBLE_OSMREGION_H
13 
14 #include "GeoDataPolygon.h"
15 
16 #include <QList>
17 #include <QString>
18 
19 namespace Marble
20 {
21 
26 class OsmRegion
27 {
28 public:
29  OsmRegion();
30 
32  int identifier() const;
33 
38  void setIdentifier( int identifier );
39 
40  int parentIdentifier() const;
41 
42  void setParentIdentifier( int identifier );
43 
44  QString name() const;
45 
46  void setName( const QString &name );
47 
49  qreal longitude() const;
50 
51  void setLongitude( qreal longitude );
52 
54  qreal latitude() const;
55 
56  void setLeft( int left );
57 
58  int left() const;
59 
60  void setRight( int right );
61 
62  int right() const;
63 
64  void setLatitude( qreal latitude );
65 
66  bool operator==( const OsmRegion &other ) const;
67 
68  const GeoDataPolygon& geometry() const;
69 
70  void setGeometry( const GeoDataPolygon &polygon );
71 
72  int adminLevel() const;
73 
74  void setAdminLevel( int level );
75 
76 private:
77  static int m_idFactory;
78 
79  int m_identifier;
80 
81  int m_parent;
82 
83  QString m_name;
84 
85  qreal m_longitude;
86 
87  qreal m_latitude;
88 
89  int m_left;
90 
91  int m_right;
92 
93  GeoDataPolygon m_geometry;
94 
95  int m_adminLevel;
96 };
97 
98 }
99 
100 #endif // MARBLE_OSMREGION_H
Marble::OsmRegion::setLongitude
void setLongitude(qreal longitude)
Definition: OsmRegion.cpp:62
Marble::OsmRegion::OsmRegion
OsmRegion()
Definition: OsmRegion.cpp:20
Marble::OsmRegion
A lightweight data structure to represent administrative regions like villages, cities, states, ...
Definition: OsmRegion.h:26
GeoDataPolygon.h
Marble::OsmRegion::geometry
const GeoDataPolygon & geometry() const
Definition: OsmRegion.cpp:102
Marble::OsmRegion::setName
void setName(const QString &name)
Definition: OsmRegion.cpp:52
Marble::OsmRegion::setLeft
void setLeft(int left)
Definition: OsmRegion.cpp:82
Marble::OsmRegion::setAdminLevel
void setAdminLevel(int level)
Definition: OsmRegion.cpp:117
Marble::OsmRegion::setRight
void setRight(int right)
Definition: OsmRegion.cpp:92
Marble::OsmRegion::left
int left() const
Definition: OsmRegion.cpp:87
Marble::OsmRegion::right
int right() const
Definition: OsmRegion.cpp:97
Marble::OsmRegion::setLatitude
void setLatitude(qreal latitude)
Definition: OsmRegion.cpp:72
Marble::GeoDataPolygon
A polygon that can have "holes".
Definition: GeoDataPolygon.h:81
Marble::OsmRegion::name
QString name() const
Definition: OsmRegion.cpp:47
Marble::OsmRegion::setGeometry
void setGeometry(const GeoDataPolygon &polygon)
Definition: OsmRegion.cpp:107
QString
Marble::OsmRegion::parentIdentifier
int parentIdentifier() const
Definition: OsmRegion.cpp:37
Marble::OsmRegion::setParentIdentifier
void setParentIdentifier(int identifier)
Definition: OsmRegion.cpp:42
Marble::OsmRegion::adminLevel
int adminLevel() const
Definition: OsmRegion.cpp:112
Marble::OsmRegion::operator==
bool operator==(const OsmRegion &other) const
Definition: OsmRegion.cpp:77
Marble::OsmRegion::identifier
int identifier() const
Unique (per process) region identifier.
Definition: OsmRegion.cpp:27
Marble::OsmRegion::setIdentifier
void setIdentifier(int identifier)
Identifier change.
Definition: OsmRegion.cpp:32
Marble::OsmRegion::longitude
qreal longitude() const
Longitude of the region's center point, in degree.
Definition: OsmRegion.cpp:57
Marble::OsmRegion::latitude
qreal latitude() const
Latitude of the region's center point, in degree.
Definition: OsmRegion.cpp:67
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal