marble
GeoDataLineString.cpp
Go to the documentation of this file.
69 if ( f.testFlag( RespectLatitudeCircle ) && previousCoords.latitude() == currentCoords.latitude() ) {
90 GeoDataCoordinates GeoDataLineStringPrivate::findDateLine( const GeoDataCoordinates & previousCoords,
101 // mDebug() << "stopped at recursion" << recursionCounter << " and longitude difference " << longitudeDiff;
111 const Quaternion itpos = Quaternion::nlerp( previousCoords.quaternion(), currentCoords.quaternion(), 0.5 );
415 void GeoDataLineStringPrivate::toPoleCorrected( const GeoDataLineString& q, GeoDataLineString& poleCorrected ) const
612 QVector<GeoDataCoordinates>::Iterator GeoDataLineString::erase ( QVector<GeoDataCoordinates>::Iterator pos )
623 QVector<GeoDataCoordinates>::Iterator GeoDataLineString::erase ( QVector<GeoDataCoordinates>::Iterator begin,
QVector< GeoDataCoordinates >::Iterator begin()
Returns an iterator that points to the begin of the LineString.
Definition: GeoDataLineString.cpp:193
virtual QVector< GeoDataLineString * > toDateLineCorrected() const
The line string corrected for date line crossing.
Definition: GeoDataLineString.cpp:393
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:594
virtual void unpack(QDataStream &stream)
Unserialize the contents of the feature from stream.
Definition: GeoDataCoordinates.cpp:1335
static GeoDataLatLonAltBox fromLineString(const GeoDataLineString &lineString)
Create the smallest bounding box from a line string.
Definition: GeoDataLatLonAltBox.cpp:215
void setTessellate(bool tessellate)
Sets the tessellation property for the LineString.
Definition: GeoDataLineString.cpp:320
GeoDataCoordinates & last()
Returns a reference to the last node in the LineString. This method detaches the returned coordinate ...
Definition: GeoDataLineString.cpp:169
virtual void unpack(QDataStream &stream)
Unserialize the contents of the feature from stream.
Definition: GeoDataGeometry.cpp:135
QVector< GeoDataCoordinates >::ConstIterator constEnd() const
Returns a const iterator that points to the end of the LineString.
Definition: GeoDataLineString.cpp:220
A LinearRing that allows to store a closed, contiguous set of line segments.
Definition: GeoDataLinearRing.h:68
void interpolateDateLine(const GeoDataCoordinates &previousCoords, const GeoDataCoordinates ¤tCoords, GeoDataCoordinates &previousAtDateline, GeoDataCoordinates ¤tAtDateline, TessellationFlags f) const
Definition: GeoDataLineString.cpp:59
bool operator==(const GeoDataLineString &other) const
Returns true/false depending on whether this and other are/are not equal.
Definition: GeoDataLineString.cpp:267
QVector< GeoDataCoordinates >::Iterator end()
Returns an iterator that points to the end of the LineString.
Definition: GeoDataLineString.cpp:204
qreal distanceSphere(qreal lon1, qreal lat1, qreal lon2, qreal lat2)
This method calculates the shortest distance between two points on a sphere.
Definition: MarbleMath.h:52
void toPoleCorrected(const GeoDataLineString &q, GeoDataLineString &poleCorrected) const
Definition: GeoDataLineString.cpp:415
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataCoordinates object use the unit parameter to switch between Radi...
Definition: GeoDataCoordinates.cpp:751
static Quaternion nlerp(const Quaternion &q1, const Quaternion &q2, qreal t)
Definition: Quaternion.cpp:231
TessellationFlags m_tessellationFlags
Definition: GeoDataLineString_p.h:96
virtual GeoDataLineString toRangeCorrected() const
Provides a more generic representation of the LineString.
Definition: GeoDataLineString.cpp:376
virtual void unpack(QDataStream &stream)
Unserialize the LineString from a stream.
Definition: GeoDataLineString.cpp:662
TessellationFlags tessellationFlags() const
Returns the tessellation flags for a LineString.
Definition: GeoDataLineString.cpp:337
virtual GeoDataLineString toPoleCorrected() const
The line string with more generic pole values.
Definition: GeoDataLineString.cpp:402
virtual void pack(QDataStream &stream) const
Serialize the contents of the feature to stream.
Definition: GeoDataGeometry.cpp:127
virtual bool isClosed() const
Returns whether a LineString is a closed polygon.
Definition: GeoDataLineString.cpp:310
qreal altitude() const
return the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1197
void setTessellationFlags(TessellationFlags f)
Sets the given tessellation flags for a LineString.
Definition: GeoDataLineString.cpp:342
GeoDataCoordinates & first()
Returns a reference to the first node in the LineString. This method detaches the returned coordinate...
Definition: GeoDataLineString.cpp:177
QVector< GeoDataCoordinates > m_vector
Definition: GeoDataLineString_p.h:88
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:845
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:657
void append(const GeoDataCoordinates &position)
Appends a given geodesic position as a new node to the LineString.
Definition: GeoDataLineString.cpp:225
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
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:143
qreal longitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the longitude of the GeoDataCoordinates object use the unit parameter to switch between Rad...
Definition: GeoDataCoordinates.cpp:739
virtual void pack(QDataStream &stream) const
Serialize the LineString to a stream.
Definition: GeoDataLineString.cpp:644
void remove(int i)
Removes the node at the given position and destroys it.
Definition: GeoDataLineString.cpp:635
Definition: MarbleGlobal.h:33
void setLongitude(qreal lon, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
set the longitude in a GeoDataCoordinates object
Definition: GeoDataCoordinates.cpp:679
GeoDataLineString * m_rangeCorrected
Definition: GeoDataLineString_p.h:90
bool isEmpty() const
Returns whether the LineString has no nodes at all.
Definition: GeoDataLineString.cpp:133
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:156
void toDateLineCorrected(const GeoDataLineString &q, QVector< GeoDataLineString * > &lineStrings) const
Definition: GeoDataLineString.cpp:481
QVector< GeoDataCoordinates >::ConstIterator constBegin() const
Returns a const iterator that points to the begin of the LineString.
Definition: GeoDataLineString.cpp:215
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:1266
Definition: Quaternion.h:41
virtual GeoDataLineString toNormalized() const
The line string with nodes that have proper longitude/latitude ranges.
Definition: GeoDataLineString.cpp:347
GeoDataCoordinates findDateLine(const GeoDataCoordinates &previousCoords, const GeoDataCoordinates ¤tCoords, int recursionCounter) const
Definition: GeoDataLineString.cpp:90
QVector< GeoDataCoordinates >::Iterator erase(QVector< GeoDataCoordinates >::Iterator position)
Removes the node at the given position and returns it.
Definition: GeoDataLineString.cpp:612
GeoDataLineString(TessellationFlags f=NoTessellation)
Creates a new LineString.
Definition: GeoDataLineString.cpp:24
GeoDataLatLonAltBox m_latLonAltBox
Definition: GeoDataGeometry_p.h:74
void getSpherical(qreal &lon, qreal &lat) const
Definition: Quaternion.cpp:48
Definition: MarbleGlobal.h:32
bool equals(const GeoDataGeometry &other) const
Definition: GeoDataGeometry.cpp:146
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Returns the smallest latLonAltBox that contains the LineString.
Definition: GeoDataLineString.cpp:580
bool tessellate() const
Returns whether the LineString follows the earth's surface.
Definition: GeoDataLineString.cpp:315
const Quaternion & quaternion() const
return a Quaternion with the used coordinates
Definition: GeoDataCoordinates.cpp:1236
virtual void pack(QDataStream &stream) const
Serialize the contents of the feature to stream.
Definition: GeoDataCoordinates.cpp:1328
GeoDataLineString & operator<<(const GeoDataCoordinates &position)
Appends a given geodesic position as a new node to the LineString.
Definition: GeoDataLineString.cpp:236
bool operator!=(const GeoDataLineString &other) const
Definition: GeoDataLineString.cpp:293
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.