|
| QgsRenderContext () |
|
| QgsRenderContext (const QgsRenderContext &rh) |
|
| ~QgsRenderContext () override |
|
void | addSymbolLayerClipPath (const QgsSymbolLayer *symbolLayer, QPainterPath path) |
| Add a clip path to be applied to the symbolLayer before rendering. More...
|
|
void | clearCustomRenderingFlag (const QString &flag) |
| Clears the specified custom rendering flag. More...
|
|
QList< QgsMapClippingRegion > | clippingRegions () const |
| Returns the list of clipping regions to apply during the render. More...
|
|
double | convertFromMapUnits (double sizeInMapUnits, QgsUnitTypes::RenderUnit outputUnit) const |
| Converts a size from map units to the specified units. More...
|
|
double | convertMetersToMapUnits (double meters) const |
| Convert meter distances to active MapUnit values for QgsUnitTypes::RenderMetersInMapUnits. More...
|
|
double | convertToMapUnits (double size, QgsUnitTypes::RenderUnit unit, const QgsMapUnitScale &scale=QgsMapUnitScale()) const |
| Converts a size from the specified units to map units. More...
|
|
double | convertToPainterUnits (double size, QgsUnitTypes::RenderUnit unit, const QgsMapUnitScale &scale=QgsMapUnitScale(), Qgis::RenderSubcomponentProperty property=Qgis::RenderSubcomponentProperty::Generic) const |
| Converts a size from the specified units to painter units (pixels). More...
|
|
QgsCoordinateTransform | coordinateTransform () const |
| Returns the current coordinate transform for the context. More...
|
|
long long | currentFrame () const |
| Returns the current frame number of the map (in frames per second), for maps which are part of an animation. More...
|
|
int | currentMaskId () const |
| Returns the current mask id, which can be used with maskPainter() More...
|
|
QVariantMap | customRenderingFlags () const |
| Gets custom rendering flags. More...
|
|
QSize | deviceOutputSize () const |
| Returns the device output size of the render. More...
|
|
float | devicePixelRatio () const |
| Returns the device pixel ratio. More...
|
|
QSet< const QgsSymbolLayer * > | disabledSymbolLayers () const |
| When rendering a map layer in a second pass (for selective masking), some symbol layers may be disabled. More...
|
|
const QgsDistanceArea & | distanceArea () const |
| A general purpose distance and area calculator, capable of performing ellipsoid based calculations. More...
|
|
double | dpiTarget () const |
| Returns the targeted DPI for rendering. More...
|
|
bool | drawEditingInformation () const |
| Returns true if edit markers should be drawn during the render operation. More...
|
|
QgsExpressionContext & | expressionContext () |
| Gets the expression context. More...
|
|
const QgsExpressionContext & | expressionContext () const |
| Gets the expression context (const version). More...
|
|
const QgsRectangle & | extent () const |
| When rendering a map layer, calling this method returns the "clipping" extent for the layer (in the layer's CRS). More...
|
|
QgsGeometry | featureClipGeometry () const |
| Returns the geometry to use to clip features at render time. More...
|
|
const QgsFeatureFilterProvider * | featureFilterProvider () const |
| Gets the filter feature provider used for additional filtering of rendered features. More...
|
|
QgsFeedback * | feedback () const |
| Returns the feedback object that can be queried regularly during rendering to check if rendering should be canceled, if set. More...
|
|
Qgis::RenderContextFlags | flags () const |
| Returns combination of flags used for rendering. More...
|
|
bool | forceVectorOutput () const |
| Returns true if rendering operations should use vector operations instead of any faster raster shortcuts. More...
|
|
double | frameRate () const |
| Returns the frame rate of the map, for maps which are part of an animation. More...
|
|
const QgsAbstractGeometry * | geometry () const |
| Returns pointer to the unsegmentized geometry. More...
|
|
bool | hasRenderedFeatureHandlers () const |
| Returns true if the context has any rendered feature handlers. More...
|
|
QImage::Format | imageFormat () const |
| Returns the QImage format which should be used for QImages created during rendering. More...
|
|
bool | isGuiPreview () const |
| Returns the Gui preview mode. More...
|
|
bool | isSymbolLayerEnabled (const QgsSymbolLayer *layer) const |
| When rendering a map layer in a second pass (for selective masking), some symbol layers may be disabled. More...
|
|
QgsLabelingEngine * | labelingEngine () const |
| Gets access to new labeling engine (may be nullptr ). More...
|
|
QgsLabelSink * | labelSink () const |
| Returns the associated label sink, or nullptr if not set. More...
|
|
QgsRectangle | mapExtent () const |
| Returns the original extent of the map being rendered. More...
|
|
const QgsMapToPixel & | mapToPixel () const |
| Returns the context's map to pixel transform, which transforms between map coordinates and device coordinates. More...
|
|
const QgsMaskIdProvider * | maskIdProvider () const |
| Returns the mask id provider attached to the context. More...
|
|
QPainter * | maskPainter (int id=0) |
| Returns a mask QPainter for the render operation. More...
|
|
QgsRenderContext & | operator= (const QgsRenderContext &rh) |
|
QSize | outputSize () const |
| Returns the size of the resulting rendered image, in pixels. More...
|
|
QPainter * | painter () |
| Returns the destination QPainter for the render operation. More...
|
|
const QPainter * | painter () const |
| Returns the const destination QPainter for the render operation. More...
|
|
const QgsPathResolver & | pathResolver () const |
| Returns the path resolver for conversion between relative and absolute paths during rendering operations, e.g. More...
|
|
QList< QgsRenderedFeatureHandlerInterface * > | renderedFeatureHandlers () const |
| Returns the list of rendered feature handlers to use while rendering map layers. More...
|
|
double | rendererScale () const |
| Returns the renderer map scale. More...
|
|
Qgis::RendererUsage | rendererUsage () const |
| Returns the renderer usage. More...
|
|
bool | renderingStopped () const |
| Returns true if the rendering operation has been stopped and any ongoing rendering should be canceled immediately. More...
|
|
double | scaleFactor () const |
| Returns the scaling factor for the render to convert painter units to physical sizes. More...
|
|
double | segmentationTolerance () const |
| Gets the segmentation tolerance applied when rendering curved geometries. More...
|
|
QgsAbstractGeometry::SegmentationToleranceType | segmentationToleranceType () const |
| Gets segmentation tolerance type (maximum angle or maximum difference between curve and approximation) More...
|
|
QColor | selectionColor () const |
| Returns the color to use when rendering selected features. More...
|
|
void | setCoordinateTransform (const QgsCoordinateTransform &t) |
| Sets the current coordinate transform for the context. More...
|
|
void | setCurrentFrame (long long frame) |
| Sets the current frame of the map, for maps which are part of an animation. More...
|
|
void | setCurrentMaskId (int id) |
| Stores a mask id as the "current" one. More...
|
|
void | setCustomRenderingFlag (const QString &flag, const QVariant &value) |
| Sets a custom rendering flag. More...
|
|
void | setDevicePixelRatio (float ratio) |
| Sets the device pixel ratio. More...
|
|
void | setDisabledSymbolLayers (const QSet< const QgsSymbolLayer * > &symbolLayers) |
| When rendering a map layer in a second pass (for selective masking), some symbol layers may be disabled. More...
|
|
void | setDistanceArea (const QgsDistanceArea &distanceArea) |
| A general purpose distance and area calculator, capable of performing ellipsoid based calculations. More...
|
|
void | setDpiTarget (double dpi) |
| Sets the targeted dpi for rendering. More...
|
|
void | setDrawEditingInformation (bool b) |
| Sets whether edit markers should be drawn during the render operation. More...
|
|
void | setExpressionContext (const QgsExpressionContext &context) |
| Sets the expression context. More...
|
|
void | setExtent (const QgsRectangle &extent) |
| When rendering a map layer, calling this method sets the "clipping" extent for the layer (in the layer's CRS). More...
|
|
void | setFeatureClipGeometry (const QgsGeometry &geometry) |
| Sets a geometry to use to clip features at render time. More...
|
|
void | setFeatureFilterProvider (const QgsFeatureFilterProvider *ffp) |
| Set a filter feature provider used for additional filtering of rendered features. More...
|
|
void | setFeedback (QgsFeedback *feedback) |
| Attach a feedback object that can be queried regularly during rendering to check if rendering should be canceled. More...
|
|
void | setFlag (Qgis::RenderContextFlag flag, bool on=true) |
| Enable or disable a particular flag (other flags are not affected) More...
|
|
void | setFlags (Qgis::RenderContextFlags flags) |
| Set combination of flags that will be used for rendering. More...
|
|
void | setForceVectorOutput (bool force) |
| Sets whether rendering operations should use vector operations instead of any faster raster shortcuts. More...
|
|
void | setFrameRate (double rate) |
| Sets the frame rate of the map (in frames per second), for maps which are part of an animation. More...
|
|
void | setGeometry (const QgsAbstractGeometry *geometry) |
| Sets pointer to original (unsegmentized) geometry. More...
|
|
void | setImageFormat (QImage::Format format) |
| Sets QImage format which should be used for QImages created during rendering. More...
|
|
void | setIsGuiPreview (bool preview) |
| Sets GUI preview mode. More...
|
|
void | setLabelingEngine (QgsLabelingEngine *engine) |
| Assigns the labeling engine. More...
|
|
void | setLabelSink (QgsLabelSink *sink) |
| Assigns the label sink which will take over responsibility for handling labels. More...
|
|
void | setMapExtent (const QgsRectangle &extent) |
| Sets the original extent of the map being rendered. More...
|
|
void | setMapToPixel (const QgsMapToPixel &mtp) |
| Sets the context's map to pixel transform, which transforms between map coordinates and device coordinates. More...
|
|
void | setMaskIdProvider (QgsMaskIdProvider *provider) |
| Attaches a mask id provider to the context. More...
|
|
void | setMaskPainter (QPainter *p, int id=0) |
| Sets a mask QPainter for the render operation. More...
|
|
void | setOutputSize (QSize size) |
| Sets the size of the resulting rendered image, in pixels. More...
|
|
void | setPainter (QPainter *p) |
| Sets the destination QPainter for the render operation. More...
|
|
void | setPainterFlagsUsingContext (QPainter *painter=nullptr) const |
| Sets relevant flags on a destination painter, using the flags and settings currently defined for the render context. More...
|
|
void | setPathResolver (const QgsPathResolver &resolver) |
| Sets the path resolver for conversion between relative and absolute paths during rendering operations, e.g. More...
|
|
void | setRendererScale (double scale) |
| Sets the renderer map scale. More...
|
|
void | setRendererUsage (Qgis::RendererUsage usage) |
| Sets the renderer usage. More...
|
|
void | setRenderingStopped (bool stopped) |
| Sets whether the rendering operation has been stopped and any ongoing rendering should be canceled immediately. More...
|
|
void | setScaleFactor (double factor) |
| Sets the scaling factor for the render to convert painter units to physical sizes. More...
|
|
void | setSegmentationTolerance (double tolerance) |
| Sets the segmentation tolerance applied when rendering curved geometries. More...
|
|
void | setSegmentationToleranceType (QgsAbstractGeometry::SegmentationToleranceType type) |
| Sets segmentation tolerance type (maximum angle or maximum difference between curve and approximation) More...
|
|
void | setSelectionColor (const QColor &color) |
| Sets the color to use when rendering selected features. More...
|
|
void | setShowSelection (bool showSelection) |
| Sets whether vector selections should be shown in the rendered map. More...
|
|
void | setSymbologyReferenceScale (double scale) |
| Sets the symbology reference scale. More...
|
|
void | setTextRenderFormat (Qgis::TextRenderFormat format) |
| Sets the text render format, which dictates how text is rendered (e.g. More...
|
|
void | setTextureOrigin (const QPointF &origin) |
| Sets the texture origin, which should be used as a brush transform when rendering using QBrush objects. More...
|
|
void | setTransformContext (const QgsCoordinateTransformContext &context) |
| Sets the context's coordinate transform context, which stores various information regarding which datum transforms should be used when transforming points from a source to destination coordinate reference system. More...
|
|
void | setUseAdvancedEffects (bool enabled) |
| Used to enable or disable advanced effects such as blend modes. More...
|
|
void | setUseRenderingOptimization (bool enabled) |
| Sets whether the rendering optimization (geometry simplification) should be executed. More...
|
|
void | setVectorSimplifyMethod (const QgsVectorSimplifyMethod &simplifyMethod) |
| Sets the simplification setting to use when rendering vector layers. More...
|
|
void | setZRange (const QgsDoubleRange &range) |
| Sets the range of z-values which should be rendered. More...
|
|
bool | showSelection () const |
| Returns true if vector selections should be shown in the rendered map. More...
|
|
QList< QPainterPath > | symbolLayerClipPaths (const QgsSymbolLayer *symbolLayer) const |
| Returns clip paths to be applied to the symbolLayer before rendering. More...
|
|
double | symbologyReferenceScale () const |
| Returns the symbology reference scale. More...
|
|
bool | testFlag (Qgis::RenderContextFlag flag) const |
| Check whether a particular flag is enabled. More...
|
|
Qgis::TextRenderFormat | textRenderFormat () const |
| Returns the text render format, which dictates how text is rendered (e.g. More...
|
|
QPointF | textureOrigin () const |
| Returns the texture origin, which should be used as a brush transform when rendering using QBrush objects. More...
|
|
QgsCoordinateTransformContext | transformContext () const |
| Returns the context's coordinate transform context, which stores various information regarding which datum transforms should be used when transforming points from a source to destination coordinate reference system. 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 |
| Returns the simplification settings to use when rendering vector layers. More...
|
|
QgsDoubleRange | zRange () const |
| Returns the range of z-values which should be rendered. More...
|
|
| QgsTemporalRangeObject (bool enabled=false) |
| Constructor QgsTemporalRangeObject. More...
|
|
virtual | ~QgsTemporalRangeObject ()=default |
|
bool | isTemporal () const |
| Returns true if the object's temporal range is enabled, and the object will be filtered when rendering maps with a specific time range set. More...
|
|
void | setIsTemporal (bool enabled) |
| Sets whether the temporal range is enabled (i.e. More...
|
|
void | setTemporalRange (const QgsDateTimeRange &range) |
| Sets the temporal range for the object. More...
|
|
const QgsDateTimeRange & | temporalRange () const |
| Returns the datetime range for the object. More...
|
|