1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/mesh/qgsmeshtracerenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsMeshVectorTraceAnimationGenerator
{
%Docstring(signature="appended")
A wrapper for :py:class:`QgsMeshParticuleTracesField` used to render the
particles. Available for Python binding
.. versionadded:: 3.12
%End
%TypeHeaderCode
#include "qgsmeshtracerenderer.h"
%End
public:
QgsMeshVectorTraceAnimationGenerator( QgsMeshLayer *layer, const QgsRenderContext &rendererContext );
%Docstring
Constructor to use with Python binding
%End
QgsMeshVectorTraceAnimationGenerator( const QgsMeshVectorTraceAnimationGenerator &other );
~QgsMeshVectorTraceAnimationGenerator();
void seedRandomParticles( int count );
%Docstring
seeds particles in the vector fields
%End
QImage imageRendered();
%Docstring
Moves all the particles using frame per second (fps) to calculate the
displacement and return the rendered frame
%End
void setFPS( int FPS );
%Docstring
Sets the number of frames per seconds that will be rendered
%End
void setMaxSpeedPixel( int max );
%Docstring
Sets the max number of pixels that can be go through by the particles in
1 second
%End
void setParticlesLifeTime( double particleLifeTime );
%Docstring
Sets maximum life time of particles in seconds
%End
void setParticlesColor( const QColor &c );
%Docstring
Sets colors of particle
%End
void setParticlesSize( double width );
%Docstring
Sets particle size in px
%End
void setTailFactor( double fct );
%Docstring
Sets the tail factor, used to adjust the length of the tail. 0 : minimum
length, >1 increase the tail
%End
void setMinimumTailLength( int l );
%Docstring
Sets the minimum tail length
%End
void setTailPersitence( double p );
%Docstring
Sets the visual persistence of the tail
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/mesh/qgsmeshtracerenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|