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() )
65 if ( feature.hasGeometry() )
72 rb->setFlag( QSGNode::OwnedByParent );
73 n->appendChildNode( rb.release() );
QgsQuickFeatureHighlight(QQuickItem *parent=nullptr)
Creates a new feature highlight.
This is used to transform (render) QgsGeometry to node for QtQuick scene graph.
OperationResult transform(const QgsCoordinateTransform &ct, QgsCoordinateTransform::TransformDirection direction=QgsCoordinateTransform::ForwardTransform, bool transformZ=false) SIP_THROW(QgsCsException)
Transforms this geometry as described by the coordinate transform ct.
bool isValid() const
Whether.
void colorChanged()
Color of the highlighted geometry (feature).
A geometry is the spatial representation of a feature.
Q_INVOKABLE QgsCoordinateTransformContext transformContext() const
Returns the coordinate transform context, which stores various information regarding which datum tran...
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
void featureLayerPairChanged()
Feature to highlight.
void mapSettingsChanged()
Associated map settings.
void widthChanged()
Pen width of the highlighted geometry (feature).
QgsCoordinateReferenceSystem destinationCrs
CRS of destination coordinate reference system.
QgsFeature feature
Feature that belongs to layer.
QgsVectorLayer layer
Vector layer to which the feature belongs.
Custom exception class for Coordinate Reference System related exceptions.
Represents a vector layer which manages a vector based data sets.
QgsCoordinateReferenceSystem crs