|
QGIS API Documentation
2.8.2-Wien
|
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 |
| const QgsRectangle & | extent () const |
| bool | forceVectorOutput () const |
| QgsLabelingEngineInterface * | labelingEngine () const |
| 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. | |
| void | setDrawEditingInformation (bool b) |
| void | setExtent (const QgsRectangle &extent) |
| void | setForceVectorOutput (bool force) |
| void | setLabelingEngine (QgsLabelingEngineInterface *iface) |
| 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. | |
| void | setUseAdvancedEffects (bool enabled) |
| Used to enable or disable advanced effects such as blend modes. | |
| void | setUseRenderingOptimization (bool enabled) |
| void | setVectorSimplifyMethod (const QgsVectorSimplifyMethod &simplifyMethod) |
| bool | showSelection () const |
| Returns true if vector selections should be shown in the rendered map. | |
| bool | useAdvancedEffects () const |
| Returns true if advanced effects such as blend modes such be used. | |
| bool | useRenderingOptimization () const |
| Returns true if the rendering optimization (geometry simplification) can be executed. | |
| const QgsVectorSimplifyMethod & | vectorSimplifyMethod () const |
| Added in QGIS v2.4. | |
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.
Definition at line 39 of file qgsrendercontext.h.
| QgsRenderContext::QgsRenderContext | ( | ) |
Definition at line 23 of file qgsrendercontext.cpp.
| QgsRenderContext::~QgsRenderContext | ( | ) |
Definition at line 40 of file qgsrendercontext.cpp.
|
inline |
Definition at line 52 of file qgsrendercontext.h.
|
inline |
Definition at line 54 of file qgsrendercontext.h.
|
inline |
Definition at line 73 of file qgsrendercontext.h.
|
inline |
Definition at line 56 of file qgsrendercontext.h.
|
inline |
Definition at line 66 of file qgsrendercontext.h.
|
static |
create initialized QgsRenderContext instance from given QgsMapSettings
Definition at line 44 of file qgsrendercontext.cpp.
|
inline |
Definition at line 77 of file qgsrendercontext.h.
|
inline |
Definition at line 58 of file qgsrendercontext.h.
|
inline |
Definition at line 51 of file qgsrendercontext.h.
|
inline |
Definition at line 62 of file qgsrendercontext.h.
|
inline |
Definition at line 75 of file qgsrendercontext.h.
|
inline |
Definition at line 64 of file qgsrendercontext.h.
|
inline |
Definition at line 60 of file qgsrendercontext.h.
|
inline |
Definition at line 79 of file qgsrendercontext.h.
| void QgsRenderContext::setCoordinateTransform | ( | const QgsCoordinateTransform * | t | ) |
Sets coordinate transformation.
QgsRenderContext does not take ownership
Definition at line 67 of file qgsrendercontext.cpp.
|
inline |
Definition at line 95 of file qgsrendercontext.h.
|
inline |
Definition at line 94 of file qgsrendercontext.h.
|
inline |
Definition at line 101 of file qgsrendercontext.h.
|
inline |
Definition at line 102 of file qgsrendercontext.h.
|
inline |
Definition at line 93 of file qgsrendercontext.h.
|
inline |
Definition at line 100 of file qgsrendercontext.h.
|
inline |
Definition at line 98 of file qgsrendercontext.h.
|
inline |
Definition at line 99 of file qgsrendercontext.h.
|
inline |
Definition at line 96 of file qgsrendercontext.h.
|
inline |
Definition at line 97 of file qgsrendercontext.h.
|
inline |
Definition at line 103 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 111 of file qgsrendercontext.h.
|
inline |
Used to enable or disable advanced effects such as blend modes.
Definition at line 71 of file qgsrendercontext.h.
|
inline |
Definition at line 115 of file qgsrendercontext.h.
|
inline |
Definition at line 119 of file qgsrendercontext.h.
|
inline |
Returns true if vector selections should be shown in the rendered map.
Definition at line 87 of file qgsrendercontext.h.
|
inline |
Returns true if advanced effects such as blend modes such be used.
Definition at line 69 of file qgsrendercontext.h.
|
inline |
Returns true if the rendering optimization (geometry simplification) can be executed.
Definition at line 114 of file qgsrendercontext.h.
|
inline |
Added in QGIS v2.4.
Definition at line 118 of file qgsrendercontext.h.
1.8.1.2