|
| QgsMapSettings () |
|
void | addClippingRegion (const QgsMapClippingRegion ®ion) |
| Adds a new clipping region to the map settings. More...
|
|
void | addRenderedFeatureHandler (QgsRenderedFeatureHandlerInterface *handler) |
| Adds a rendered feature handler to use while rendering the map settings. More...
|
|
QColor | backgroundColor () const |
| Returns the background color of the map. 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 to the map. More...
|
|
QgsRectangle | computeExtentForScale (const QgsPointXY ¢er, double scale) const |
| Compute the extent such that its center is at the specified position (mapped to the destinatonCrs) and the zoom factor corresponds to the specified scale. More...
|
|
double | computeScaleForExtent (const QgsRectangle &extent) const |
| Compute the scale that corresponds to the specified extent. More...
|
|
long long | currentFrame () const |
| Returns the current frame number of the map, for maps which are part of an animation. More...
|
|
Q_DECL_DEPRECATED QString | customRenderFlags () const |
| Returns custom rendering flags. More...
|
|
QVariantMap | customRenderingFlags () const |
| Returns any custom rendering flags. More...
|
|
QgsCoordinateReferenceSystem | destinationCrs () const |
| Returns the destination coordinate reference system for the map render. More...
|
|
QSize | deviceOutputSize () const |
| Returns the device output size of the map render. More...
|
|
float | devicePixelRatio () const |
| Returns the device pixel ratio. More...
|
|
double | dpiTarget () const |
| Returns the target DPI (dots per inch) to be taken into consideration when rendering. More...
|
|
QString | ellipsoid () const |
| Returns ellipsoid's acronym. More...
|
|
const QgsExpressionContext & | expressionContext () const |
| Gets the expression context. More...
|
|
QgsRectangle | extent () const |
| Returns geographical coordinates of the rectangle that should be rendered. More...
|
|
double | extentBuffer () const |
| Returns the buffer in map units to use around the visible extent for rendering symbols whose corresponding geometries are outside the visible extent. More...
|
|
Qgis::MapSettingsFlags | flags () const |
| Returns combination of flags used for rendering. More...
|
|
double | frameRate () const |
| Returns the frame rate of the map (in frames per second), for maps which are part of an animation. More...
|
|
QgsRectangle | fullExtent () const |
| returns current extent of layer set More...
|
|
bool | hasValidSettings () const |
| Check whether the map settings are valid and can be used for rendering. More...
|
|
QList< QgsLabelBlockingRegion > | labelBlockingRegions () const |
| Returns the list of regions to avoid placing labels within. More...
|
|
QgsGeometry | labelBoundaryGeometry () const |
| Returns the label boundary geometry, which restricts where in the rendered map labels are permitted to be placed. More...
|
|
const QgsLabelingEngineSettings & | labelingEngineSettings () const |
| Returns the global configuration of the labeling engine. More...
|
|
QgsRectangle | layerExtentToOutputExtent (const QgsMapLayer *layer, QgsRectangle extent) const |
| transform bounding box from layer's CRS to output CRS More...
|
|
QStringList | layerIds (bool expandGroupLayers=false) const |
| Returns the list of layer IDs which will be rendered in the map. More...
|
|
QList< QgsMapLayer * > | layers (bool expandGroupLayers=false) const |
| Returns the list of layers which will be rendered in the map. More...
|
|
QMap< QString, QString > | layerStyleOverrides () const |
| Returns the map of map layer style overrides (key: layer ID, value: style name) where a different style should be used instead of the current one. More...
|
|
QgsPoint | layerToMapCoordinates (const QgsMapLayer *layer, const QgsPoint &point) const |
| transform point coordinates from layer's CRS to output CRS More...
|
|
QgsPointXY | layerToMapCoordinates (const QgsMapLayer *layer, QgsPointXY point) const |
| transform point coordinates from layer's CRS to output CRS More...
|
|
QgsRectangle | layerToMapCoordinates (const QgsMapLayer *layer, QgsRectangle rect) const |
| transform rectangle from layer's CRS to output CRS More...
|
|
double | layerToMapUnits (const QgsMapLayer *layer, const QgsRectangle &referenceExtent=QgsRectangle()) const |
| Computes an estimated conversion factor between layer and map units: layerUnits * layerToMapUnits = mapUnits. More...
|
|
QgsCoordinateTransform | layerTransform (const QgsMapLayer *layer) const |
| Returns the coordinate transform from layer's CRS to destination CRS. More...
|
|
double | magnificationFactor () const |
| Returns the magnification factor. More...
|
|
QgsPoint | mapToLayerCoordinates (const QgsMapLayer *layer, const QgsPoint &point) const |
| transform point coordinates from output CRS to layer's CRS More...
|
|
QgsPointXY | mapToLayerCoordinates (const QgsMapLayer *layer, QgsPointXY point) const |
| transform point coordinates from output CRS to layer's CRS More...
|
|
QgsRectangle | mapToLayerCoordinates (const QgsMapLayer *layer, QgsRectangle rect) const |
| transform rectangle from output CRS to layer's CRS More...
|
|
const QgsMapToPixel & | mapToPixel () const |
|
QgsUnitTypes::DistanceUnit | mapUnits () const |
| Returns the units of the map's geographical coordinates - used for scale calculation. More...
|
|
double | mapUnitsPerPixel () const |
| Returns the distance in geographical coordinates that equals to one pixel in the map. More...
|
|
double | outputDpi () const |
| Returns the DPI (dots per inch) used for conversion between real world units (e.g. More...
|
|
QgsRectangle | outputExtentToLayerExtent (const QgsMapLayer *layer, QgsRectangle extent) const |
| transform bounding box from output CRS to layer's CRS More...
|
|
QImage::Format | outputImageFormat () const |
| format of internal QImage, default QImage::Format_ARGB32_Premultiplied More...
|
|
QSize | outputSize () const |
| Returns the size of the resulting map image, in pixels. More...
|
|
const QgsPathResolver & | pathResolver () const |
| Returns the path resolver for conversion between relative and absolute paths during rendering operations, e.g. More...
|
|
void | readXml (QDomNode &node) |
|
QList< QgsRenderedFeatureHandlerInterface * > | renderedFeatureHandlers () const |
| Returns the list of rendered feature handlers to use while rendering the map settings. More...
|
|
Qgis::RendererUsage | rendererUsage () const |
| Returns the rendering usage. More...
|
|
double | rotation () const |
| Returns the rotation of the resulting map image, in degrees clockwise. More...
|
|
double | scale () const |
| Returns the calculated map scale. 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 that is used for drawing of selected vector features. More...
|
|
void | setBackgroundColor (const QColor &color) |
| Sets the background color of the map. More...
|
|
void | setClippingRegions (const QList< QgsMapClippingRegion > ®ions) |
| Sets the list of clipping regions to apply to the map. More...
|
|
void | setCurrentFrame (long long frame) |
| Sets the current frame of the map, for maps which are part of an animation. More...
|
|
Q_DECL_DEPRECATED void | setCustomRenderFlags (const QString &customRenderFlags) |
| Sets the custom rendering flags. More...
|
|
void | setCustomRenderingFlag (const QString &flag, const QVariant &value) |
| Sets a custom rendering flag. More...
|
|
void | setDestinationCrs (const QgsCoordinateReferenceSystem &crs) |
| Sets the destination crs (coordinate reference system) for the map render. More...
|
|
void | setDevicePixelRatio (float dpr) |
| Sets the device pixel ratio. More...
|
|
void | setDpiTarget (double dpi) |
| Sets the target dpi (dots per inch) to be taken into consideration when rendering. More...
|
|
bool | setEllipsoid (const QString &ellipsoid) |
| Sets the ellipsoid by its acronym. More...
|
|
void | setExpressionContext (const QgsExpressionContext &context) |
| Sets the expression context. More...
|
|
void | setExtent (const QgsRectangle &rect, bool magnified=true) |
| Sets the coordinates of the rectangle which should be rendered. More...
|
|
void | setExtentBuffer (double buffer) |
| Sets the buffer in map units to use around the visible extent for rendering symbols whose corresponding geometries are outside the visible extent. More...
|
|
void | setFlag (Qgis::MapSettingsFlag flag, bool on=true) |
| Enable or disable a particular flag (other flags are not affected) More...
|
|
void | setFlags (Qgis::MapSettingsFlags flags) |
| Sets combination of flags that will be used for rendering. 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 | setLabelBlockingRegions (const QList< QgsLabelBlockingRegion > ®ions) |
| Sets a list of regions to avoid placing labels within. More...
|
|
void | setLabelBoundaryGeometry (const QgsGeometry &boundary) |
| Sets the label boundary geometry, which restricts where in the rendered map labels are permitted to be placed. More...
|
|
void | setLabelingEngineSettings (const QgsLabelingEngineSettings &settings) |
| Sets the global configuration of the labeling engine. More...
|
|
void | setLayers (const QList< QgsMapLayer * > &layers) |
| Sets the list of layers to render in the map. More...
|
|
void | setLayerStyleOverrides (const QMap< QString, QString > &overrides) |
| Sets the map of map layer style overrides (key: layer ID, value: style name) where a different style should be used instead of the current one. More...
|
|
void | setMagnificationFactor (double factor, const QgsPointXY *center=nullptr) |
| Set the magnification factor. More...
|
|
void | setOutputDpi (double dpi) |
| Sets the dpi (dots per inch) used for conversion between real world units (e.g. More...
|
|
void | setOutputImageFormat (QImage::Format format) |
| sets format of internal QImage More...
|
|
void | setOutputSize (QSize size) |
| Sets the size of the resulting map image, in pixels. More...
|
|
void | setPathResolver (const QgsPathResolver &resolver) |
| Sets the path resolver for conversion between relative and absolute paths during rendering operations, e.g. More...
|
|
void | setRendererUsage (Qgis::RendererUsage rendererUsage) |
| Sets the rendering usage. More...
|
|
void | setRotation (double rotation) |
| Sets the rotation of the resulting map image, in degrees clockwise. 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 that is used for drawing of selected vector features. More...
|
|
void | setSimplifyMethod (const QgsVectorSimplifyMethod &method) |
| Sets the simplification setting to use when rendering vector layers. More...
|
|
void | setTextRenderFormat (Qgis::TextRenderFormat format) |
| Sets the text render format, which dictates how text is rendered (e.g. More...
|
|
void | setTransformContext (const QgsCoordinateTransformContext &context) |
| Sets the 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 | setZRange (const QgsDoubleRange &range) |
| Sets the range of z-values which will be visible in the map. More...
|
|
const QgsVectorSimplifyMethod & | simplifyMethod () const |
| Returns the simplification settings to use when rendering vector layers. More...
|
|
bool | testFlag (Qgis::MapSettingsFlag 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...
|
|
QgsCoordinateTransformContext | transformContext () const |
| Returns the 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...
|
|
QgsRectangle | visibleExtent () const |
| Returns the actual extent derived from requested extent that takes output image size into account. More...
|
|
QPolygonF | visiblePolygon () const |
| Returns the visible area as a polygon (may be rotated) More...
|
|
QPolygonF | visiblePolygonWithBuffer () const |
| Returns the visible area as a polygon (may be rotated) with extent buffer included. More...
|
|
void | writeXml (QDomNode &node, QDomDocument &doc) |
|
QgsDoubleRange | zRange () const |
| Returns the range of z-values which will be visible in the map. 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...
|
|