[Marble-commits] KDE/kdeedu/marble/src/lib
Torsten Rahn
tackat at kde.org
Sat Jul 25 12:22:56 CEST 2009
SVN commit 1002189 by rahn:
- Fixes a regression that doesn't paint the pole axis in the test plugin properly anymore.
- Fixes a missing parameter.
M +1 -1 GeoPainter.cpp
M +8 -0 ViewportParams.cpp
M +2 -0 ViewportParams.h
--- trunk/KDE/kdeedu/marble/src/lib/GeoPainter.cpp #1002188:1002189
@@ -442,7 +442,7 @@
line << startPoint << endPoint;
- return regionFromPolyline( line );
+ return regionFromPolyline( line, strokeWidth );
}
--- trunk/KDE/kdeedu/marble/src/lib/ViewportParams.cpp #1002188:1002189
@@ -339,6 +339,14 @@
return latLonBox.width() + latLonBox.height() > 2.0 * angularResolution();
}
+
+bool ViewportParams::resolves ( const GeoDataLatLonAltBox &latLonAltBox ) const
+{
+ return latLonAltBox.width() + latLonAltBox.height() > 2.0 * angularResolution()
+ || latLonAltBox.maxAltitude() - latLonAltBox.minAltitude() > 10000;
+
+}
+
bool ViewportParams::resolves ( const GeoDataCoordinates &coord1,
const GeoDataCoordinates &coord2 ) const
{
--- trunk/KDE/kdeedu/marble/src/lib/ViewportParams.h #1002188:1002189
@@ -70,6 +70,8 @@
bool resolves ( const GeoDataLatLonBox &latLonBox ) const;
+ bool resolves ( const GeoDataLatLonAltBox &latLonAltBox ) const;
+
// Determines whether two points are located enough apart so that it makes
// sense to display them as distinct points. If this is not the case
// calculation and drawing of one point can be skipped as only a single
More information about the Marble-commits
mailing list