26 : QQuickItem( parent )
28 setFlags( QQuickItem::ItemHasContents );
29 setAntialiasing(
true );
32 mTransform.appendToItem(
this );
40 void QgsQuickFeatureHighlight::markDirty()
46 void QgsQuickFeatureHighlight::onMapSettingsChanged()
52 QSGNode *QgsQuickFeatureHighlight::updatePaintNode( QSGNode *n, QQuickItem::UpdatePaintNodeData * )
54 if ( !mDirty || !mMapSettings || !mFeatureLayerPair.
isValid() )
70 geom.transform( transf );
72 rb->setFlag( QSGNode::OwnedByParent );
73 n->appendChildNode( rb.release() );
Custom exception class for Coordinate Reference System related exceptions.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
bool hasGeometry() const
Returns true if the feature has an associated geometry.
A geometry is the spatial representation of a feature.
QgsCoordinateReferenceSystem crs
QgsQuickFeatureHighlight(QQuickItem *parent=nullptr)
Creates a new feature highlight.
void widthChanged()
Pen width of the highlighted geometry (feature).
void mapSettingsChanged()
Associated map settings.
void colorChanged()
Color of the highlighted geometry (feature).
void featureLayerPairChanged()
Feature to highlight.
QgsFeature feature
Feature that belongs to layer.
Q_GADGET QgsVectorLayer * layer
Vector layer to which the feature belongs.
bool isValid() const
Whether.
This is used to transform (render) QgsGeometry to node for QtQuick scene graph.
Q_INVOKABLE QgsCoordinateTransformContext transformContext() const
Returns the coordinate transform context, which stores various information regarding which datum tran...
QgsCoordinateReferenceSystem destinationCrs
CRS of destination coordinate reference system.
Represents a vector layer which manages a vector based data sets.