• 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
  • routing
  • instructions
RoutingWaypoint.cpp
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 2010 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #include "RoutingWaypoint.h"
12 
13 #include <QDebug>
14 
15 namespace Marble
16 {
17 
18 RoutingWaypoint::RoutingWaypoint() : m_secondsRemaining( 0 )
19 {
20  // nothing to do
21 }
22 
23 RoutingWaypoint::RoutingWaypoint( const RoutingPoint &point, JunctionType junctionType,
24  const QString &junctionTypeRaw, const QString &roadType,
25  int secondsRemaining, const QString &roadName )
26  : m_point( point ), m_junctionType( junctionType ),
27  m_junctionTypeRaw(junctionTypeRaw), m_roadType( roadType ),
28  m_secondsRemaining( secondsRemaining ), m_roadName( roadName.trimmed() )
29 {
30  // nothing to do
31 }
32 
33 RoutingPoint RoutingWaypoint::point() const
34 {
35  return m_point;
36 }
37 
38 RoutingWaypoint::JunctionType RoutingWaypoint::junctionType() const
39 {
40  return m_junctionType;
41 }
42 
43 QString RoutingWaypoint::junctionTypeRaw() const
44 {
45  return m_junctionTypeRaw;
46 }
47 
48 QString RoutingWaypoint::roadType() const
49 {
50  return m_roadType;
51 }
52 
53 int RoutingWaypoint::secondsRemaining() const
54 {
55  return m_secondsRemaining;
56 }
57 
58 QString RoutingWaypoint::roadName() const
59 {
60  return m_roadName;
61 }
62 
63 } // namespace Marble
Marble::RoutingWaypoint::roadName
QString roadName() const
OSM name of the road.
Definition: RoutingWaypoint.cpp:58
RoutingWaypoint.h
Marble::RoutingWaypoint::RoutingWaypoint
RoutingWaypoint()
Constructor.
Definition: RoutingWaypoint.cpp:18
Marble::RoutingWaypoint::point
RoutingPoint point() const
Associated geo point.
Definition: RoutingWaypoint.cpp:33
Marble::RoutingWaypoint::junctionType
JunctionType junctionType() const
Parsed junction type.
Definition: RoutingWaypoint.cpp:38
Marble::RoutingWaypoint::secondsRemaining
int secondsRemaining() const
Estimated seconds remaining until the route destination is reached.
Definition: RoutingWaypoint.cpp:53
Marble::RoutingWaypoint::roadType
QString roadType() const
OSM type of the road.
Definition: RoutingWaypoint.cpp:48
Marble::RoutingPoint
There are many Point classes, but this is mine.
Definition: RoutingPoint.h:24
Marble::RoutingWaypoint::junctionTypeRaw
QString junctionTypeRaw() const
Junction type originally passed.
Definition: RoutingWaypoint.cpp:43
Marble::RoutingWaypoint::JunctionType
JunctionType
Junction types that affect instructions.
Definition: RoutingWaypoint.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 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