mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
45 lines
938 B
Plaintext
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);
|
|
};
|