• 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
GeoDataPoint.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 Patrick Spendrin <ps_ml@gmx.de>
11 //
12 
13 
14 #ifndef MARBLE_GEODATAPOINT_H
15 #define MARBLE_GEODATAPOINT_H
16 
17 #include <QMetaType>
18 #include <QVector>
19 
20 #include <cmath>
21 
22 #include "geodata_export.h"
23 #include "GeoDataGeometry.h"
24 #include "GeoDataCoordinates.h"
25 
26 namespace Marble
27 {
28 
29 class GeoDataPointPrivate;
30 
47 class GEODATA_EXPORT GeoDataPoint : public GeoDataGeometry
48 {
49  public:
50  typedef GeoDataCoordinates::Notation Notation;
51  typedef GeoDataCoordinates::Unit Unit;
52 
53  GeoDataPoint( const GeoDataPoint& other );
54  explicit GeoDataPoint( const GeoDataCoordinates& other );
55  GeoDataPoint();
56 
65  GeoDataPoint( qreal lon, qreal lat, qreal alt = 0,
66  GeoDataPoint::Unit _unit = GeoDataCoordinates::Radian );
67 
68  ~GeoDataPoint();
69 
70  bool operator==( const GeoDataPoint &other ) const;
71  bool operator!=( const GeoDataPoint &other ) const;
72 
73  void setCoordinates( const GeoDataCoordinates &coordinates );
74 
75  const GeoDataCoordinates& coordinates() const;
76 
78  virtual const char* nodeType() const;
79 
80  // Type definitions
81  typedef QVector<GeoDataPoint> Vector;
82 
83 
84  // Serialize the Placemark to @p stream
85  virtual void pack( QDataStream& stream ) const;
86  // Unserialize the Placemark from @p stream
87  virtual void unpack( QDataStream& stream );
88 
89  virtual void detach();
90 
91  private:
92  GeoDataPointPrivate* p();
93  const GeoDataPointPrivate* p() const;
94 
95 };
96 
97 }
98 
99 Q_DECLARE_METATYPE( Marble::GeoDataPoint )
100 
101 #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
GeoDataCoordinates.h
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::GeoDataCoordinates::Radian
Definition: GeoDataCoordinates.h:65
QDataStream
Marble::GeoDataGeometry
A base class for all geodata features.
Definition: GeoDataGeometry.h:47
Marble::GeoDataPoint::Notation
GeoDataCoordinates::Notation Notation
Definition: GeoDataPoint.h:50
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::GeoDataPoint::Unit
GeoDataCoordinates::Unit Unit
Definition: GeoDataPoint.h:51
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
Marble::GeoDataPointPrivate
Definition: GeoDataPoint_p.h:20
Marble::GeoDataPoint::Vector
QVector< GeoDataPoint > Vector
Definition: GeoDataPoint.h:81
Marble::GeoDataCoordinates::Notation
Notation
enum used to specify the notation / numerical system
Definition: GeoDataCoordinates.h:79
QVector
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
GeoDataGeometry.h
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