Skip to content
Permalink
Browse files
Use setCoordinateTransform instead of setCoordTransform
git-svn-id: http://svn.osgeo.org/qgis/trunk@9540 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 24, 2008
1 parent 6eb5e8c commit 7bd5e8dfa08ccfec228aafc018d94f3a229b52e9
Showing with 6 additions and 6 deletions.
  1. +1 −1 python/core/qgsrendercontext.sip
  2. +3 −3 src/core/qgsmaprenderer.cpp
  3. +1 −1 src/core/qgsrendercontext.cpp
  4. +1 −1 src/core/qgsrendercontext.h
@@ -33,7 +33,7 @@ class QgsRenderContext
//setters

/**Sets coordinate transformation. QgsRenderContext takes ownership and deletes if necessary*/
void setCoordTransform(QgsCoordinateTransform* t);
void setCoordinateTransform(QgsCoordinateTransform* t);
void setMapToPixel(const QgsMapToPixel& mtp);
void setExtent(const QgsRect& extent);
void setDrawEditingInformation(bool b);
@@ -231,7 +231,7 @@ void QgsMapRenderer::render( QPainter* painter )

mRenderContext.setDrawEditingInformation( !mOverview );
mRenderContext.setPainter( painter );
mRenderContext.setCoordTransform( 0 );
mRenderContext.setCoordinateTransform( 0 );
//this flag is only for stopping during the current rendering progress,
//so must be false at every new render operation
mRenderContext.setRenderingStopped( false );
@@ -313,7 +313,7 @@ void QgsMapRenderer::render( QPainter* painter )
ct = NULL;
}

mRenderContext.setCoordTransform( ct );
mRenderContext.setCoordinateTransform( ct );

//decide if we have to scale the raster
//this is necessary in case QGraphicsScene is used
@@ -407,7 +407,7 @@ void QgsMapRenderer::render( QPainter* painter )
ct = NULL;
}

mRenderContext.setCoordTransform( ct );
mRenderContext.setCoordinateTransform( ct );

ml->drawLabels( mRenderContext );
if ( split )
@@ -28,7 +28,7 @@ QgsRenderContext::~QgsRenderContext()
delete mCoordTransform;
}

void QgsRenderContext::setCoordTransform( QgsCoordinateTransform* t )
void QgsRenderContext::setCoordinateTransform( QgsCoordinateTransform* t )
{
delete mCoordTransform;
mCoordTransform = t;
@@ -59,7 +59,7 @@ class CORE_EXPORT QgsRenderContext
//setters

/**Sets coordinate transformation. QgsRenderContext takes ownership and deletes if necessary*/
void setCoordTransform( QgsCoordinateTransform* t );
void setCoordinateTransform( QgsCoordinateTransform* t );
void setMapToPixel( const QgsMapToPixel& mtp ) {mMapToPixel = mtp;}
void setExtent( const QgsRect& extent ) {mExtent = extent;}
void setDrawEditingInformation( bool b ) {mDrawEditingInformation = b;}

0 comments on commit 7bd5e8d

Please sign in to comment.