2019-11-29 04:06:47 -04:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/mesh/qgsmeshtracerenderer.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-03 03:13:36 -04:00
|
|
|
class QgsMeshVectorTraceAnimationGenerator
|
2019-11-29 04:06:47 -04:00
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
|
|
|
|
A wrapper for QgsMeshParticuleTracesField used to render the particles. Available for Python binding
|
|
|
|
|
|
|
|
.. versionadded:: 3.12
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmeshtracerenderer.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2019-12-03 03:13:36 -04:00
|
|
|
QgsMeshVectorTraceAnimationGenerator( QgsMeshLayer *layer, const QgsRenderContext &rendererContext );
|
2019-11-29 04:06:47 -04:00
|
|
|
%Docstring
|
|
|
|
Constructor to use with Python binding
|
|
|
|
%End
|
|
|
|
|
2019-12-03 03:13:36 -04:00
|
|
|
QgsMeshVectorTraceAnimationGenerator( const QgsMeshVectorTraceAnimationGenerator &other );
|
2019-11-29 04:06:47 -04:00
|
|
|
%Docstring
|
|
|
|
Copy constructor
|
|
|
|
%End
|
|
|
|
|
2019-12-03 03:13:36 -04:00
|
|
|
~QgsMeshVectorTraceAnimationGenerator();
|
2019-11-29 04:06:47 -04:00
|
|
|
|
|
|
|
void seedRandomParticles( int count );
|
|
|
|
%Docstring
|
|
|
|
seeds particles in the vector fields
|
|
|
|
%End
|
|
|
|
|
|
|
|
QImage imageRendered();
|
|
|
|
%Docstring
|
2019-12-03 03:13:36 -04:00
|
|
|
Moves all the particles using frame per second (fps) to calculate the displacement and return the rendered frame
|
2019-11-29 04:06:47 -04:00
|
|
|
%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
|
2019-12-03 03:13:36 -04:00
|
|
|
Sets particle size in px
|
2019-11-29 04:06:47 -04:00
|
|
|
%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.pl again *
|
|
|
|
************************************************************************/
|