QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
A wrapper for QgsMeshParticuleTracesField used to render the particles. More...
#include <qgsmeshtracerenderer.h>
Public Member Functions | |
QgsMeshVectorTraceAnimationGenerator (const QgsMeshVectorTraceAnimationGenerator &other) | |
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 (QgsMeshLayer *layer, const QgsRenderContext &rendererContext) | |
Constructor to use with Python binding. | |
~QgsMeshVectorTraceAnimationGenerator ()=default | |
QImage | imageRendered () |
Moves all the particles using frame per second (fps) to calculate the displacement and return the rendered frame. | |
QgsMeshVectorTraceAnimationGenerator & | operator= (const QgsMeshVectorTraceAnimationGenerator &other) |
void | seedRandomParticles (int count) |
seeds particles in the vector fields | |
void | setFPS (int FPS) |
Sets the number of frames per seconds that will be rendered. | |
void | setMaxSpeedPixel (int max) |
Sets the max number of pixels that can be go through by the particles in 1 second. | |
void | setMinimumTailLength (int l) |
Sets the minimum tail length. | |
void | setParticlesColor (const QColor &c) |
Sets colors of particle. | |
void | setParticlesLifeTime (double particleLifeTime) |
Sets maximum life time of particles in seconds. | |
void | setParticlesSize (double width) |
Sets particle size in px. | |
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. | |
A wrapper for QgsMeshParticuleTracesField used to render the particles.
Available for Python binding
Definition at line 599 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 | ) |
|
default |
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 | ) |
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.