QGIS/python/core/qgsrendercontext.sip
mhugent 47f79b541d Merge of rendercontext branch into trunk
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8440 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-15 08:13:05 +00:00

45 lines
938 B
Plaintext

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