QGIS API Documentation
2.6.0-Brighton
|
Contains information about the context of a rendering operation. More...
#include <qgsrendercontext.h>
Public Member Functions | |
QgsRenderContext () | |
~QgsRenderContext () | |
QPainter * | painter () |
const QPainter * | constPainter () const |
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 | useAdvancedEffects () const |
Returns true if advanced effects such as blend modes such be used. | |
void | setUseAdvancedEffects (bool enabled) |
Used to enable or disable advanced effects such as blend modes. | |
bool | drawEditingInformation () const |
double | rendererScale () const |
QgsLabelingEngineInterface * | labelingEngine () const |
QColor | selectionColor () const |
bool | showSelection () const |
Returns true if vector selections should be shown in the rendered map. | |
void | setCoordinateTransform (const QgsCoordinateTransform *t) |
Sets coordinate transformation. | |
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) |
void | setForceVectorOutput (bool force) |
void | setLabelingEngine (QgsLabelingEngineInterface *iface) |
void | setSelectionColor (const QColor &color) |
void | setShowSelection (const bool showSelection) |
Sets whether vector selections should be shown in the rendered map. | |
bool | useRenderingOptimization () const |
Returns true if the rendering optimization (geometry simplification) can be executed. | |
void | setUseRenderingOptimization (bool enabled) |
const QgsVectorSimplifyMethod & | vectorSimplifyMethod () const |
Added in QGIS v2.4. | |
void | setVectorSimplifyMethod (const QgsVectorSimplifyMethod &simplifyMethod) |
Static Public Member Functions | |
static QgsRenderContext | fromMapSettings (const QgsMapSettings &mapSettings) |
create initialized QgsRenderContext instance from given QgsMapSettings |
Contains information about the context of a rendering operation.
The context of a rendering operation defines properties such as the conversion ratio between screen and map units, the extents / bounding box to be rendered etc.
QgsRenderContext::QgsRenderContext | ( | ) |
QgsRenderContext::~QgsRenderContext | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
create initialized QgsRenderContext instance from given QgsMapSettings
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void QgsRenderContext::setCoordinateTransform | ( | const QgsCoordinateTransform * | t | ) |
Sets coordinate transformation.
QgsRenderContext does not take ownership
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sets whether vector selections should be shown in the rendered map.
showSelection | set to true if selections should be shown |
|
inline |
Used to enable or disable advanced effects such as blend modes.
|
inline |
|
inline |
|
inline |
Returns true if vector selections should be shown in the rendered map.
|
inline |
Returns true if advanced effects such as blend modes such be used.
|
inline |
Returns true if the rendering optimization (geometry simplification) can be executed.
|
inline |
Added in QGIS v2.4.