mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9653 c8812cc2-4d05-0410-92ff-de0c093fc19c
48 lines
1.0 KiB
Plaintext
48 lines
1.0 KiB
Plaintext
|
|
class QgsRenderContext
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
#include <qgsrendercontext.h>
|
|
%End
|
|
|
|
public:
|
|
QgsRenderContext();
|
|
~QgsRenderContext();
|
|
|
|
//getters
|
|
|
|
QPainter* painter();
|
|
|
|
const QgsCoordinateTransform* coordinateTransform() const;
|
|
|
|
const QgsRectangle& extent() const;
|
|
|
|
const QgsMapToPixel& mapToPixel() const;
|
|
|
|
double scaleFactor() const;
|
|
|
|
double rasterScaleFactor() const;
|
|
|
|
bool renderingStopped() const;
|
|
|
|
bool forceVectorOutput() const;
|
|
|
|
bool drawEditingInformation() const;
|
|
|
|
double rendererScale() const;
|
|
|
|
//setters
|
|
|
|
/**Sets coordinate transformation. QgsRenderContext takes ownership and deletes if necessary*/
|
|
void setCoordinateTransform(QgsCoordinateTransform* t);
|
|
void setMapToPixel(const QgsMapToPixel& mtp);
|
|
void setExtent(const QgsRectangle& extent);
|
|
void setDrawEditingInformation(bool b);
|
|
void setRenderingStopped(bool stopped);
|
|
void setScaleFactor(double factor);
|
|
void setRasterScaleFactor(double factor);
|
|
void setRendererScale( double scale );
|
|
void setPainter(QPainter* p);
|
|
};
|