Marble
GeoDataLineString.cpp
71 if ( f.testFlag( RespectLatitudeCircle ) && previousCoords.latitude() == currentCoords.latitude() ) {
92 GeoDataCoordinates GeoDataLineStringPrivate::findDateLine( const GeoDataCoordinates & previousCoords,
103 // mDebug() << "stopped at recursion" << recursionCounter << " and longitude difference " << longitudeDiff;
203 quint8 startLevel = levelForResolution( ( lineString.latLonAltBox().width() + lineString.latLonAltBox().height() ) / 2 );
232 if ( currentLevel == startLevel && (itCoords->longitude() == -M_PI || itCoords->longitude() == M_PI
630 void GeoDataLineStringPrivate::toPoleCorrected( const GeoDataLineString& q, GeoDataLineString& poleCorrected ) const
829 QVector<GeoDataCoordinates>::Iterator GeoDataLineString::erase ( const QVector<GeoDataCoordinates>::Iterator& pos )
virtual QVector< GeoDataLineString * > toDateLineCorrected() const
The line string corrected for date line crossing.
Definition: GeoDataLineString.cpp:604
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:42
void append(const GeoDataCoordinates &value)
Appends a given geodesic position as a new node to the LineString.
Definition: GeoDataLineString.cpp:391
T & last()
QVector::iterator begin()
virtual GeoDataLineString toRangeCorrected() const
Provides a more generic representation of the LineString.
Definition: GeoDataLineString.cpp:585
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:110
GeoDataLineString(TessellationFlags f=NoTessellation)
Creates a new LineString.
Definition: GeoDataLineString.cpp:21
QVector::const_iterator constEnd() const const
virtual GeoDataLineString toPoleCorrected() const
The line string with more generic pole values.
Definition: GeoDataLineString.cpp:615
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
Definition: GeoDataLineString.cpp:46
qreal longitude(GeoDataCoordinates::Unit unit) const
retrieves the longitude of the GeoDataCoordinates object use the unit parameter to switch between Rad...
Definition: GeoDataCoordinates.cpp:198
QVariantList toVariantList() const
Returns a javascript-style list (that can be used e.g. with the QML GeoPolyline element).
Definition: GeoDataLineString.cpp:879
QVector< GeoDataCoordinates >::ConstIterator constBegin() const
Returns a const iterator that points to the begin of the LineString.
Definition: GeoDataLineString.cpp:367
void reserve(int size)
Attempts to allocate memory for at least size coordinates.
Definition: GeoDataLineString.cpp:403
void unpack(QDataStream &stream) override
Unserialize the contents of the feature from stream.
Definition: GeoDataGeometry.cpp:164
bool tessellate() const
Returns whether the LineString follows the earth's surface.
Definition: GeoDataLineString.cpp:505
void unpack(QDataStream &stream)
Unserialize the contents of the feature from stream.
Definition: GeoDataCoordinates.cpp:916
GeoDataCoordinates & last()
Returns a reference to the last node in the LineString. This method detaches the returned coordinate ...
Definition: GeoDataLineString.cpp:309
Q_SCRIPTABLE Q_NOREPLY void start()
GeoDataLineString & operator<<(const GeoDataCoordinates &value)
Appends a given geodesic position as a new node to the LineString.
Definition: GeoDataLineString.cpp:422
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:67
const GeoDataLatLonAltBox & latLonAltBox() const override
Returns the smallest latLonAltBox that contains the LineString.
Definition: GeoDataLineString.cpp:794
bool isEmpty() const
Returns whether the LineString has no nodes at all.
Definition: GeoDataLineString.cpp:253
QVector< GeoDataCoordinates >::ConstIterator constEnd() const
Returns a const iterator that points to the end of the LineString.
Definition: GeoDataLineString.cpp:373
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:810
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:22
void pack(QDataStream &stream) const override
Serialize the LineString to a stream.
Definition: GeoDataLineString.cpp:903
TessellationFlags tessellationFlags() const
Returns the tessellation flags for a LineString.
Definition: GeoDataLineString.cpp:528
GeoDataCoordinates & first()
Returns a reference to the first node in the LineString. This method detaches the returned coordinate...
Definition: GeoDataLineString.cpp:319
bool operator==(const GeoDataLineString &other) const
Returns true/false depending on whether this and other are/are not equal.
Definition: GeoDataLineString.cpp:456
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:265
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:281
virtual GeoDataLineString toNormalized() const
The line string with nodes that have proper longitude/latitude ranges.
Definition: GeoDataLineString.cpp:554
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:837
QVector< GeoDataCoordinates >::Iterator begin()
Returns an iterator that points to the begin of the LineString.
Definition: GeoDataLineString.cpp:339
void unpack(QDataStream &stream) override
Unserialize the LineString from a stream.
Definition: GeoDataLineString.cpp:923
QVector< GeoDataCoordinates >::Iterator end()
Returns an iterator that points to the end of the LineString.
Definition: GeoDataLineString.cpp:353
QVector< GeoDataCoordinates >::Iterator erase(const QVector< GeoDataCoordinates >::Iterator &position)
Removes the node at the given position and returns it.
Definition: GeoDataLineString.cpp:829
static GeoDataLatLonAltBox fromLineString(const GeoDataLineString &lineString)
Create the smallest bounding box from a line string.
Definition: GeoDataLatLonAltBox.cpp:207
virtual bool isClosed() const
Returns whether a LineString is a closed polygon.
Definition: GeoDataLineString.cpp:500
QVector::const_iterator constBegin() const const
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:291
void pack(QDataStream &stream) const override
Serialize the contents of the feature to stream.
Definition: GeoDataGeometry.cpp:156
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:314
void pack(QDataStream &stream) const
Serialize the contents of the feature to stream.
Definition: GeoDataCoordinates.cpp:909
void setTessellationFlags(TessellationFlags f)
Sets the given tessellation flags for a LineString.
Definition: GeoDataLineString.cpp:534
void insert(int index, const GeoDataCoordinates &value)
Inserts a new node at the given index.
Definition: GeoDataLineString.cpp:379
void remove(int i)
Removes the node at the given position and destroys it.
Definition: GeoDataLineString.cpp:854
void setTessellate(bool tessellate)
Sets the tessellation property for the LineString.
Definition: GeoDataLineString.cpp:511
A LinearRing that allows to store a closed, contiguous set of line segments.
Definition: GeoDataLinearRing.h:62
QVector< V > values(const QMultiHash< K, V > &c)
Q_D(Todo)
GeoDataLineString optimized() const
Returns a linestring with detail values assigned to each node.
Definition: GeoDataLineString.cpp:864
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.