QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Signals | Public Member Functions | Properties | List of all members
QgsQuickMapTransform Class Reference

The QgsQuickMapTransform is transformation that can be attached to any QQuickItem. More...

#include <qgsquickmaptransform.h>

Inheritance diagram for QgsQuickMapTransform:
Inheritance graph
[legend]

Signals

void mapSettingsChanged ()
 Associated map settings. More...
 

Public Member Functions

 QgsQuickMapTransform ()=default
 Creates a new map transform. More...
 
 ~QgsQuickMapTransform ()=default
 
void applyTo (QMatrix4x4 *matrix) const
 Applies transformation based on current map settings to a matrix. More...
 
QgsQuickMapSettingsmapSettings () const
 Associated map settings. More...
 
void setMapSettings (QgsQuickMapSettings *mapSettings)
 Associated map settings. More...
 

Properties

QgsQuickMapSettingsmapSettings
 Associated map settings. More...
 

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

Note
QML Type: MapTransform
Since
QGIS 3.4

Definition at line 37 of file qgsquickmaptransform.h.

Constructor & Destructor Documentation

◆ QgsQuickMapTransform()

QgsQuickMapTransform::QgsQuickMapTransform ( )
default

Creates a new map transform.

◆ ~QgsQuickMapTransform()

QgsQuickMapTransform::~QgsQuickMapTransform ( )
default

Member Function Documentation

◆ applyTo()

void QgsQuickMapTransform::applyTo ( QMatrix4x4 *  matrix) const

Applies transformation based on current map settings to a matrix.

Also optimize resulting matrix after transformation

Parameters
matrixMatrix to be transformed

Definition at line 19 of file qgsquickmaptransform.cpp.

◆ mapSettings()

QgsQuickMapSettings * QgsQuickMapTransform::mapSettings ( ) const

Associated map settings.

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

Definition at line 25 of file qgsquickmaptransform.cpp.

◆ mapSettingsChanged

void QgsQuickMapTransform::mapSettingsChanged ( )
signal

Associated map settings.

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

◆ setMapSettings()

void QgsQuickMapTransform::setMapSettings ( QgsQuickMapSettings mapSettings)

Associated map settings.

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

Definition at line 30 of file qgsquickmaptransform.cpp.

Property Documentation

◆ mapSettings

QgsQuickMapSettings * QgsQuickMapTransform::mapSettings
readwrite

Associated map settings.

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

Definition at line 37 of file qgsquickmaptransform.h.


The documentation for this class was generated from the following files: