16#ifndef QGSVECTORFIELDENGINE_H
17#define QGSVECTORFIELDENGINE_H
76 void drawTraces( std::unique_ptr<QgsVectorFieldValueSource> source );
80 void drawArrow(
const QgsPointXY &lineStart,
double xVal,
double yVal,
double magnitude );
83 void drawWindBarb(
const QgsPointXY &lineStart,
double xVal,
double yVal,
double magnitude );
86 bool calcVectorLineEnd(
106 std::unique_ptr<QgsCoordinateTransform> mGeographicTransform;
107 std::unique_ptr<QgsScopedQPainterState> mScopedPainterState;
Defines color interpolation for rendering mesh datasets.
Feedback object tailored for raster block reading.
Contains information about the context of a rendering operation.
Scoped object for saving and restoring a QPainter object's state.
QgsVectorFieldEngine(double datasetMagMaximumValue, double datasetMagMinimumValue, const QgsVectorFieldSettings &settings, QgsRenderContext &context, QSize size)
Ctor.
~QgsVectorFieldEngine()
Dtor.
void drawGlyph(const QgsPointXY &lineStart, double xVal, double yVal, double magnitude)
Draws a single glyph at lineStart, in painter coordinates, using the symbology of the settings the en...
QgsVectorFieldEngine(const QgsVectorFieldEngine &)=delete
void drawStreamlines(std::unique_ptr< QgsVectorFieldValueSource > source, QgsRasterBlockFeedback *feedback=nullptr)
Integrates and draws streamlines over the whole rendered extent, sampling the vector field from sourc...
QgsVectorFieldEngine & operator=(const QgsVectorFieldEngine &)=delete
void drawTraces(std::unique_ptr< QgsVectorFieldValueSource > source)
Seeds particles over the whole rendered extent, moves them one time step and draws their traces,...
Represents a renderer settings for vector datasets.
Abstract source of vector (u/v) values sampled at arbitrary map positions.