Marble
GeoUriParser.cpp
66 QRegExp geoUriRegexp( "geo:(" + floatRegexp + "),(" + floatRegexp + "),?(" + floatRegexp + ")?(?:;(crs|u)=([\\w\\d-]+))?(?:;(crs|u)=([\\w\\d-]+))?" , Qt::CaseInsensitive, QRegExp::RegExp2 );
72 double const alt = geoUriRegexp.captureCount() > 2 ? geoUriRegexp.capturedTexts()[3].toDouble() : 0.0;
RegExp2
Planet planet() const
Returns the Planet on which the coordinates are valid.
Definition: GeoUriParser.cpp:41
CaseInsensitive
int captureCount() const const
bool contains(const QString &str, Qt::CaseSensitivity cs) const const
The PlanetFactory class provides static methods to construct any planet known to Marble.
Definition: PlanetFactory.h:25
QStringList capturedTexts() const const
GeoDataCoordinates coordinates() const
Returns the coordinates parsed.
Definition: GeoUriParser.cpp:36
static Planet construct(const QString &id)
Creates the planet with the given ID, or one with default values if ID is not among planetList()
Definition: PlanetFactory.cpp:36
GeoUriParser(const QString &geoUri=QString())
Constructs a new GeoUriParser with the given Geo URI.
Definition: GeoUriParser.cpp:17
int indexIn(const QString &str, int offset, QRegExp::CaretMode caretMode) const const
bool isEmpty() const const
static QList< QString > planetList()
Provides a list of known planet IDs.
Definition: PlanetFactory.cpp:16
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:22
double toDouble(bool *ok) const const
QString & replace(int position, int n, QChar after)
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.