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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataPlacemark.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 2006-2007 Torsten Rahn <tackat@kde.org>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 // Copyright 2008-2009 Patrick Spendrin <ps_ml@gmx.de>
11 //
12 
13 
14 #ifndef MARBLE_GEODATAPLACEMARK_H
15 #define MARBLE_GEODATAPLACEMARK_H
16 
17 
18 #include <QChar>
19 #include <QDateTime>
20 #include <QXmlStreamWriter>
21 
22 #include "GeoDataPoint.h"
23 #include "GeoDataLineString.h"
24 #include "GeoDataLinearRing.h"
25 #include "GeoDataLookAt.h"
26 #include "GeoDataPolygon.h"
27 #include "GeoDataMultiGeometry.h"
28 #include "GeoDataFeature.h"
29 
30 #include "geodata_export.h"
31 
32 namespace Marble
33 {
34 
35 class GeoDataPlacemarkPrivate;
36 
54 class GEODATA_EXPORT GeoDataPlacemark: public GeoDataFeature
55 {
56  public:
60  GeoDataPlacemark();
61 
65  GeoDataPlacemark( const GeoDataPlacemark& placemark );
66 
70  explicit GeoDataPlacemark( const QString &name );
71 
75  ~GeoDataPlacemark();
76 
81  bool operator==( const GeoDataPlacemark& other ) const;
82 
96  GeoDataCoordinates coordinate( const QDateTime &dateTime = QDateTime(), bool *iconAtCoordinates = 0 ) const;
97 
103  GeoDataGeometry* geometry() const;
104 
109  void coordinate( qreal &longitude, qreal &latitude, qreal &altitude ) const;
110 
115  void setCoordinate( qreal longitude, qreal latitude, qreal altitude = 0,
116  GeoDataCoordinates::Unit _unit = GeoDataCoordinates::Radian );
117 
121  void setCoordinate( const GeoDataCoordinates &coordinate );
122 
123  MARBLE_DEPRECATED( void setCoordinate( const GeoDataPoint &point ) );
124 
131  void setGeometry( GeoDataGeometry *entry );
132 
140  qreal area() const;
141 
145  void setArea( qreal area );
146 
150  qint64 population() const;
155  void setPopulation( qint64 population );
156 
160  const QString state() const;
161 
165  void setState( const QString &state );
166 
170  const QString countryCode() const;
171 
175  void setCountryCode( const QString &code );
176 
182  virtual void pack( QDataStream& stream ) const;
183 
192  virtual QXmlStreamWriter& pack( QXmlStreamWriter& stream ) const;
193 
194  virtual QXmlStreamWriter& operator <<( QXmlStreamWriter& stream ) const;
195 
201  virtual void unpack( QDataStream& stream );
202 
209  const GeoDataLookAt *lookAt() const;
210  GeoDataLookAt *lookAt();
211 
212  private:
213  GeoDataPlacemarkPrivate *p() const;
214 };
215 
216 }
217 
218 #endif
Marble::GeoDataCoordinates::Unit
Unit
enum used constructor to specify the units used
Definition: GeoDataCoordinates.h:64
Marble::GeoDataPoint
A Geometry object representing a 3d point.
Definition: GeoDataPoint.h:47
QXmlStreamWriter
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::GeoDataCoordinates::Radian
Definition: GeoDataCoordinates.h:65
GeoDataPolygon.h
Marble::GeoDataPlacemarkPrivate
Definition: GeoDataPlacemark_p.h:23
Marble::GeoDataGeometry
A base class for all geodata features.
Definition: GeoDataGeometry.h:47
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
GeoDataMultiGeometry.h
GeoDataFeature.h
GeoDataLookAt.h
GeoDataLineString.h
MARBLE_DEPRECATED
#define MARBLE_DEPRECATED(func)
Definition: MarbleGlobal.h:255
GeoDataLinearRing.h
Marble::GeoDataLookAt
Definition: GeoDataLookAt.h:23
GeoDataPoint.h
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:55
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
Marble::operator<<
QTextStream & operator<<(QTextStream &stream, const RoutingInstruction &i)
Definition: RoutingInstruction.cpp:455
Marble::GeoDataPlacemark
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
coordinate
Coordinate coordinate
Definition: tools/osm-addresses/OsmParser.cpp:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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