Marble

Maneuver.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2011 Dennis Nienhüser <nienhueser@kde.org>
4//
5
6#ifndef MARBLE_MANEUVER_H
7#define MARBLE_MANEUVER_H
8
9#include <QString>
10
11#include "GeoDataCoordinates.h"
12
13namespace Marble
14{
15
16class MARBLE_EXPORT Maneuver
17{
18
19public:
20 enum Direction {
21 Unknown = 0,
22 Continue = 13,
23 Merge = 14,
24 Straight = 1,
25 SlightRight = 2,
26 Right = 3,
27 SharpRight = 4,
28 TurnAround = 5,
29 SharpLeft = 6,
30 Left = 7,
31 SlightLeft = 8,
32 RoundaboutFirstExit = 9,
33 RoundaboutSecondExit = 10,
34 RoundaboutThirdExit = 11,
35 RoundaboutExit = 12,
36 ExitLeft = 15,
37 ExitRight = 16
38 };
39
40 Maneuver();
41
42 Direction direction() const;
43
44 void setDirection( Direction direction );
45
46 GeoDataCoordinates position() const;
47
48 void setPosition( const GeoDataCoordinates &position );
49
50 GeoDataCoordinates waypoint() const;
51
52 bool hasWaypoint() const;
53
54 void setWaypoint( const GeoDataCoordinates &waypoint, int index );
55
56 int waypointIndex() const;
57
58 QString instructionText() const;
59
60 void setInstructionText( const QString &text );
61
62 QString roadName() const;
63
64 void setRoadName( const QString &roadName );
65
66 QString directionPixmap() const;
67
68 bool operator==( const Maneuver &other ) const;
69
70 bool operator!=( const Maneuver &other ) const;
71
72private:
73 Direction m_direction;
74
75 GeoDataCoordinates m_position;
76
77 GeoDataCoordinates m_waypoint;
78
79 int m_waypointIndex;
80
81 QString m_instructionText;
82
83 QString m_roadName;
84};
85
86}
87
88#endif
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
bool operator!=(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:00:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.