Animation of tadpole particles along streamline. More...
#include <MeshViz/3Ddata/PoStreamTadpoleMotion.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoStreamTadpoleMotion () | |
virtual void | rebuild () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFFloat | width |
SoSFFloat | lengthFactor |
SoSFColor | backColor |
SoSFColor | particleColor |
Class to visualize particle along streamlines on a mesh. Each particle is represented by a line set which looks like a tadpole.
Each particle is represented by a segment made up of 3 aligned points. The segment's length is equal to lengthFactor*V, where V is the velocity interpolated at the position of the particle. Each segment has a width attribute equal width.
The 2 end points of each segment is colored by backColor. If PoMesh::coloringType != COLOR_INHERITED and if PoMesh::valuesIndex is defined (i.e. >=0) the middle point is colored in applying the current data mapping to the scalar value interpolated at the particle position. If PoMesh::valuesIndex is undefined (i.e. <0) the middle point is colored in applying the current data mapping to the velocity interpolated at the position of the particle. Otherwise (PoMesh::coloringType = COLOR_INHERITED), if PoBaseStreamLine::colors is not empty, the middle point is colored by one of these colors (all the particle of the same streamline have the same color), or by particleColor if PoBaseStreamLine::colors is empty.
width | 2.0 |
backColor | (0.0,0.0,0.0) |
particleColor | SbColor(0.0,0.9,0.9) |
lengthFactor | 1.0 |
pulseFrequency | 5 |
shiftStart | 0.0 |
timeStep | 1.0 |
isStartRandomized | TRUE |
isBlinking | TRUE |
viewFrame | 0 |
blinkSpeed | 3.0 |
startPoints | SbVec3f(0,0,0) |
maxLifetime | 0 (i.e. infinite) |
maxLength | 0 (i.e. infinite) |
minSpeed | 0 (i.e. infinite) |
integrationStepLengthFactor | 0.3 |
integrationMaxStepNumber | 0 (i.e. infinite) |
integrationDirection | FORWARD |
colors | (SbColor(1,0,0) |
coloringType | COLOR_INHERITED |
valuesIndex | -1 |
valuesIndexForCellFilter | -1 |
vecsIndex | -1 |
moduleDataMapping | NULL |
PoStreamTadpoleMotion::PoStreamTadpoleMotion | ( | ) |
Constructor.
static const SoNodekitCatalog* PoStreamTadpoleMotion::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoStreamParticleMotion.
static SoType PoStreamTadpoleMotion::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoStreamParticleMotion.
virtual const SoNodekitCatalog* PoStreamTadpoleMotion::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoStreamParticleMotion.
virtual SoType PoStreamTadpoleMotion::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoStreamParticleMotion.
virtual void PoStreamTadpoleMotion::rebuild | ( | ) | [virtual] |
Background color applied on the end points of each segment.
Length factor applied to the velocity.
Color used at the middle point of each segment.
Used only if PoMesh::coloringType = COLOR_INHERITED, and PoBaseStreamLine::colors empty.
Width of each tadpole segment.
2.0 by default.