• 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
RouteRequest.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 2010 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #ifndef MARBLE_ROUTEREQUEST_H
12 #define MARBLE_ROUTEREQUEST_H
13 
14 #include "marble_export.h"
15 #include "GeoDataCoordinates.h"
16 #include "GeoDataPlacemark.h"
17 #include "RoutingProfile.h"
18 
19 #include <QFlags>
20 
21 namespace Marble
22 {
23 
24 class RouteRequestPrivate;
25 
31 class MARBLE_EXPORT RouteRequest: public QObject
32 {
33  Q_OBJECT
34 
35 public:
36 
38  explicit RouteRequest( QObject *parent = 0 );
39 
41  ~RouteRequest();
42 
44  GeoDataCoordinates source() const;
45 
47  GeoDataCoordinates destination() const;
48 
50  int size() const;
51 
53  GeoDataCoordinates at( int index ) const;
54 
56  void append( const GeoDataCoordinates &coordinates, const QString &name = QString() );
57 
58  void append( const GeoDataPlacemark &placemark );
59 
61  void insert( int index, const GeoDataCoordinates &coordinates, const QString &name = QString() );
62 
64  void setPosition( int index, const GeoDataCoordinates &position, const QString &name = QString() );
65 
67  void remove( int index );
68 
70  void clear();
71 
81  void addVia( const GeoDataCoordinates &position );
82 
84  QPixmap pixmap( int index, int size=-1, int margin=2 ) const;
85 
86  void setName( int index, const QString &name );
87 
88  QString name( int index ) const;
89 
90  void setVisited( int index, bool visited );
91 
92  bool visited( int index ) const;
93 
94  void reverse();
95 
96  void setRoutingProfile( const RoutingProfile &profile );
97 
98  RoutingProfile routingProfile() const;
99 
100  GeoDataPlacemark & operator[] ( int index );
101 
102  GeoDataPlacemark const & operator[] ( int index ) const;
103 
104 Q_SIGNALS:
106  void positionChanged( int index, const GeoDataCoordinates &position );
107 
109  void positionAdded( int index );
110 
112  void positionRemoved( int index );
113 
115  void routingProfileChanged();
116 
117 private:
118  RouteRequestPrivate *const d;
119 };
120 
121 } // namespace Marble
122 
123 #endif
GeoDataCoordinates.h
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::RoutingProfile
Definition: RoutingProfile.h:24
Marble::RouteRequest
Points to be included in a route.
Definition: RouteRequest.h:31
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
RoutingProfile.h
QString
GeoDataPlacemark.h
QPixmap
marble_export.h
Marble::GeoDataPlacemark
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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