[QGIS Commit] r8328 - branches/rendercontext-branch/python/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Mon Apr 7 15:54:27 EDT 2008
Author: mhugent
Date: 2008-04-07 15:54:27 -0400 (Mon, 07 Apr 2008)
New Revision: 8328
Added:
branches/rendercontext-branch/python/core/qgsrendercontext.sip
Log:
added qgsrendercontext.sip
Added: branches/rendercontext-branch/python/core/qgsrendercontext.sip
===================================================================
--- branches/rendercontext-branch/python/core/qgsrendercontext.sip (rev 0)
+++ branches/rendercontext-branch/python/core/qgsrendercontext.sip 2008-04-07 19:54:27 UTC (rev 8328)
@@ -0,0 +1,44 @@
+
+class QgsRenderContext
+{
+
+%TypeHeaderCode
+#include <qgsrendercontext.h>
+%End
+
+ public:
+ QgsRenderContext();
+ ~QgsRenderContext();
+
+ //getters
+
+ QPainter* painter();
+
+ const QgsCoordinateTransform* coordTransform() const;
+
+ const QgsRect& extent() const;
+
+ const QgsMapToPixel& mapToPixel() const;
+
+ double scaleFactor() const;
+
+ double rasterScaleFactor() const;
+
+ bool renderingStopped() const;
+
+ bool forceVectorOutput() const;
+
+ bool drawEditingInformation() const;
+
+ //setters
+
+ /**Sets coordinate transformation. QgsRenderContext takes ownership and deletes if necessary*/
+ void setCoordTransform(QgsCoordinateTransform* t);
+ void setMapToPixel(const QgsMapToPixel& mtp);
+ void setExtent(const QgsRect& extent);
+ void setDrawEditingInformation(bool b);
+ void setRenderingStopped(bool stopped);
+ void setScaleFactor(double factor);
+ void setRasterScaleFactor(double factor);
+ void setPainter(QPainter* p);
+};
More information about the QGIS-commit
mailing list