QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsMeshVectorTraceAnimationGenerator Class Reference

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.
 
QgsMeshVectorTraceAnimationGeneratoroperator= (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.
 

Detailed Description

A wrapper for QgsMeshParticuleTracesField used to render the particles.

Available for Python binding

Since
QGIS 3.12

Definition at line 602 of file qgsmeshtracerenderer.h.

Constructor & Destructor Documentation

◆ QgsMeshVectorTraceAnimationGenerator() [1/3]

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() [2/3]

QgsMeshVectorTraceAnimationGenerator::QgsMeshVectorTraceAnimationGenerator ( QgsMeshLayer layer,
const QgsRenderContext rendererContext 
)

Constructor to use with Python binding.

◆ QgsMeshVectorTraceAnimationGenerator() [3/3]

QgsMeshVectorTraceAnimationGenerator::QgsMeshVectorTraceAnimationGenerator ( const QgsMeshVectorTraceAnimationGenerator other)

◆ ~QgsMeshVectorTraceAnimationGenerator()

QgsMeshVectorTraceAnimationGenerator::~QgsMeshVectorTraceAnimationGenerator ( )
default

Member Function Documentation

◆ imageRendered()

QImage QgsMeshVectorTraceAnimationGenerator::imageRendered ( )

Moves all the particles using frame per second (fps) to calculate the displacement and return the rendered frame.

◆ operator=()

QgsMeshVectorTraceAnimationGenerator & QgsMeshVectorTraceAnimationGenerator::operator= ( const QgsMeshVectorTraceAnimationGenerator other)

◆ seedRandomParticles()

void QgsMeshVectorTraceAnimationGenerator::seedRandomParticles ( int  count)

seeds particles in the vector fields

◆ setFPS()

void QgsMeshVectorTraceAnimationGenerator::setFPS ( int  FPS)

Sets the number of frames per seconds that will be rendered.

◆ setMaxSpeedPixel()

void QgsMeshVectorTraceAnimationGenerator::setMaxSpeedPixel ( int  max)

Sets the max number of pixels that can be go through by the particles in 1 second.

◆ setMinimumTailLength()

void QgsMeshVectorTraceAnimationGenerator::setMinimumTailLength ( int  l)

Sets the minimum tail length.

◆ setParticlesColor()

void QgsMeshVectorTraceAnimationGenerator::setParticlesColor ( const QColor &  c)

Sets colors of particle.

◆ setParticlesLifeTime()

void QgsMeshVectorTraceAnimationGenerator::setParticlesLifeTime ( double  particleLifeTime)

Sets maximum life time of particles in seconds.

◆ setParticlesSize()

void QgsMeshVectorTraceAnimationGenerator::setParticlesSize ( double  width)

Sets particle size in px.

◆ setTailFactor()

void QgsMeshVectorTraceAnimationGenerator::setTailFactor ( double  fct)

Sets the tail factor, used to adjust the length of the tail. 0 : minimum length, >1 increase the tail.

◆ setTailPersitence()

void QgsMeshVectorTraceAnimationGenerator::setTailPersitence ( double  p)

Sets the visual persistence of the tail.


The documentation for this class was generated from the following file: