• 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
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  explicit GeoDataPoint( const GeoDataGeometry& other );
56  GeoDataPoint();
57 
66  GeoDataPoint( qreal lon, qreal lat, qreal alt = 0,
67  GeoDataPoint::Unit _unit = GeoDataCoordinates::Radian );
68 
69  ~GeoDataPoint();
70 
71  void setCoordinates( const GeoDataCoordinates &coordinates );
72 
73  const GeoDataCoordinates& coordinates() const;
74 
76  virtual const char* nodeType() const;
77 
78  // Type definitions
79  typedef QVector<GeoDataPoint> Vector;
80 
81 
82  // Serialize the Placemark to @p stream
83  virtual void pack( QDataStream& stream ) const;
84  // Unserialize the Placemark from @p stream
85  virtual void unpack( QDataStream& stream );
86 
87  virtual void detach();
88 
89  private:
90  GeoDataPointPrivate* p() const;
91 
92 };
93 
94 }
95 
96 Q_DECLARE_METATYPE( Marble::GeoDataPoint )
97 
98 #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
Marble::GeoDataGeometry
A base class for all geodata features.
Definition: GeoDataGeometry.h:47
Marble::GeoDataPoint::Notation
GeoDataCoordinates::Notation Notation
Definition: GeoDataPoint.h:50
Marble::GeoDataPoint::Unit
GeoDataCoordinates::Unit Unit
Definition: GeoDataPoint.h:51
Marble::GeoDataPointPrivate
Definition: GeoDataPoint_p.h:20
Marble::GeoDataPoint::Vector
QVector< GeoDataPoint > Vector
Definition: GeoDataPoint.h:79
Marble::GeoDataCoordinates::Notation
Notation
enum used to specify the notation / numerical system
Definition: GeoDataCoordinates.h:79
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-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