18 #ifndef QGSRENDERCONTEXT_H
19 #define QGSRENDERCONTEXT_H
void setForceVectorOutput(bool force)
Added in QGIS v1.5.
QPainter * mPainter
Painter for rendering operations.
void setRenderingStopped(bool stopped)
A rectangle specified with double values.
bool mDrawEditingInformation
True if vertex markers for editing should be drawn.
QgsLabelingEngineInterface * mLabelingEngine
Labeling engine (can be NULL)
QColor selectionColor() const
Added in QGIS v2.0.
const QgsVectorSimplifyMethod & vectorSimplifyMethod() const
Added in QGIS v2.4.
double rendererScale() const
void setRendererScale(double scale)
void setVectorSimplifyMethod(const QgsVectorSimplifyMethod &simplifyMethod)
const QgsRectangle & extent() const
bool showSelection() const
Returns true if vector selections should be shown in the rendered map.
bool mUseRenderingOptimization
True if the rendering optimization (geometry simplification) can be executed.
double scaleFactor() const
const QgsCoordinateTransform * coordinateTransform() const
const QPainter * constPainter() const
void setExtent(const QgsRectangle &extent)
QgsVectorSimplifyMethod mVectorSimplifyMethod
Simplification object which holds the information about how to simplify the features for fast renderi...
The QgsMapSettings class contains configuration for rendering of the map.
bool useAdvancedEffects() const
Returns true if advanced effects such as blend modes such be used.
double mRendererScale
Map scale.
Perform transforms between map coordinates and device coordinates.
void setSelectionColor(const QColor &color)
Added in QGIS v2.0.
void setUseAdvancedEffects(bool enabled)
Used to enable or disable advanced effects such as blend modes.
void setScaleFactor(double factor)
bool renderingStopped() const
void setDrawEditingInformation(bool b)
bool mUseAdvancedEffects
Flag if advanced visual effects such as blend modes should be used.
bool mShowSelection
Whether selection should be shown.
bool forceVectorOutput() const
void setPainter(QPainter *p)
double rasterScaleFactor() const
bool useRenderingOptimization() const
Returns true if the rendering optimization (geometry simplification) can be executed.
double mScaleFactor
Factor to scale line widths and point marker sizes.
bool drawEditingInformation() const
const QgsCoordinateTransform * mCoordTransform
For transformation between coordinate systems.
QgsMapToPixel mMapToPixel
This class contains information how to simplify geometries fetched from a vector layer.
Contains information about the context of a rendering operation.
bool mRenderingStopped
True if the rendering has been canceled.
void setLabelingEngine(QgsLabelingEngineInterface *iface)
Added in QGIS v1.4.
void setMapToPixel(const QgsMapToPixel &mtp)
void setUseRenderingOptimization(bool enabled)
const QgsMapToPixel & mapToPixel() const
double mRasterScaleFactor
Factor to scale rasters.
void setRasterScaleFactor(double factor)
QColor mSelectionColor
Color used for features that are marked as selected.
Labeling engine interface.
void setShowSelection(const bool showSelection)
Sets whether vector selections should be shown in the rendered map.
QgsLabelingEngineInterface * labelingEngine() const
Added in QGIS v1.4.
bool mForceVectorOutput
If true then no rendered vector elements should be cached as image.