Marble
GeoDataLineString.h
143 * @brief Returns the length of LineString across a sphere starting from a coordinate in LineString
225 Returns a sub-string which contains elements from this vector, starting at position pos. If length is -1
226 (the default), all elements after pos are included; otherwise length elements (or all remaining elements if
332 QList<GeoDataCoordinates>::Iterator erase(const QList<GeoDataCoordinates>::Iterator &begin, const QList<GeoDataCoordinates>::Iterator &end);
A class that defines a 3D bounding box for geographic data.
Definition GeoDataLatLonAltBox.h:40
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
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
typedef ConstIterator
typedef Iterator
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.