[QGIS Commit] r10467 - trunk/qgis/python/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Apr 4 18:23:50 EDT 2009


Author: wonder
Date: 2009-04-04 18:23:50 -0400 (Sat, 04 Apr 2009)
New Revision: 10467

Modified:
   trunk/qgis/python/core/qgsmaprenderer.sip
Log:
Added missing bindings to QgsMapRenderer.


Modified: trunk/qgis/python/core/qgsmaprenderer.sip
===================================================================
--- trunk/qgis/python/core/qgsmaprenderer.sip	2009-04-04 14:16:28 UTC (rev 10466)
+++ trunk/qgis/python/core/qgsmaprenderer.sip	2009-04-04 22:23:50 UTC (rev 10467)
@@ -13,6 +13,14 @@
       
   public:
     
+    /**Output units for pen width and point marker width/height*/
+    enum OutputUnits
+    {
+      Millimeters,
+      Pixels
+      //MAP_UNITS probably supported in future versions
+    };
+    
     //! constructor
     QgsMapRenderer();
     
@@ -26,11 +34,14 @@
     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;
@@ -40,6 +51,7 @@
     //! Recalculate the map scale
     void updateScale();
 
+    QgsDistanceArea* distanceArea();
     QGis::UnitType mapUnits() const;
     void setMapUnits(QGis::UnitType u);
     
@@ -77,6 +89,10 @@
     //! 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();
     
@@ -95,9 +111,12 @@
     //! 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);
     



More information about the QGIS-commit mailing list