QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
The QgsQuickMapTransform is transformation that can be attached to any QQuickItem. More...
#include <qgsquickmaptransform.h>
Signals | |
void | mapSettingsChanged () |
Associated map settings. | |
Public Member Functions | |
QgsQuickMapTransform ()=default | |
Creates a new map transform. | |
~QgsQuickMapTransform ()=default | |
void | applyTo (QMatrix4x4 *matrix) const |
Applies transformation based on current map settings to a matrix. | |
QgsQuickMapSettings * | mapSettings () const |
Associated map settings. | |
void | setMapSettings (QgsQuickMapSettings *mapSettings) |
Associated map settings. | |
Properties | |
QgsQuickMapSettings * | mapSettings |
Associated map settings. | |
The QgsQuickMapTransform is transformation that can be attached to any QQuickItem.
If the item is based on the map coordinates, QgsQuickMapTransform will transform it to the device coordinates based on the attached map settings.
Definition at line 36 of file qgsquickmaptransform.h.
|
default |
Creates a new map transform.
|
default |
void QgsQuickMapTransform::applyTo | ( | QMatrix4x4 * | matrix | ) | const |
Applies transformation based on current map settings to a matrix.
Also optimize resulting matrix after transformation
matrix | Matrix to be transformed |
Definition at line 18 of file qgsquickmaptransform.cpp.
QgsQuickMapSettings * QgsQuickMapTransform::mapSettings | ( | ) | const |
Associated map settings.
Should be initialized before the first use from mapcanvas map settings.
Definition at line 24 of file qgsquickmaptransform.cpp.
|
signal |
Associated map settings.
Should be initialized before the first use from mapcanvas map settings.
void QgsQuickMapTransform::setMapSettings | ( | QgsQuickMapSettings * | mapSettings | ) |
Associated map settings.
Should be initialized before the first use from mapcanvas map settings.
Definition at line 29 of file qgsquickmaptransform.cpp.
|
readwrite |
Associated map settings.
Should be initialized before the first use from mapcanvas map settings.
Definition at line 43 of file qgsquickmaptransform.h.