• 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
GeoDataLatLonAltBox.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 2007 Andrew Manson <g.real.ate@gmail.com>
9 // Copyright 2008 Torsten Rahn <rahn@kde.org>
10 //
11 
12 
13 #ifndef MARBLE_GEODATALATLONALTBOX_H
14 #define MARBLE_GEODATALATLONALTBOX_H
15 
16 
17 #include "MarbleGlobal.h"
18 
19 #include "GeoDataObject.h"
20 
21 #include "geodata_export.h"
22 
23 #include "GeoDataLatLonBox.h"
24 
25 #include <QHash>
26 
27 namespace Marble
28 {
29 
30 class GeoDataLatLonAltBoxPrivate;
31 
32 class GeoDataLineString;
33 
34 
49 class GEODATA_EXPORT GeoDataLatLonAltBox : public GeoDataLatLonBox
50 {
51  friend bool GEODATA_EXPORT operator==( GeoDataLatLonAltBox const& lhs, GeoDataLatLonAltBox const& rhs );
52 
53  public:
54  GeoDataLatLonAltBox();
55  GeoDataLatLonAltBox( const GeoDataLatLonAltBox & other );
56  GeoDataLatLonAltBox( const GeoDataLatLonBox &other, qreal minAltitude, qreal maxAltitude );
64  explicit GeoDataLatLonAltBox( const GeoDataCoordinates & coordinates );
65 
66  virtual ~GeoDataLatLonAltBox();
67 
68  GeoDataLatLonAltBox& operator=( const GeoDataLatLonAltBox& other );
69  GeoDataLatLonAltBox& operator=( const GeoDataCoordinates& other );
70 
72  virtual const char* nodeType() const;
73 
78  uint qHash(const GeoDataLatLonAltBox &);
79 
84  qreal minAltitude() const;
85  void setMinAltitude( const qreal minAltitude );
86 
91  qreal maxAltitude() const;
92  void setMaxAltitude( const qreal maxAltitude );
93 
99  AltitudeMode altitudeMode() const;
100  void setAltitudeMode( const AltitudeMode altitudeMode );
101 
102  virtual bool contains( const GeoDataCoordinates & ) const;
103  bool contains( const GeoDataLatLonAltBox & ) const;
104 
108  virtual bool intersects( const GeoDataLatLonAltBox & ) const;
109 
110  using GeoDataLatLonBox::intersects;
111 
116  static GeoDataLatLonAltBox fromLineString( const GeoDataLineString& lineString );
117 
121  virtual QString toString( GeoDataCoordinates::Unit unit = GeoDataCoordinates::Radian ) const;
122 
127  bool isNull() const;
128 
132  virtual void clear();
133 
138  virtual GeoDataCoordinates center() const;
139 
141  virtual void pack( QDataStream& stream ) const;
143  virtual void unpack( QDataStream& stream );
144 
145  private:
146  GeoDataLatLonAltBoxPrivate * const d;
147 };
148 
149 inline uint qHash( const GeoDataLatLonAltBox & r ){
150  return qHash( QString (r.toString()) );
151 }
152 
153 bool GEODATA_EXPORT operator==( GeoDataLatLonAltBox const& lhs, GeoDataLatLonAltBox const& rhs );
154 
155 }
156 
157 Q_DECLARE_METATYPE( Marble::GeoDataLatLonAltBox )
158 
159 #endif
Marble::GeoDataCoordinates::Unit
Unit
enum used constructor to specify the units used
Definition: GeoDataCoordinates.h:64
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::GeoDataCoordinates::Radian
Definition: GeoDataCoordinates.h:65
Marble::qHash
uint qHash(const GeoDataLatLonAltBox &r)
Definition: GeoDataLatLonAltBox.h:149
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::AltitudeMode
AltitudeMode
Definition: MarbleGlobal.h:145
Marble::GeoDataLatLonBox::intersects
virtual bool intersects(const GeoDataLatLonBox &) const
Definition: GeoDataLatLonBox.cpp:385
GeoDataObject.h
MarbleGlobal.h
Marble::GeoDataLineString
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
Marble::GeoDataLatLonAltBox::toString
virtual QString toString(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Creates a text string of the bounding box.
Definition: GeoDataLatLonAltBox.cpp:255
GeoDataLatLonBox.h
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
Marble::GeoDataLatLonBox
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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