marble
CylindricalProjection.cpp
Go to the documentation of this file.
130 int const finalTessellationPrecision = smallScreen ? 3 * tessellationPrecision : tessellationPrecision;
136 const int tessellatedNodes = qMin<int>( distance / finalTessellationPrecision, maxTessellationNodes );
156 int CylindricalProjectionPrivate::processTessellation( const GeoDataCoordinates &previousCoords,
213 const Quaternion itpos = Quaternion::nlerp( previousCoords.quaternion(), currentCoords.quaternion(), t );
221 mirrorCount = crossDateLine( previousTessellatedCoords, currentTessellatedCoords, bx, by, polygons,
234 mirrorCount = crossDateLine( previousTessellatedCoords, currentModifiedCoords, bx, by, polygons,
339 mirrorCount = crossDateLine( *itPreviousCoords, *itCoords, x, y, polygons, mirrorCount, distance );
bool lineStringToPolygon(const GeoDataLineString &lineString, const ViewportParams *viewport, QVector< QPolygonF * > &polygons) const
Definition: CylindricalProjection.cpp:264
qreal width(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the width of the longitude interval.
Definition: GeoDataLatLonBox.cpp:236
QVector< GeoDataCoordinates >::ConstIterator constEnd() const
Returns a const iterator that points to the end of the LineString.
Definition: GeoDataLineString.cpp:220
void setAltitude(const qreal altitude)
set the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1191
void append(const T &value)
const_iterator constEnd() const
T & last()
const GeoDataLatLonAltBox & viewLatLonAltBox() const
Definition: ViewportParams.cpp:305
void repeatPolygons(const ViewportParams *viewport, QVector< QPolygonF * > &polygons) const
Definition: CylindricalProjection.cpp:397
static void translatePolygons(const QVector< QPolygonF * > &polygons, QVector< QPolygonF * > &translatedPolygons, qreal xOffset)
Definition: CylindricalProjection.cpp:380
T & first()
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
QVector< GeoDataCoordinates >::ConstIterator ConstIterator
Definition: GeoDataLineString.h:80
TessellationFlags tessellationFlags() const
Returns the tessellation flags for a LineString.
Definition: GeoDataLineString.cpp:337
virtual bool isClosed() const
Returns whether a LineString is a closed polygon.
Definition: GeoDataLineString.cpp:310
qreal repeatDistance(const ViewportParams *viewport) const
Definition: CylindricalProjection.cpp:464
qreal altitude() const
return the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1197
void clear()
A base class for the Equirectangular and Mercator projections in Marble.
Definition: CylindricalProjection.h:33
static int crossDateLine(const GeoDataCoordinates &aCoord, const GeoDataCoordinates &bCoord, qreal bx, qreal by, QVector< QPolygonF * > &polygons, int mirrorCount=0, qreal repeatDistance=0)
Definition: CylindricalProjection.cpp:239
static const int tessellationPrecision
Definition: AbstractProjection.h:37
virtual bool screenCoordinates(const GeoDataLineString &lineString, const ViewportParams *viewport, QVector< QPolygonF * > &polygons) const
Definition: CylindricalProjection.cpp:81
int tessellateLineSegment(const GeoDataCoordinates &aCoords, qreal ax, qreal ay, const GeoDataCoordinates &bCoords, qreal bx, qreal by, QVector< QPolygonF * > &polygons, const ViewportParams *viewport, TessellationFlags f=0, int mirrorCount=0, qreal repeatDistance=0) const
Definition: CylindricalProjection.cpp:100
void addRect(const QRectF &rectangle)
void translate(qreal dx, qreal dy)
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
int processTessellation(const GeoDataCoordinates &previousCoords, const GeoDataCoordinates ¤tCoords, int count, QVector< QPolygonF * > &polygons, const ViewportParams *viewport, TessellationFlags f=0, int mirrorCount=0, qreal repeatDistance=0) const
Definition: CylindricalProjection.cpp:156
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 ~CylindricalProjection()
Definition: CylindricalProjection.cpp:39
virtual GeoDataCoordinates center() const
returns the center of this box
Definition: GeoDataLatLonAltBox.cpp:151
This file contains the headers for ViewportParams.
CylindricalProjectionPrivate(CylindricalProjection *parent)
Definition: CylindricalProjection.cpp:43
Definition: MarbleGlobal.h:33
This file contains the headers for CylindricalProjection.
const_iterator constBegin() const
QVector< GeoDataCoordinates >::ConstIterator constBegin() const
Returns a const iterator that points to the begin of the LineString.
Definition: GeoDataLineString.cpp:215
bool isEmpty() const
Definition: Quaternion.h:41
A base class for all projections in Marble.
Definition: AbstractProjection.h:49
bool resolves(const GeoDataLatLonBox &latLonBox) const
Definition: ViewportParams.cpp:330
CylindricalProjection()
Definition: CylindricalProjection.cpp:29
void push_front(const T &value)
void push_back(const T &value)
bool containsPole(Pole pole=AnyPole) const
Detect whether the bounding box contains one of the poles.
Definition: GeoDataLatLonBox.cpp:289
Definition: MarbleGlobal.h:34
virtual QPainterPath mapShape(const ViewportParams *viewport) const
Definition: CylindricalProjection.cpp:51
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.