Warning, /education/marble/src/bindings/python/sip/Route.sip is written in an unsupported language. File is not indexed.
0001 // Copyright 2011 Simon Edwards <simon@simonzone.com> 0002 0003 // Generated by twine2 0004 0005 // This program is free software; you can redistribute it and/or modify 0006 // it under the terms of the GNU Library General Public License as 0007 // published by the Free Software Foundation; either version 2, or 0008 // (at your option) any later version. 0009 0010 // This program is distributed in the hope that it will be useful, 0011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 // GNU General Public License for more details 0014 0015 // You should have received a copy of the GNU Library General Public 0016 // License along with this program; if not, write to the 0017 // Free Software Foundation, Inc., 0018 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0019 0020 namespace Marble 0021 { 0022 class Route 0023 { 0024 %TypeHeaderCode 0025 #include <routing/Route.h> 0026 %End 0027 0028 public: 0029 Route (); 0030 void addRouteSegment (const Marble::RouteSegment& segment); 0031 Marble::GeoDataLatLonBox bounds () const; 0032 qreal distance () const; 0033 const Marble::RouteSegment& at (int index) const; 0034 int size () const; 0035 const Marble::GeoDataLineString& path () const; 0036 int travelTime () const; 0037 const Marble::GeoDataLineString& turnPoints () const; 0038 const Marble::GeoDataLineString& waypoints () const; 0039 void setPosition (const Marble::GeoDataCoordinates& position); 0040 Marble::GeoDataCoordinates position () const; 0041 const Marble::RouteSegment& currentSegment () const; 0042 Marble::GeoDataCoordinates currentWaypoint () const; 0043 Marble::GeoDataCoordinates positionOnRoute () const; 0044 }; 0045 };