2008-05-15 08:13:05 +00:00
|
|
|
|
|
|
|
class QgsRenderContext
|
|
|
|
{
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsrendercontext.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
QgsRenderContext();
|
|
|
|
~QgsRenderContext();
|
|
|
|
|
|
|
|
//getters
|
|
|
|
|
|
|
|
QPainter* painter();
|
|
|
|
|
2008-08-23 09:19:49 +00:00
|
|
|
const QgsCoordinateTransform* coordinateTransform() const;
|
2008-05-15 08:13:05 +00:00
|
|
|
|
2008-11-09 00:14:12 +00:00
|
|
|
const QgsRectangle& extent() const;
|
2008-05-15 08:13:05 +00:00
|
|
|
|
|
|
|
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*/
|
2008-10-24 22:45:38 +00:00
|
|
|
void setCoordinateTransform(QgsCoordinateTransform* t);
|
2008-05-15 08:13:05 +00:00
|
|
|
void setMapToPixel(const QgsMapToPixel& mtp);
|
2008-11-09 00:14:12 +00:00
|
|
|
void setExtent(const QgsRectangle& extent);
|
2008-05-15 08:13:05 +00:00
|
|
|
void setDrawEditingInformation(bool b);
|
|
|
|
void setRenderingStopped(bool stopped);
|
|
|
|
void setScaleFactor(double factor);
|
|
|
|
void setRasterScaleFactor(double factor);
|
|
|
|
void setPainter(QPainter* p);
|
|
|
|
};
|