QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
A wrapper for QgsMeshParticuleTracesField used to render the particles. Available for Python binding. More...
#include <qgsmeshtracerenderer.h>
Public Member Functions | |
QgsMeshVectorTraceAnimationGenerator (const QgsMeshVectorTraceAnimationGenerator &other) | |
Copy constructor. More... | |
QgsMeshVectorTraceAnimationGenerator (const QgsTriangularMesh &triangularMesh, const QgsMeshDataBlock &dataSetVectorValues, const QgsMeshDataBlock &scalarActiveFaceFlagValues, bool dataIsOnVertices, const QgsRenderContext &rendererContext, const QgsRectangle &layerExtent, double magMax, const QgsMeshRendererVectorSettings &vectorSettings) | |
Constructor to use from QgsMeshVectorRenderer. More... | |
QgsMeshVectorTraceAnimationGenerator (QgsMeshLayer *layer, const QgsRenderContext &rendererContext) | |
Constructor to use with Python binding. More... | |
~QgsMeshVectorTraceAnimationGenerator ()=default | |
Destructor. More... | |
QImage | imageRendered () |
Moves all the particles using frame per second (fps) to calculate the displacement and return the rendered frame. More... | |
QgsMeshVectorTraceAnimationGenerator & | operator= (const QgsMeshVectorTraceAnimationGenerator &other) |
Assignment operator. More... | |
void | seedRandomParticles (int count) |
seeds particles in the vector fields More... | |
void | setFPS (int FPS) |
Sets the number of frames per seconds that will be rendered. More... | |
void | setMaxSpeedPixel (int max) |
Sets the max number of pixels that can be go through by the particles in 1 second. More... | |
void | setMinimumTailLength (int l) |
Sets the minimum tail length. More... | |
void | setParticlesColor (const QColor &c) |
Sets colors of particle. More... | |
void | setParticlesLifeTime (double particleLifeTime) |
Sets maximum life time of particles in seconds. More... | |
void | setParticlesSize (double width) |
Sets particle size in px. More... | |
void | setTailFactor (double fct) |
Sets the tail factor, used to adjust the length of the tail. 0 : minimum length, >1 increase the tail. More... | |
void | setTailPersitence (double p) |
Sets the visual persistence of the tail. More... | |
A wrapper for QgsMeshParticuleTracesField used to render the particles. Available for Python binding.
Definition at line 566 of file qgsmeshtracerenderer.h.
QgsMeshVectorTraceAnimationGenerator::QgsMeshVectorTraceAnimationGenerator | ( | const QgsTriangularMesh & | triangularMesh, |
const QgsMeshDataBlock & | dataSetVectorValues, | ||
const QgsMeshDataBlock & | scalarActiveFaceFlagValues, | ||
bool | dataIsOnVertices, | ||
const QgsRenderContext & | rendererContext, | ||
const QgsRectangle & | layerExtent, | ||
double | magMax, | ||
const QgsMeshRendererVectorSettings & | vectorSettings | ||
) |
Constructor to use from QgsMeshVectorRenderer.
QgsMeshVectorTraceAnimationGenerator::QgsMeshVectorTraceAnimationGenerator | ( | QgsMeshLayer * | layer, |
const QgsRenderContext & | rendererContext | ||
) |
Constructor to use with Python binding.
QgsMeshVectorTraceAnimationGenerator::QgsMeshVectorTraceAnimationGenerator | ( | const QgsMeshVectorTraceAnimationGenerator & | other | ) |
Copy constructor.
|
default |
Destructor.
QImage QgsMeshVectorTraceAnimationGenerator::imageRendered | ( | ) |
Moves all the particles using frame per second (fps) to calculate the displacement and return the rendered frame.
QgsMeshVectorTraceAnimationGenerator& QgsMeshVectorTraceAnimationGenerator::operator= | ( | const QgsMeshVectorTraceAnimationGenerator & | other | ) |
Assignment operator.
void QgsMeshVectorTraceAnimationGenerator::seedRandomParticles | ( | int | count | ) |
seeds particles in the vector fields
void QgsMeshVectorTraceAnimationGenerator::setFPS | ( | int | FPS | ) |
Sets the number of frames per seconds that will be rendered.
void QgsMeshVectorTraceAnimationGenerator::setMaxSpeedPixel | ( | int | max | ) |
Sets the max number of pixels that can be go through by the particles in 1 second.
void QgsMeshVectorTraceAnimationGenerator::setMinimumTailLength | ( | int | l | ) |
Sets the minimum tail length.
void QgsMeshVectorTraceAnimationGenerator::setParticlesColor | ( | const QColor & | c | ) |
Sets colors of particle.
void QgsMeshVectorTraceAnimationGenerator::setParticlesLifeTime | ( | double | particleLifeTime | ) |
Sets maximum life time of particles in seconds.
void QgsMeshVectorTraceAnimationGenerator::setParticlesSize | ( | double | width | ) |
Sets particle size in px.
void QgsMeshVectorTraceAnimationGenerator::setTailFactor | ( | double | fct | ) |
Sets the tail factor, used to adjust the length of the tail. 0 : minimum length, >1 increase the tail.
void QgsMeshVectorTraceAnimationGenerator::setTailPersitence | ( | double | p | ) |
Sets the visual persistence of the tail.