Marble
GeoDataLineString.cpp
70 if (f.testFlag(RespectLatitudeCircle) && previousCoords.latitude() == currentCoords.latitude()) {
90GeoDataLineStringPrivate::findDateLine(const GeoDataCoordinates &previousCoords, const GeoDataCoordinates ¤tCoords, int recursionCounter) const
95 qreal longitudeDiff = fabs(previousSign * M_PI - previousCoords.longitude()) + fabs(currentSign * M_PI - currentCoords.longitude());
98 // mDebug() << "stopped at recursion" << recursionCounter << " and longitude difference " << longitudeDiff;
217 quint8 startLevel = levelForResolution((lineString.latLonAltBox().width() + lineString.latLonAltBox().height()) / 2);
248 && (itCoords->longitude() == -M_PI || itCoords->longitude() == M_PI || itCoords->latitude() < -89 * DEG2RAD
473 if (!GeoDataGeometry::equals(other) || size() != other.size() || tessellate() != other.tessellate()) {
581 for (QList<GeoDataCoordinates>::const_iterator itCoords = d->m_vector.constBegin(); itCoords != end; ++itCoords) {
638void GeoDataLineStringPrivate::toPoleCorrected(const GeoDataLineString &q, GeoDataLineString &poleCorrected) const
698void GeoDataLineStringPrivate::toDateLineCorrected(const GeoDataLineString &q, QList<GeoDataLineString *> &lineStrings) const
711 GeoDataLineString *dateLineCorrected = isClosed ? new GeoDataLinearRing(f) : new GeoDataLineString(f);
735 interpolateDateLine(*itPreviousPoint, *itPoint, previousTemp, currentTemp, q.tessellationFlags());
884 map.insert(QLatin1StringView("lon"), d->m_vector.first().longitude(GeoDataCoordinates::Degree));
902 for (QList<GeoDataCoordinates>::const_iterator iterator = d->m_vector.constBegin(); iterator != d->m_vector.constEnd(); ++iterator) {
bool isPole(Pole=AnyPole) const
return whether our coordinates represent a pole This method can be used to check whether the coordina...
Definition GeoDataCoordinates.cpp:809
void unpack(QDataStream &stream)
Unserialize the contents of the feature from stream.
Definition GeoDataCoordinates.cpp:884
void set(qreal lon, qreal lat, qreal alt=0, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
(re)set the coordinates in a GeoDataCoordinates object
Definition GeoDataCoordinates.cpp:109
static void normalizeLonLat(qreal &lon, qreal &lat, GeoDataCoordinates::Unit=GeoDataCoordinates::Radian)
normalize both longitude and latitude at the same time This method normalizes both latitude and longi...
Definition GeoDataCoordinates.cpp:305
void pack(QDataStream &stream) const
Serialize the contents of the feature to stream.
Definition GeoDataCoordinates.cpp:877
void pack(QDataStream &stream) const override
Serialize the contents of the feature to stream.
Definition GeoDataGeometry.cpp:154
void unpack(QDataStream &stream) override
Unserialize the contents of the feature from stream.
Definition GeoDataGeometry.cpp:162
A class that defines a 3D bounding box for geographic data.
Definition GeoDataLatLonAltBox.h:40
static GeoDataLatLonAltBox fromLineString(const GeoDataLineString &lineString)
Create the smallest bounding box from a line string.
Definition GeoDataLatLonAltBox.cpp:194
A LineString that allows to store a contiguous set of line segments.
Definition GeoDataLineString.h:66
virtual bool isClosed() const
Returns whether a LineString is a closed polygon.
Definition GeoDataLineString.cpp:513
bool isEmpty() const
Returns whether the LineString has no nodes at all.
Definition GeoDataLineString.cpp:268
GeoDataLineString(TessellationFlags f=NoTessellation)
Creates a new LineString.
Definition GeoDataLineString.cpp:20
void insert(int index, const GeoDataCoordinates &value)
Inserts a new node at the given index.
Definition GeoDataLineString.cpp:394
void remove(int i)
Removes the node at the given position and destroys it.
Definition GeoDataLineString.cpp:844
void unpack(QDataStream &stream) override
Unserialize the LineString from a stream.
Definition GeoDataLineString.cpp:909
void setTessellationFlags(TessellationFlags f)
Sets the given tessellation flags for a LineString.
Definition GeoDataLineString.cpp:547
TessellationFlags tessellationFlags() const
Returns the tessellation flags for a LineString.
Definition GeoDataLineString.cpp:541
GeoDataCoordinates & first()
Returns a reference to the first node in the LineString. This method detaches the returned coordinate...
Definition GeoDataLineString.cpp:334
GeoDataCoordinates & at(int pos)
Returns a reference to the coordinates of a node at a given position. This method detaches the return...
Definition GeoDataLineString.cpp:280
QVariantList toVariantList() const
Returns a javascript-style list (that can be used e.g. with the QML GeoPolyline element).
Definition GeoDataLineString.cpp:869
GeoDataLineString optimized() const
Returns a linestring with detail values assigned to each node.
Definition GeoDataLineString.cpp:854
GeoDataLineString mid(int pos, int length=-1) const
Returns a sub-string which contains elements from this vector, starting at position pos.
Definition GeoDataLineString.cpp:306
QList< GeoDataCoordinates >::ConstIterator constBegin() const
Returns a const iterator that points to the begin of the LineString.
Definition GeoDataLineString.cpp:382
const GeoDataLatLonAltBox & latLonAltBox() const override
Returns the smallest latLonAltBox that contains the LineString.
Definition GeoDataLineString.cpp:786
virtual GeoDataLineString toRangeCorrected() const
Provides a more generic representation of the LineString.
Definition GeoDataLineString.cpp:594
virtual QList< GeoDataLineString * > toDateLineCorrected() const
The line string corrected for date line crossing.
Definition GeoDataLineString.cpp:612
QList< GeoDataCoordinates >::ConstIterator constEnd() const
Returns a const iterator that points to the end of the LineString.
Definition GeoDataLineString.cpp:388
GeoDataLineString & operator<<(const GeoDataCoordinates &value)
Appends a given geodesic position as a new node to the LineString.
Definition GeoDataLineString.cpp:437
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
Definition GeoDataLineString.cpp:45
bool operator==(const GeoDataLineString &other) const
Returns true/false depending on whether this and other are/are not equal.
Definition GeoDataLineString.cpp:471
QList< GeoDataCoordinates >::Iterator begin()
Returns an iterator that points to the begin of the LineString.
Definition GeoDataLineString.cpp:354
virtual GeoDataLineString toNormalized() const
The line string with nodes that have proper longitude/latitude ranges.
Definition GeoDataLineString.cpp:567
QList< GeoDataCoordinates >::Iterator end()
Returns an iterator that points to the end of the LineString.
Definition GeoDataLineString.cpp:368
void pack(QDataStream &stream) const override
Serialize the LineString to a stream.
Definition GeoDataLineString.cpp:893
GeoDataCoordinates & operator[](int pos)
Returns a reference to the coordinates of a node at a given position. This method detaches the return...
Definition GeoDataLineString.cpp:296
void setTessellate(bool tessellate)
Sets the tessellation property for the LineString.
Definition GeoDataLineString.cpp:524
void append(const GeoDataCoordinates &value)
Appends a given geodesic position as a new node to the LineString.
Definition GeoDataLineString.cpp:406
virtual GeoDataLineString toPoleCorrected() const
The line string with more generic pole values.
Definition GeoDataLineString.cpp:623
virtual qreal length(qreal planetRadius, int offset=0) const
Returns the length of LineString across a sphere starting from a coordinate in LineString This method...
Definition GeoDataLineString.cpp:802
GeoDataCoordinates & last()
Returns a reference to the last node in the LineString. This method detaches the returned coordinate ...
Definition GeoDataLineString.cpp:324
void reserve(int size)
Attempts to allocate memory for at least size coordinates.
Definition GeoDataLineString.cpp:418
QList< GeoDataCoordinates >::Iterator erase(const QList< GeoDataCoordinates >::Iterator &position)
Removes the node at the given position and returns it.
Definition GeoDataLineString.cpp:820
bool tessellate() const
Returns whether the LineString follows the earth's surface.
Definition GeoDataLineString.cpp:518
A LinearRing that allows to store a closed, contiguous set of line segments.
Definition GeoDataLinearRing.h:60
Q_SCRIPTABLE Q_NOREPLY void start()
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
QLatin1Char first() const const
ConstIterator
Iterator
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.