Skip to content


Added missing bindings to QgsMapRenderer.
Browse files Browse the repository at this point in the history
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 4, 2009
1 parent f8eb070 commit 68f2530
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions python/core/qgsmaprenderer.sip
Expand Up @@ -13,6 +13,14 @@ class QgsMapRenderer : QObject


/**Output units for pen width and point marker width/height*/
enum OutputUnits
//MAP_UNITS probably supported in future versions

//! constructor

Expand All @@ -26,11 +34,14 @@ class QgsMapRenderer : QObject
bool setExtent(const QgsRectangle& extent);

//! returns current extent
QgsRectangle extent();
QgsRectangle extent() const;

const QgsMapToPixel* coordinateTransform();

double scale() const;
/**Sets scale for scale based visibility. Normally, the scale is calculated automatically. This
function is only used to force a preview scale (e.g. for print composer)*/
void setScale( double scale );
double mapUnitsPerPixel() const;

int width() const;
Expand All @@ -40,6 +51,7 @@ class QgsMapRenderer : QObject
//! Recalculate the map scale
void updateScale();

QgsDistanceArea* distanceArea();
QGis::UnitType mapUnits() const;
void setMapUnits(QGis::UnitType u);

Expand Down Expand Up @@ -77,6 +89,10 @@ class QgsMapRenderer : QObject
//! returns CRS ID of destination spatial reference system
const QgsCoordinateReferenceSystem& destinationSrs();

void setOutputUnits( OutputUnits u );

OutputUnits outputUnits() const;

//! returns current extent of layer set
QgsRectangle fullExtent();

Expand All @@ -95,9 +111,12 @@ class QgsMapRenderer : QObject
//! write settings
bool writeXML(QDomNode & theNode, QDomDocument & theDoc);

//! Accessor for render context
QgsRenderContext* rendererContext();


void setProgress(int current, int total);
void drawingProgress(int current, int total);

void hasCrsTransformEnabled(bool flag);

Expand Down

0 comments on commit 68f2530

Please sign in to comment.