• 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
  • routing
Maneuver.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 2011 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #ifndef MARBLE_MANEUVER_H
12 #define MARBLE_MANEUVER_H
13 
14 #include <QString>
15 #include <QMap>
16 
17 #include "GeoDataCoordinates.h"
18 
19 namespace Marble
20 {
21 
22 class MARBLE_EXPORT Maneuver
23 {
24 
25 public:
26  enum Direction {
27  Unknown = 0,
28  Continue = 13,
29  Merge = 14,
30  Straight = 1,
31  SlightRight = 2,
32  Right = 3,
33  SharpRight = 4,
34  TurnAround = 5,
35  SharpLeft = 6,
36  Left = 7,
37  SlightLeft = 8,
38  RoundaboutFirstExit = 9,
39  RoundaboutSecondExit = 10,
40  RoundaboutThirdExit = 11,
41  RoundaboutExit = 12,
42  ExitLeft = 15,
43  ExitRight = 16
44  };
45 
46  Maneuver();
47 
48  Direction direction() const;
49 
50  void setDirection( Direction direction );
51 
52  GeoDataCoordinates position() const;
53 
54  void setPosition( const GeoDataCoordinates &position );
55 
56  GeoDataCoordinates waypoint() const;
57 
58  bool hasWaypoint() const;
59 
60  void setWaypoint( const GeoDataCoordinates &waypoint, int index );
61 
62  int waypointIndex() const;
63 
64  QString instructionText() const;
65 
66  void setInstructionText( const QString &text );
67 
68  QString roadName() const;
69 
70  void setRoadName( const QString &roadName );
71 
72  QString directionPixmap() const;
73 
74  bool operator==( const Maneuver &other ) const;
75 
76  bool operator!=( const Maneuver &other ) const;
77 
78 private:
79  Direction m_direction;
80 
81  GeoDataCoordinates m_position;
82 
83  GeoDataCoordinates m_waypoint;
84 
85  int m_waypointIndex;
86 
87  QString m_instructionText;
88 
89  QString m_roadName;
90 
91  static QMap<Direction,QString> m_turnTypePixmaps;
92 };
93 
94 }
95 
96 #endif
GeoDataCoordinates.h
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
QMap< Direction, QString >
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::Maneuver
Definition: Maneuver.h:22
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
QString
direction
qreal direction
Definition: tools/osm-addresses/OsmParser.cpp:40
Marble::Maneuver::Direction
Direction
Definition: Maneuver.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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