Skip to content

Commit

Permalink
Added missing bindings to QgsMapRenderer.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10467 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 4, 2009
1 parent e62388c commit c99cc3e
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

public:

/**Output units for pen width and point marker width/height*/
enum OutputUnits
{
Millimeters,
Pixels
//MAP_UNITS probably supported in future versions
};

//! constructor
QgsMapRenderer();

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();

signals:

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

void hasCrsTransformEnabled(bool flag);

Expand Down

0 comments on commit c99cc3e

Please sign in to comment.