QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Signals | Public Member Functions | Properties | List of all members
QgsQuickFeatureHighlight Class Reference

Creates map highlights for a geometry provided by a AttributeModel. More...

#include <qgsquickfeaturehighlight.h>

Inheritance diagram for QgsQuickFeatureHighlight:
Inheritance graph
[legend]

Signals

void colorChanged ()
 Color of the highlighted geometry (feature). More...
 
void featureLayerPairChanged ()
 Feature to highlight. More...
 
void mapSettingsChanged ()
 Associated map settings. More...
 
void widthChanged ()
 Pen width of the highlighted geometry (feature). More...
 

Public Member Functions

 QgsQuickFeatureHighlight (QQuickItem *parent=nullptr)
 Creates a new feature highlight. More...
 

Properties

QColor color
 Color of the highlighted geometry (feature). More...
 
QgsQuickFeatureLayerPair featureLayerPair
 Feature to highlight. More...
 
QgsQuickMapSettings mapSettings
 Associated map settings. More...
 
float width
 Pen width of the highlighted geometry (feature). More...
 

Detailed Description

Creates map highlights for a geometry provided by a AttributeModel.

The highlights are compatible with the QtQuick scene graph and can be direcly shown on map canvas

Note
QML Type: FeatureHighlight
Since
QGIS 3.4

Definition at line 39 of file qgsquickfeaturehighlight.h.

Constructor & Destructor Documentation

QgsQuickFeatureHighlight::QgsQuickFeatureHighlight ( QQuickItem *  parent = nullptr)
explicit

Creates a new feature highlight.

Definition at line 25 of file qgsquickfeaturehighlight.cpp.

Member Function Documentation

void QgsQuickFeatureHighlight::colorChanged ( )
signal

Color of the highlighted geometry (feature).

Default is yellow color

void QgsQuickFeatureHighlight::featureLayerPairChanged ( )
signal

Feature to highlight.

void QgsQuickFeatureHighlight::mapSettingsChanged ( )
signal

Associated map settings.

Should be initialized from QML component before the first use.

void QgsQuickFeatureHighlight::widthChanged ( )
signal

Pen width of the highlighted geometry (feature).

Default is 20, see QSGGeometry::setLineWidth()

Property Documentation

QColor QgsQuickFeatureHighlight::color

Color of the highlighted geometry (feature).

Default is yellow color

Definition at line 58 of file qgsquickfeaturehighlight.h.

QgsQuickFeatureLayerPair QgsQuickFeatureHighlight::featureLayerPair

Feature to highlight.

Definition at line 51 of file qgsquickfeaturehighlight.h.

QgsQuickMapSettings QgsQuickFeatureHighlight::mapSettings

Associated map settings.

Should be initialized from QML component before the first use.

Definition at line 46 of file qgsquickfeaturehighlight.h.

float QgsQuickFeatureHighlight::width

Pen width of the highlighted geometry (feature).

Default is 20, see QSGGeometry::setLineWidth()

Definition at line 65 of file qgsquickfeaturehighlight.h.


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