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

marble

  • Marble
  • OsmPlacemark
Public Types | Public Member Functions | List of all members
Marble::OsmPlacemark Class Reference

#include <OsmPlacemark.h>

Public Types

enum  OsmCategory {
  UnknownCategory, AccomodationCamping, AccomodationHostel, AccomodationHotel,
  AccomodationMotel, AccomodationYouthHostel, Address, AmenityLibrary,
  EducationCollege, EducationSchool, EducationUniversity, FoodBar,
  FoodBiergarten, FoodCafe, FoodFastFood, FoodPub,
  FoodRestaurant, HealthDoctors, HealthHospital, HealthPharmacy,
  MoneyAtm, MoneyBank, ShoppingBeverages, ShoppingHifi,
  ShoppingSupermarket, TouristAttraction, TouristCastle, TouristCinema,
  TouristMonument, TouristMuseum, TouristRuin, TouristTheatre,
  TouristThemePark, TouristViewPoint, TouristZoo, TransportAirport,
  TransportAirportTerminal, TransportBusStation, TransportBusStop, TransportCarShare,
  TransportFuel, TransportParking, TransportRentalBicycle, TransportRentalCar,
  TransportSpeedCamera, TransportTaxiRank, TransportTrainStation, TransportTramStop,
  PlacesRegion, PlacesCounty, PlacesCity, PlacesTown,
  PlacesVillage, PlacesHamlet, PlacesIsolatedDwelling, PlacesSuburb,
  PlacesLocality, PlacesIsland
}
 

Public Member Functions

 OsmPlacemark ()
 
QString additionalInformation () const
 
OsmCategory category () const
 
QString houseNumber () const
 
qreal latitude () const
 
qreal longitude () const
 
qreal matchScore (const DatabaseQuery *query) const
 
QString name () const
 
bool operator< (const OsmPlacemark &other) const
 
bool operator== (const OsmPlacemark &other) const
 
int regionId () const
 
void setAdditionalInformation (const QString &name)
 
void setCategory (OsmCategory category)
 
void setHouseNumber (const QString &houseNumber)
 
void setLatitude (qreal latitude)
 
void setLongitude (qreal longitude)
 
void setName (const QString &name)
 
void setRegionId (int id)
 

Detailed Description

A lightweight data structure to represent points of interest like addresses with support for serialization.

Definition at line 24 of file OsmPlacemark.h.

Member Enumeration Documentation

enum Marble::OsmPlacemark::OsmCategory
Enumerator
UnknownCategory 
AccomodationCamping 
AccomodationHostel 
AccomodationHotel 
AccomodationMotel 
AccomodationYouthHostel 
Address 
AmenityLibrary 
EducationCollege 
EducationSchool 
EducationUniversity 
FoodBar 
FoodBiergarten 
FoodCafe 
FoodFastFood 
FoodPub 
FoodRestaurant 
HealthDoctors 
HealthHospital 
HealthPharmacy 
MoneyAtm 
MoneyBank 
ShoppingBeverages 
ShoppingHifi 
ShoppingSupermarket 
TouristAttraction 
TouristCastle 
TouristCinema 
TouristMonument 
TouristMuseum 
TouristRuin 
TouristTheatre 
TouristThemePark 
TouristViewPoint 
TouristZoo 
TransportAirport 
TransportAirportTerminal 
TransportBusStation 
TransportBusStop 
TransportCarShare 
TransportFuel 
TransportParking 
TransportRentalBicycle 
TransportRentalCar 
TransportSpeedCamera 
TransportTaxiRank 
TransportTrainStation 
TransportTramStop 
PlacesRegion 
PlacesCounty 
PlacesCity 
PlacesTown 
PlacesVillage 
PlacesHamlet 
PlacesIsolatedDwelling 
PlacesSuburb 
PlacesLocality 
PlacesIsland 

Definition at line 27 of file OsmPlacemark.h.

Constructor & Destructor Documentation

Marble::OsmPlacemark::OsmPlacemark ( )

Definition at line 16 of file OsmPlacemark.cpp.

Member Function Documentation

QString Marble::OsmPlacemark::additionalInformation ( ) const

Regions' name.

Definition at line 63 of file OsmPlacemark.cpp.

OsmPlacemark::OsmCategory Marble::OsmPlacemark::category ( ) const

Definition at line 23 of file OsmPlacemark.cpp.

QString Marble::OsmPlacemark::houseNumber ( ) const

Placemark's house number, if any.

Definition at line 43 of file OsmPlacemark.cpp.

qreal Marble::OsmPlacemark::latitude ( ) const

Latitude of the placemark's center point, in degree.

Definition at line 83 of file OsmPlacemark.cpp.

qreal Marble::OsmPlacemark::longitude ( ) const

Longitude of the placemark's center point, in degree.

Definition at line 73 of file OsmPlacemark.cpp.

qreal Marble::OsmPlacemark::matchScore ( const DatabaseQuery *  query) const

Definition at line 130 of file OsmPlacemark.cpp.

QString Marble::OsmPlacemark::name ( ) const

Placemark name.

Definition at line 33 of file OsmPlacemark.cpp.

bool Marble::OsmPlacemark::operator< ( const OsmPlacemark &  other) const

Placemarks are sorted by name by default.

Definition at line 94 of file OsmPlacemark.cpp.

bool Marble::OsmPlacemark::operator== ( const OsmPlacemark &  other) const

Definition at line 119 of file OsmPlacemark.cpp.

int Marble::OsmPlacemark::regionId ( ) const

Identifier of the smallest region containing this placemark, 0 if none (~main area).

Definition at line 53 of file OsmPlacemark.cpp.

void Marble::OsmPlacemark::setAdditionalInformation ( const QString &  name)

Definition at line 68 of file OsmPlacemark.cpp.

void Marble::OsmPlacemark::setCategory ( OsmCategory  category)

Definition at line 28 of file OsmPlacemark.cpp.

void Marble::OsmPlacemark::setHouseNumber ( const QString &  houseNumber)

Definition at line 48 of file OsmPlacemark.cpp.

void Marble::OsmPlacemark::setLatitude ( qreal  latitude)

Definition at line 88 of file OsmPlacemark.cpp.

void Marble::OsmPlacemark::setLongitude ( qreal  longitude)

Definition at line 78 of file OsmPlacemark.cpp.

void Marble::OsmPlacemark::setName ( const QString &  name)

Definition at line 38 of file OsmPlacemark.cpp.

void Marble::OsmPlacemark::setRegionId ( int  id)

Definition at line 58 of file OsmPlacemark.cpp.


The documentation for this class was generated from the following files:
  • OsmPlacemark.h
  • OsmPlacemark.cpp
This file is part of the KDE documentation.
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.

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