• 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
GeoDataLatLonQuad.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 2013 Mayank Madan <maddiemadan@gmail.com>
9 //
10 
11 #ifndef GEODATALATLONQUAD_H
12 #define GEODATALATLONQUAD_H
13 
14 #include "GeoDataCoordinates.h"
15 #include "GeoDataObject.h"
16 #include "MarbleGlobal.h"
17 
18 namespace Marble {
19 
20 class GeoDataLatLonQuadPrivate;
21 
22 class MARBLE_EXPORT GeoDataLatLonQuad: public GeoDataObject
23 {
24 public:
25  GeoDataLatLonQuad();
26 
27  GeoDataLatLonQuad( const GeoDataLatLonQuad &other );
28 
29  GeoDataLatLonQuad& operator=( const GeoDataLatLonQuad &other );
30  bool operator==( const GeoDataLatLonQuad &other ) const;
31  bool operator!=( const GeoDataLatLonQuad &other ) const;
32 
33  ~GeoDataLatLonQuad();
34 
36  virtual const char* nodeType() const;
37 
38  qreal bottomLeftLatitude( GeoDataCoordinates::Unit unit ) const;
39  qreal bottomRightLatitude( GeoDataCoordinates::Unit unit ) const;
40  qreal topRightLatitude( GeoDataCoordinates::Unit unit ) const;
41  qreal topLeftLatitude( GeoDataCoordinates::Unit unit ) const;
42 
43  qreal bottomLeftLongitude( GeoDataCoordinates::Unit unit ) const;
44  qreal bottomRightLongitude( GeoDataCoordinates::Unit unit ) const;
45  qreal topRightLongitude( GeoDataCoordinates::Unit unit ) const;
46  qreal topLeftLongitude( GeoDataCoordinates::Unit unit ) const;
47 
48  void setBottomLeftLatitude( qreal latitude, GeoDataCoordinates::Unit unit );
49  void setBottomRightLatitude( qreal latitude, GeoDataCoordinates::Unit unit );
50  void setTopRightLatitude( qreal latitude, GeoDataCoordinates::Unit unit );
51  void setTopLeftLatitude( qreal latitude, GeoDataCoordinates::Unit unit );
52 
53  void setBottomLeftLongitude( qreal longitude, GeoDataCoordinates::Unit unit );
54  void setBottomRightLongitude( qreal longitude, GeoDataCoordinates::Unit unit );
55  void setTopRightLongitude( qreal longitude, GeoDataCoordinates::Unit unit );
56  void setTopLeftLongitude( qreal longitude, GeoDataCoordinates::Unit unit );
57 
58  GeoDataCoordinates& bottomLeft() const;
59  void setBottomLeft( const GeoDataCoordinates &coordinates );
60 
61  GeoDataCoordinates& bottomRight() const;
62  void setBottomRight( const GeoDataCoordinates &coordinates );
63 
64  GeoDataCoordinates& topRight() const;
65  void setTopRight( const GeoDataCoordinates &coordinates );
66 
67  GeoDataCoordinates& topLeft() const;
68  void setTopLeft( const GeoDataCoordinates &coordinates );
69 
70  bool isValid() const;
71 
72 private:
73  GeoDataLatLonQuadPrivate* const d;
74 };
75 
76 }
77 
78 #endif
Marble::GeoDataCoordinates::Unit
Unit
enum used constructor to specify the units used
Definition: GeoDataCoordinates.h:64
GeoDataCoordinates.h
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::GeoDataLatLonQuad
Definition: GeoDataLatLonQuad.h:22
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
GeoDataObject.h
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
MarbleGlobal.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