• 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
  • 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 
80  bool operator==( const GeoDataPlacemark& other ) const;
81  bool operator!=( const GeoDataPlacemark& other ) const;
82 
96  GeoDataCoordinates coordinate( const QDateTime &dateTime = QDateTime(), bool *iconAtCoordinates = 0 ) const;
97 
103  GeoDataGeometry* geometry();
104  const GeoDataGeometry* geometry() const;
105 
110  void coordinate( qreal &longitude, qreal &latitude, qreal &altitude ) const;
111 
116  void setCoordinate( qreal longitude, qreal latitude, qreal altitude = 0,
117  GeoDataCoordinates::Unit _unit = GeoDataCoordinates::Radian );
118 
122  void setCoordinate( const GeoDataCoordinates &coordinate );
123 
124  MARBLE_DEPRECATED( void setCoordinate( const GeoDataPoint &point ) );
125 
132  void setGeometry( GeoDataGeometry *entry );
133 
141  qreal area() const;
142 
146  void setArea( qreal area );
147 
151  qint64 population() const;
156  void setPopulation( qint64 population );
157 
161  const QString state() const;
162 
166  void setState( const QString &state );
167 
171  const QString countryCode() const;
172 
176  void setCountryCode( const QString &code );
177 
181  bool isBalloonVisible() const;
182 
186  void setBalloonVisible( bool visible );
187 
193  virtual void pack( QDataStream& stream ) const;
194 
203  virtual QXmlStreamWriter& pack( QXmlStreamWriter& stream ) const;
204 
205  virtual QXmlStreamWriter& operator <<( QXmlStreamWriter& stream ) const;
206 
212  virtual void unpack( QDataStream& stream );
213 
220  const GeoDataLookAt *lookAt() const;
221  GeoDataLookAt *lookAt();
222 
223  private:
224  GeoDataPlacemarkPrivate *p();
225  const GeoDataPlacemarkPrivate *p() const;
226 };
227 
228 }
229 
230 #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
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::GeoDataCoordinates::Radian
Definition: GeoDataCoordinates.h:65
QXmlStreamWriter
GeoDataPolygon.h
QDataStream
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::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
QString
MARBLE_DEPRECATED
#define MARBLE_DEPRECATED(func)
Definition: MarbleGlobal.h:274
GeoDataLinearRing.h
Marble::GeoDataLookAt
Definition: GeoDataLookAt.h:23
GeoDataPoint.h
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:57
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:461
Marble::GeoDataPlacemark
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
QDateTime
coordinate
Coordinate coordinate
Definition: tools/osm-addresses/OsmParser.cpp:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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