QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSQUICKMAPSETTINGS_H
17 #define QGSQUICKMAPSETTINGS_H
27 #include "qgis_quick.h"
57 Q_PROPERTY(
QgsProject *project READ project WRITE setProject NOTIFY projectChanged )
67 Q_PROPERTY(
QgsRectangle extent READ extent WRITE setExtent NOTIFY extentChanged )
69 Q_PROPERTY(
QgsRectangle visibleExtent READ visibleExtent NOTIFY visibleExtentChanged )
71 Q_PROPERTY(
double mapUnitsPerPixel READ mapUnitsPerPixel NOTIFY mapUnitsPerPixelChanged )
77 Q_PROPERTY(
double rotation READ rotation WRITE setRotation NOTIFY rotationChanged )
84 Q_PROPERTY( QColor backgroundColor READ backgroundColor WRITE setBackgroundColor NOTIFY backgroundColorChanged )
91 Q_PROPERTY( QSize outputSize READ outputSize WRITE setOutputSize NOTIFY outputSizeChanged )
98 Q_PROPERTY(
double outputDpi READ outputDpi WRITE setOutputDpi NOTIFY outputDpiChanged )
115 Q_PROPERTY( QList<QgsMapLayer *> layers READ layers WRITE setLayers NOTIFY layersChanged )
138 Q_INVOKABLE
void setCenter(
const QgsPoint ¢er );
141 double mapUnitsPerPixel()
const;
156 Q_INVOKABLE QPointF coordinateToScreen(
const QgsPoint &point )
const;
166 Q_INVOKABLE
QgsPoint screenToCoordinate(
const QPointF &point )
const;
172 double rotation()
const;
175 void setRotation(
double rotation );
178 QColor backgroundColor()
const;
181 void setBackgroundColor(
const QColor &color );
184 QSize outputSize()
const;
187 void setOutputSize(
const QSize &outputSize );
190 double outputDpi()
const;
193 void setOutputDpi(
double outputDpi );
202 QList<QgsMapLayer *> layers()
const;
205 void setLayers(
const QList<QgsMapLayer *> &layers );
245 void onReadProject(
const QDomDocument &doc );
253 #endif // QGSQUICKMAPSETTINGS_H
Contains information about the context in which a coordinate transform is executed.
void extentChanged()
Geographical coordinates of the rectangle that should be rendered.
void destinationCrsChanged()
CRS of destination coordinate reference system.
Point geometry type, with support for z-dimension and m-values.
void projectChanged()
A project property should be used as a primary source of project all other components in the applicat...
void layersChanged()
Set list of layers for map rendering.
A rectangle specified with double values.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
The QgsQuickMapSettings class encapsulates QgsMapSettings class to offer settings of configuration of...
~QgsQuickMapSettings()=default
void outputDpiChanged()
Output DPI used for conversion between real world units (e.g.
void mapUnitsPerPixelChanged()
Returns the distance in geographical coordinates that equals to one pixel in the map.
void rotationChanged()
The rotation of the resulting map image, in degrees clockwise.
This class represents a coordinate reference system (CRS).
void outputSizeChanged()
The size of the resulting map image.
void backgroundColorChanged()
The background color used to render the map.
The QgsMapSettings class contains configuration for rendering of the map.
void visibleExtentChanged()
Returns the actual extent derived from requested extent that takes takes output image size into accou...
void setTransformContext(const QgsCoordinateTransformContext &context)
Sets the coordinate transform context, which stores various information regarding which datum transfo...