18#ifndef QGSVECTORFIELDTRACEANIMATIONGENERATOR_H
19#define QGSVECTORFIELDTRACEANIMATIONGENERATOR_H
30class QgsVectorFieldParticleTracesField;
106 std::unique_ptr<QgsVectorFieldParticleTracesField> mParticleField;
110 double mParticleLifeTime = 5;
112 void updateFieldParameter();
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Contains information about the context of a rendering operation.
Represents a renderer settings for vector datasets.
~QgsVectorFieldTraceAnimationGenerator()
QgsVectorFieldTraceAnimationGenerator & operator=(const QgsVectorFieldTraceAnimationGenerator &other)
void setMinimumTailLength(int l)
Sets the minimum tail length.
QgsVectorFieldTraceAnimationGenerator(std::unique_ptr< QgsVectorFieldValueSource > source, const QgsRenderContext &rendererContext, const QgsVectorFieldSettings &vectorSettings, bool minimizeFieldSize=true)
Constructs a generator sampling the vector field from source, which is taken ownership of.
void seedRandomParticles(int count)
Seeds particles in the vector field.
void setParticlesSize(double width)
Sets particle size in px.
void setMaximumSpeedPixel(int pixels)
Sets the max number of pixels that can be go through by the particles in 1 second.
void setParticlesLifeTime(double particleLifeTime)
Sets maximum life time of particles in seconds.
void setTailFactor(double fct)
Sets the tail factor, used to adjust the length of the tail. 0 : minimum length, >1 increase the tail...
void setTailPersitence(double p)
Sets the visual persistence of the tail.
static QgsVectorFieldTraceAnimationGenerator * fromMeshLayer(QgsMeshLayer *layer, const QgsRenderContext &rendererContext)
Returns a generator for the active vector dataset of layer, or nullptr if the layer has no vector dat...
void setParticlesColor(const QColor &c)
Sets colors of particle.
QImage imageRendered()
Moves all the particles using frame per second (fps) to calculate the displacement and return the ren...
void setFramesPerSecond(int frames)
Sets the number of frames per seconds that will be rendered.
Abstract source of vector (u/v) values sampled at arbitrary map positions.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
#define SIP_NODEFAULTCTORS