[Marble-commits] KDE/kdeedu/marble/src/lib/Projections
Jens-Michael Hoffmann
jensmh at gmx.de
Wed Apr 21 05:28:23 CEST 2010
SVN commit 1117063 by jmhoffmann:
AbstractProjectionPrivate: declare methods const.
M +6 -6 AbstractProjection.cpp
M +6 -6 AbstractProjection_p.h
--- trunk/KDE/kdeedu/marble/src/lib/Projections/AbstractProjection.cpp #1117062:1117063
@@ -356,7 +356,7 @@
void AbstractProjectionPrivate::repeatPolygons( const ViewportParams *viewport,
- QVector<QPolygonF *> &polygons )
+ QVector<QPolygonF *> &polygons ) const
{
if ( !q->repeatX() ) {
// The projection doesn't allow repeats in direction of the x-axis
@@ -429,7 +429,7 @@
void AbstractProjectionPrivate::translatePolygons( const QVector<QPolygonF *> &polygons,
QVector<QPolygonF *> &translatedPolygons,
- qreal xOffset )
+ qreal xOffset ) const
{
// mDebug() << "Translation: " << xOffset;
@@ -450,7 +450,7 @@
bool& horizonPair,
GeoDataCoordinates& horizonDisappearCoords,
bool& horizonOrphan,
- GeoDataCoordinates& horizonOrphanCoords )
+ GeoDataCoordinates& horizonOrphanCoords ) const
{
if ( !horizonPair ) {
if ( globeHidesPoint ) {
@@ -691,7 +691,7 @@
const GeoDataCoordinates ¤tCoords,
int tessellatedNodes,
const ViewportParams *viewport,
- TessellationFlags f )
+ TessellationFlags f ) const
{
QPolygonF path;
@@ -821,7 +821,7 @@
const GeoDataCoordinates & currentCoords,
const ViewportParams *viewport,
TessellationFlags f,
- int recursionCounter )
+ int recursionCounter ) const
{
bool currentHide = globeHidesPoint( currentCoords, viewport ) ;
@@ -887,7 +887,7 @@
bool AbstractProjectionPrivate::globeHidesPoint( const GeoDataCoordinates &coordinates,
- const ViewportParams *viewport )
+ const ViewportParams *viewport ) const
{
qreal absoluteAltitude = coordinates.altitude() + EARTH_RADIUS;
Quaternion qpos = coordinates.quaternion();
--- trunk/KDE/kdeedu/marble/src/lib/Projections/AbstractProjection_p.h #1117062:1117063
@@ -33,29 +33,29 @@
const GeoDataCoordinates & currentCoords,
const ViewportParams *viewport,
TessellationFlags f = 0,
- int recursionCounter = 0 );
+ int recursionCounter = 0 ) const;
bool globeHidesPoint( const GeoDataCoordinates &coordinates,
- const ViewportParams *viewport );
+ const ViewportParams *viewport ) const;
void manageHorizonCrossing( bool globeHidesPoint,
const GeoDataCoordinates& horizonCoords,
bool& horizonPair,
GeoDataCoordinates& horizonDisappearCoords,
bool& horizonOrphan,
- GeoDataCoordinates& horizonOrphanCoords );
+ GeoDataCoordinates& horizonOrphanCoords ) const;
QPolygonF processTessellation( const GeoDataCoordinates &previousCoords,
const GeoDataCoordinates ¤tCoords,
int count, const ViewportParams *viewport,
- TessellationFlags f = 0 );
+ TessellationFlags f = 0 ) const;
void repeatPolygons( const ViewportParams *viewport,
- QVector<QPolygonF *> &polygons );
+ QVector<QPolygonF *> &polygons ) const;
void translatePolygons( const QVector<QPolygonF *> &polygons,
QVector<QPolygonF *> &translatedPolygons,
- qreal xOffset );
+ qreal xOffset ) const;
};
} // namespace Marble
More information about the Marble-commits
mailing list