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( QSize outputSize READ outputSize WRITE setOutputSize NOTIFY outputSizeChanged )
91 Q_PROPERTY(
double outputDpi READ outputDpi WRITE setOutputDpi NOTIFY outputDpiChanged )
108 Q_PROPERTY( QList<
QgsMapLayer *> layers READ layers WRITE setLayers NOTIFY layersChanged )
131 Q_INVOKABLE
void setCenter( const
QgsPoint ¢er );
134 double mapUnitsPerPixel() const;
149 Q_INVOKABLE QPointF coordinateToScreen( const
QgsPoint &point ) const;
159 Q_INVOKABLE
QgsPoint screenToCoordinate( const QPointF &point ) const;
165 double rotation() const;
168 void setRotation(
double rotation );
171 QSize outputSize() const;
174 void setOutputSize( const QSize &outputSize );
177 double outputDpi() const;
180 void setOutputDpi(
double outputDpi );
192 void setLayers( const QList<
QgsMapLayer *> &layers );
196 void projectChanged();
199 void extentChanged();
202 void destinationCrsChanged();
205 void mapUnitsPerPixelChanged();
208 void rotationChanged();
211 void visibleExtentChanged();
214 void outputSizeChanged();
217 void outputDpiChanged();
220 void layersChanged();
229 void onReadProject( const QDomDocument &doc );
237 #endif // QGSQUICKMAPSETTINGS_H A rectangle specified with double values.
Base class for all map layer types.
The QgsQuickMapSettings class encapsulates QgsMapSettings class to offer settings of configuration of...
The QgsMapSettings class contains configuration for rendering of the map.
Reads and writes project states.
Contains information about the context in which a coordinate transform is executed.
Point geometry type, with support for z-dimension and m-values.
This class represents a coordinate reference system (CRS).