Skip to content

Class QgsQuickMapTransform

ClassList > QgsQuickMapTransform

More...

  • #include <qgsquickmaptransform.h>

Inherits the following classes: QQuickTransform

Public Properties

Type Name
property QgsQuickMapSettings * mapSettings

Public Signals

Type Name
signal void mapSettingsChanged

Public Functions

Type Name
QgsQuickMapTransform () = default
Creates a new map transform.
void applyTo (QMatrix4x4 * matrix) const
QgsQuickMapSettings * mapSettings () const
void setMapSettings (QgsQuickMapSettings * mapSettings)
~QgsQuickMapTransform () = default

Detailed Description

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.

Note:

QML Type: MapTransform

Public Properties Documentation

property mapSettings [1/2]

QgsQuickMapSettings * QgsQuickMapTransform::mapSettings;

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


Public Signals Documentation

signal mapSettingsChanged

void QgsQuickMapTransform::mapSettingsChanged;

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


Public Functions Documentation

function QgsQuickMapTransform

Creates a new map transform.

QgsQuickMapTransform::QgsQuickMapTransform () = default

function applyTo

void QgsQuickMapTransform::applyTo (
    QMatrix4x4 * matrix
) const

Applies transformation based on current map settings to a matrix.

Also optimize resulting matrix after transformation

Parameters:

  • matrix Matrix to be transformed

function mapSettings [2/2]

QgsQuickMapSettings * QgsQuickMapTransform::mapSettings () const

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


function setMapSettings

void QgsQuickMapTransform::setMapSettings (
    QgsQuickMapSettings * mapSettings
) 

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


function ~QgsQuickMapTransform

QgsQuickMapTransform::~QgsQuickMapTransform () = default


The documentation for this class was generated from the following file src/core/qgsquick/qgsquickmaptransform.h