marble
#include <OsmRegion.h>
Public Member Functions | |
OsmRegion () | |
int | adminLevel () const |
const GeoDataPolygon & | geometry () const |
int | identifier () const |
qreal | latitude () const |
int | left () const |
qreal | longitude () const |
QString | name () const |
bool | operator== (const OsmRegion &other) const |
int | parentIdentifier () const |
int | right () const |
void | setAdminLevel (int level) |
void | setGeometry (const GeoDataPolygon &polygon) |
void | setIdentifier (int identifier) |
void | setLatitude (qreal latitude) |
void | setLeft (int left) |
void | setLongitude (qreal longitude) |
void | setName (const QString &name) |
void | setParentIdentifier (int identifier) |
void | setRight (int right) |
Detailed Description
A lightweight data structure to represent administrative regions like villages, cities, states, ...
with support for serialization.
Definition at line 26 of file OsmRegion.h.
Constructor & Destructor Documentation
Marble::OsmRegion::OsmRegion | ( | ) |
Definition at line 20 of file OsmRegion.cpp.
Member Function Documentation
int Marble::OsmRegion::adminLevel | ( | ) | const |
Definition at line 112 of file OsmRegion.cpp.
const GeoDataPolygon & Marble::OsmRegion::geometry | ( | ) | const |
Definition at line 102 of file OsmRegion.cpp.
int Marble::OsmRegion::identifier | ( | ) | const |
Unique (per process) region identifier.
Definition at line 27 of file OsmRegion.cpp.
qreal Marble::OsmRegion::latitude | ( | ) | const |
Latitude of the region's center point, in degree.
Definition at line 67 of file OsmRegion.cpp.
int Marble::OsmRegion::left | ( | ) | const |
Definition at line 87 of file OsmRegion.cpp.
qreal Marble::OsmRegion::longitude | ( | ) | const |
Longitude of the region's center point, in degree.
Definition at line 57 of file OsmRegion.cpp.
QString Marble::OsmRegion::name | ( | ) | const |
Definition at line 47 of file OsmRegion.cpp.
bool Marble::OsmRegion::operator== | ( | const OsmRegion & | other | ) | const |
Definition at line 77 of file OsmRegion.cpp.
int Marble::OsmRegion::parentIdentifier | ( | ) | const |
Definition at line 37 of file OsmRegion.cpp.
int Marble::OsmRegion::right | ( | ) | const |
Definition at line 97 of file OsmRegion.cpp.
void Marble::OsmRegion::setAdminLevel | ( | int | level | ) |
Definition at line 117 of file OsmRegion.cpp.
void Marble::OsmRegion::setGeometry | ( | const GeoDataPolygon & | polygon | ) |
Definition at line 107 of file OsmRegion.cpp.
void Marble::OsmRegion::setIdentifier | ( | int | identifier | ) |
Identifier change.
Usage is only intended for serialization; newly created regions get an identifier automatically
Definition at line 32 of file OsmRegion.cpp.
void Marble::OsmRegion::setLatitude | ( | qreal | latitude | ) |
Definition at line 72 of file OsmRegion.cpp.
void Marble::OsmRegion::setLeft | ( | int | left | ) |
Definition at line 82 of file OsmRegion.cpp.
void Marble::OsmRegion::setLongitude | ( | qreal | longitude | ) |
Definition at line 62 of file OsmRegion.cpp.
void Marble::OsmRegion::setName | ( | const QString & | name | ) |
Definition at line 52 of file OsmRegion.cpp.
void Marble::OsmRegion::setParentIdentifier | ( | int | identifier | ) |
Definition at line 42 of file OsmRegion.cpp.
void Marble::OsmRegion::setRight | ( | int | right | ) |
Definition at line 92 of file OsmRegion.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.