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,
340 mirrorCount = crossDateLine( *itPreviousCoords, *itCoords, x, y, polygons, mirrorCount, distance );
bool lineStringToPolygon(const GeoDataLineString &lineString, const ViewportParams *viewport, QVector< QPolygonF * > &polygons) const
Definition: CylindricalProjection.cpp:265
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:216
void setAltitude(const qreal altitude)
set the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1191
void translatePolygons(const QVector< QPolygonF * > &polygons, QVector< QPolygonF * > &translatedPolygons, qreal xOffset) const
Definition: CylindricalProjection.cpp:381
int crossDateLine(const GeoDataCoordinates &aCoord, const GeoDataCoordinates &bCoord, qreal bx, qreal by, QVector< QPolygonF * > &polygons, int mirrorCount=0, qreal repeatDistance=0) const
Definition: CylindricalProjection.cpp:239
const GeoDataLatLonAltBox & viewLatLonAltBox() const
Definition: ViewportParams.cpp:305
void repeatPolygons(const ViewportParams *viewport, QVector< QPolygonF * > &polygons) const
Definition: CylindricalProjection.cpp:398
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:207
QVector< GeoDataCoordinates >::ConstIterator ConstIterator
Definition: GeoDataLineString.h:80
TessellationFlags tessellationFlags() const
Returns the tessellation flags for a LineString.
Definition: GeoDataLineString.cpp:302
virtual bool isClosed() const
Returns whether a LineString is a closed polygon.
Definition: GeoDataLineString.cpp:275
qreal repeatDistance(const ViewportParams *viewport) const
Definition: CylindricalProjection.cpp:465
qreal altitude() const
return the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1197
A base class for the Equirectangular and Mercator projections in Marble.
Definition: CylindricalProjection.h:33
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
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:152
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.
QVector< GeoDataCoordinates >::ConstIterator constBegin() const
Returns a const iterator that points to the begin of the LineString.
Definition: GeoDataLineString.cpp:211
Definition: Quaternion.h:43
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
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:545
bool tessellate() const
Returns whether the LineString follows the earth's surface.
Definition: GeoDataLineString.cpp:280
const Quaternion & quaternion() const
return a Quaternion with the used coordinates
Definition: GeoDataCoordinates.cpp:1226
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.