PoStreamParticleMotion Class Reference
[Representation]

MeshViz Animation of particles along streamlines on a mesh. More...

#include <MeshViz/3Ddata/PoStreamParticleMotion.h>

Inheritance diagram for PoStreamParticleMotion:
PoBaseStreamLine PoMesh Po3DdataMaster PoBase SoBaseKit SoNode SoGetView SoFieldContainer SoBase SoRefCounter SoTypedObject PoStreamLineMotion PoStreamPointMotion PoStreamSphereMotion PoStreamTadpoleMotion

List of all members.

Public Member Functions

virtual SoType getTypeId () const
virtual const SoNodekitCataloggetNodekitCatalog () const

Static Public Member Functions

static SoType getClassTypeId ()
static const SoNodekitCataloggetClassNodekitCatalog ()

Public Attributes

SoSFInt32 pulseFrequency
SoSFFloat shiftStart
SoSFFloat timeStep
SoSFBool isStartRandomized
SoSFBool isBlinking
SoSFInt32 viewFrame
SoSFFloat blinkSpeed

Detailed Description

MeshViz Animation of particles along streamlines on a mesh.

This class realizes animation of particle along the list of streamlines starting from startPoints. First, it calculates the geometry of these streamlines according to the fields of the inherited class. Then it calculates a list of positions along the streamlines. Two consecutive positions on streamlines must be separated by a constant timeStep, in order to have an animation which respect the velocity. After that, blinking several frames does the animation. Each frame represents a selection of the calculated positions. This selection and the number of frame are defined by the value of pulseFrequency. For example, if pulseFrequency = 5, one position over 5 is kept in a frame. 5 frames are built, and the animation process will blink by cycling switch-on/switch-off one of these 5 frames. For a streamline made of 20 calculated positions, the 5 frames have the following position's indices:

         Frame 0:          0,5,10,15
         Frame 1:          1,6,11,16
         Frame 2:          2,7,12,17
         Frame 3:          3,8,13,18
         Frame 4:          4,9,14,19
   

The first position of each streamline can be shifted in time, after duration of shiftStart from the source point. If isStartRandomized is FALSE, the first position's index of frame 0, is always 0. Otherwise, it has a random value between 0 and pulseFrequency-1. Setting isStartRandomized to TRUE is interesting only when several startPoint are defined, because it prevents each first position of the different streamlines to start simultaneously.

Blinking from a frame to the next frame can be speeded up or speeded down by the blinkSpeed field. It defines the number of cycles per second. Setting isBlinking to FALSE can stop the animation. In that case, the index of the visualized frame is viewFrame % pulseFrequency.

FILE FORMAT/DEFAULT


Open Inventor Toolkit reference manual, generated on 16 Mar 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/