18 #ifndef QGSRENDERCONTEXT_H 19 #define QGSRENDERCONTEXT_H 59 DrawEditingInfo = 0x01,
60 ForceVectorOutput = 0x02,
61 UseAdvancedEffects = 0x04,
62 UseRenderingOptimization = 0x08,
64 DrawSymbolBounds = 0x20,
68 Q_DECLARE_FLAGS( Flags,
Flag )
73 void setFlags(
const QgsRenderContext::Flags& flags );
78 void setFlag(
Flag flag,
bool on =
true );
88 bool testFlag(
Flag flag )
const;
111 bool forceVectorOutput()
const;
115 bool useAdvancedEffects()
const;
119 void setUseAdvancedEffects(
bool enabled );
121 bool drawEditingInformation()
const;
139 bool showSelection()
const;
148 void setDrawEditingInformation(
bool b );
156 void setForceVectorOutput(
bool force );
170 void setShowSelection(
const bool showSelection );
174 bool useRenderingOptimization()
const;
176 void setUseRenderingOptimization(
bool enabled );
238 bool mRenderingStopped;
244 double mRasterScaleFactor;
247 double mRendererScale;
272 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsRenderContext::Flags )
void setRenderingStopped(bool stopped)
A rectangle specified with double values.
double rendererScale() const
const QgsVectorSimplifyMethod & vectorSimplifyMethod() const
Added in QGIS v2.4.
void setRendererScale(double scale)
bool renderingStopped() const
The QgsLabelingEngineV2 class provides map labeling functionality.
Abstract base class for all geometries.
void setVectorSimplifyMethod(const QgsVectorSimplifyMethod &simplifyMethod)
void setExtent(const QgsRectangle &extent)
The QgsMapSettings class contains configuration for rendering of the map.
Perform transforms between map coordinates and device coordinates.
void setSelectionColor(const QColor &color)
void setScaleFactor(double factor)
const QgsRectangle & extent() const
const QPainter * constPainter() const
QgsLabelingEngineInterface * labelingEngine() const
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
const QgsCoordinateTransform * coordinateTransform() const
QColor selectionColor() const
void setPainter(QPainter *p)
Abstract interface for use by classes that filter the features of a layer.
void setLabelingEngineV2(QgsLabelingEngineV2 *engine2)
Assign new labeling engine.
const QgsFeatureFilterProvider * featureFilterProvider() const
Get the filter feature provider used for additional filtering of rendered features.
QgsExpressionContext & expressionContext()
Gets the expression context.
const QgsAbstractGeometryV2 * geometry() const
Returns pointer to the unsegmentized geometry.
QgsLabelingEngineV2 * labelingEngineV2() const
Get access to new labeling engine (may be nullptr)
This class contains information how to simplify geometries fetched from a vector layer.
Contains information about the context of a rendering operation.
const QgsMapToPixel & mapToPixel() const
void setLabelingEngine(QgsLabelingEngineInterface *iface)
void setMapToPixel(const QgsMapToPixel &mtp)
void setRasterScaleFactor(double factor)
Labeling engine interface.
double rasterScaleFactor() const
Flag
Enumeration of flags that affect rendering operations.
double scaleFactor() const
const QgsExpressionContext & expressionContext() const
Gets the expression context (const version).
void setGeometry(const QgsAbstractGeometryV2 *geometry)
Sets pointer to original (unsegmentized) geometry.
void setExpressionContext(const QgsExpressionContext &context)
Sets the expression context.