|
QGIS API Documentation
2.12.0-Lyon
|
Contains information about the context of a rendering operation. More...
#include <qgsrendercontext.h>
Public Member Functions | |
| QgsRenderContext () | |
| ~QgsRenderContext () | |
| const QPainter * | constPainter () const |
| const QgsCoordinateTransform * | coordinateTransform () const |
| bool | drawEditingInformation () const |
| QgsExpressionContext & | expressionContext () |
| Gets the expression context. More... | |
| const QgsExpressionContext & | expressionContext () const |
| Gets the expression context (const version). More... | |
| const QgsRectangle & | extent () const |
| bool | forceVectorOutput () const |
| const QgsAbstractGeometryV2 * | geometry () const |
| Returns pointer to the unsegmentized geometry. More... | |
| QgsLabelingEngineInterface * | labelingEngine () const |
| QgsLabelingEngineV2 * | labelingEngineV2 () const |
| Get access to new labeling engine (may be NULL) More... | |
| const QgsMapToPixel & | mapToPixel () const |
| QPainter * | painter () |
| double | rasterScaleFactor () const |
| double | rendererScale () const |
| bool | renderingStopped () const |
| double | scaleFactor () const |
| QColor | selectionColor () const |
| void | setCoordinateTransform (const QgsCoordinateTransform *t) |
| Sets coordinate transformation. More... | |
| void | setDrawEditingInformation (bool b) |
| void | setExpressionContext (const QgsExpressionContext &context) |
| Sets the expression context. More... | |
| void | setExtent (const QgsRectangle &extent) |
| void | setForceVectorOutput (bool force) |
| void | setGeometry (const QgsAbstractGeometryV2 *geometry) |
| Sets pointer to original (unsegmentized) geometry. More... | |
| void | setLabelingEngine (QgsLabelingEngineInterface *iface) |
| void | setLabelingEngineV2 (QgsLabelingEngineV2 *engine2) |
| Assign new labeling engine. More... | |
| void | setMapToPixel (const QgsMapToPixel &mtp) |
| void | setPainter (QPainter *p) |
| void | setRasterScaleFactor (double factor) |
| void | setRendererScale (double scale) |
| void | setRenderingStopped (bool stopped) |
| void | setScaleFactor (double factor) |
| void | setSelectionColor (const QColor &color) |
| void | setShowSelection (const bool showSelection) |
| Sets whether vector selections should be shown in the rendered map. More... | |
| void | setUseAdvancedEffects (bool enabled) |
| Used to enable or disable advanced effects such as blend modes. More... | |
| void | setUseRenderingOptimization (bool enabled) |
| void | setVectorSimplifyMethod (const QgsVectorSimplifyMethod &simplifyMethod) |
| bool | showSelection () const |
| Returns true if vector selections should be shown in the rendered map. More... | |
| bool | useAdvancedEffects () const |
| Returns true if advanced effects such as blend modes such be used. More... | |
| bool | useRenderingOptimization () const |
| Returns true if the rendering optimization (geometry simplification) can be executed. More... | |
| const QgsVectorSimplifyMethod & | vectorSimplifyMethod () const |
| Added in QGIS v2.4. More... | |
Static Public Member Functions | |
| static QgsRenderContext | fromMapSettings (const QgsMapSettings &mapSettings) |
| create initialized QgsRenderContext instance from given QgsMapSettings More... | |
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.
Definition at line 42 of file qgsrendercontext.h.
| QgsRenderContext::QgsRenderContext | ( | ) |
Definition at line 23 of file qgsrendercontext.cpp.
| QgsRenderContext::~QgsRenderContext | ( | ) |
Definition at line 42 of file qgsrendercontext.cpp.
|
inline |
Definition at line 55 of file qgsrendercontext.h.
|
inline |
Definition at line 57 of file qgsrendercontext.h.
|
inline |
Definition at line 76 of file qgsrendercontext.h.
|
inline |
Gets the expression context.
This context should be used for all expression evaluation associated with this render context.
Definition at line 141 of file qgsrendercontext.h.
|
inline |
Gets the expression context (const version).
This context should be used for all expression evaluation associated with this render context.
Definition at line 148 of file qgsrendercontext.h.
|
inline |
Definition at line 59 of file qgsrendercontext.h.
|
inline |
Definition at line 69 of file qgsrendercontext.h.
|
static |
create initialized QgsRenderContext instance from given QgsMapSettings
Definition at line 46 of file qgsrendercontext.cpp.
|
inline |
Returns pointer to the unsegmentized geometry.
Definition at line 151 of file qgsrendercontext.h.
|
inline |
Definition at line 80 of file qgsrendercontext.h.
|
inline |
Get access to new labeling engine (may be NULL)
Definition at line 83 of file qgsrendercontext.h.
|
inline |
Definition at line 61 of file qgsrendercontext.h.
|
inline |
Definition at line 54 of file qgsrendercontext.h.
|
inline |
Definition at line 65 of file qgsrendercontext.h.
|
inline |
Definition at line 78 of file qgsrendercontext.h.
|
inline |
Definition at line 67 of file qgsrendercontext.h.
|
inline |
Definition at line 63 of file qgsrendercontext.h.
|
inline |
Definition at line 85 of file qgsrendercontext.h.
| void QgsRenderContext::setCoordinateTransform | ( | const QgsCoordinateTransform * | t | ) |
Sets coordinate transformation.
QgsRenderContext does not take ownership
Definition at line 70 of file qgsrendercontext.cpp.
|
inline |
Definition at line 101 of file qgsrendercontext.h.
|
inline |
Sets the expression context.
This context is used for all expression evaluation associated with this render context.
Definition at line 134 of file qgsrendercontext.h.
|
inline |
Definition at line 100 of file qgsrendercontext.h.
|
inline |
Definition at line 107 of file qgsrendercontext.h.
|
inline |
Sets pointer to original (unsegmentized) geometry.
Definition at line 153 of file qgsrendercontext.h.
|
inline |
Definition at line 108 of file qgsrendercontext.h.
|
inline |
Assign new labeling engine.
Definition at line 110 of file qgsrendercontext.h.
|
inline |
Definition at line 99 of file qgsrendercontext.h.
|
inline |
Definition at line 106 of file qgsrendercontext.h.
|
inline |
Definition at line 104 of file qgsrendercontext.h.
|
inline |
Definition at line 105 of file qgsrendercontext.h.
|
inline |
Definition at line 102 of file qgsrendercontext.h.
|
inline |
Definition at line 103 of file qgsrendercontext.h.
|
inline |
Definition at line 111 of file qgsrendercontext.h.
|
inline |
Sets whether vector selections should be shown in the rendered map.
| showSelection | set to true if selections should be shown |
Definition at line 119 of file qgsrendercontext.h.
|
inline |
Used to enable or disable advanced effects such as blend modes.
Definition at line 74 of file qgsrendercontext.h.
|
inline |
Definition at line 123 of file qgsrendercontext.h.
|
inline |
Definition at line 127 of file qgsrendercontext.h.
|
inline |
Returns true if vector selections should be shown in the rendered map.
Definition at line 93 of file qgsrendercontext.h.
|
inline |
Returns true if advanced effects such as blend modes such be used.
Definition at line 72 of file qgsrendercontext.h.
|
inline |
Returns true if the rendering optimization (geometry simplification) can be executed.
Definition at line 122 of file qgsrendercontext.h.
|
inline |
Added in QGIS v2.4.
Definition at line 126 of file qgsrendercontext.h.
1.8.9.1