QgsQuickMapTransform class

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 coordintes based on the attached map settings.

Constructors, destructors, conversion operators

QgsQuickMapTransform() defaulted
Creates a new map transform.

Public functions

void applyTo(QMatrix4x4* matrix) const
Applies transformation based on current map settings to a matrix.
auto mapSettings() const -> QgsQuickMapSettings*
Associated map settings.
void setMapSettings(QgsQuickMapSettings* mapSettings)
Associated map settings.

Signals

void mapSettingsChanged()
Associated map settings.

Function documentation

void QgsQuickMapTransform::applyTo(QMatrix4x4* matrix) const

Applies transformation based on current map settings to a matrix.

Parameters
matrix Matrix to be transformed

Also optimize resulting matrix after transformation

QgsQuickMapSettings* QgsQuickMapTransform::mapSettings() const

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.

void QgsQuickMapTransform::mapSettingsChanged() signal

Associated map settings.

Should be initialized before the first use from mapcanvas map settings.