18 #ifndef QGSRENDERCONTEXT_H 19 #define QGSRENDERCONTEXT_H 60 DrawEditingInfo = 0x01,
61 ForceVectorOutput = 0x02,
62 UseAdvancedEffects = 0x04,
63 UseRenderingOptimization = 0x08,
65 DrawSymbolBounds = 0x20,
68 RenderPartialOutput = 0x100,
70 Q_DECLARE_FLAGS( Flags,
Flag )
75 void setFlags(
const QgsRenderContext::Flags& flags );
80 void setFlag(
Flag flag,
bool on =
true );
90 bool testFlag(
Flag flag )
const;
113 bool forceVectorOutput()
const;
117 bool useAdvancedEffects()
const;
121 void setUseAdvancedEffects(
bool enabled );
123 bool drawEditingInformation()
const;
141 bool showSelection()
const;
150 void setDrawEditingInformation(
bool b );
158 void setForceVectorOutput(
bool force );
172 void setShowSelection(
const bool showSelection );
176 bool useRenderingOptimization()
const;
178 void setUseRenderingOptimization(
bool enabled );
252 bool mRenderingStopped;
258 double mRasterScaleFactor;
261 double mRendererScale;
284 double mSegmentationTolerance;
289 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.
SegmentationToleranceType
Segmentation tolerance as maximum angle or maximum difference between approximation and circle...
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.
void setSegmentationTolerance(double tolerance)
Sets the segmentation tolerance applied when rendering curved geometries.
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.
double segmentationTolerance() const
Gets the segmentation tolerance applied when rendering curved geometries.
const QgsMapToPixel & mapToPixel() const
void setLabelingEngine(QgsLabelingEngineInterface *iface)
QgsAbstractGeometryV2::SegmentationToleranceType segmentationToleranceType() const
Gets segmentation tolerance type (maximum angle or maximum difference between curve and approximation...
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 setSegmentationToleranceType(QgsAbstractGeometryV2::SegmentationToleranceType type)
Sets segmentation tolerance type (maximum angle or maximum difference between curve and approximation...
void setGeometry(const QgsAbstractGeometryV2 *geometry)
Sets pointer to original (unsegmentized) geometry.
void setExpressionContext(const QgsExpressionContext &context)
Sets the expression context.