Demonstration class to visualize stream on mesh with 3D-Data-Master.
|
Inherits from:
|
MeshStreamViewer
|
|
Derived classes:
|
|
|
Include file:
|
MeshViewer/MeshStreamViewer.h
|
This is only a demonstration class, given with source code.
As it uses only some of the features of 3D-data master, the limitations
of this class are not necessary limitation of 3D-data Master.
This class is a part of the MeshViewer class. It cannot be instantiate
apart from MeshViewer. It controls the visualization of streamlines or
the animation of particles along streamlines.
The associated dialog box controls
- the shape of the list sources of the streamlines
2 shapes (line or circle) are available here, but it would be very
easy to create other shapes
- the number of sources of streamline that compose the shape
- the size of the shape relative to the size of the dragger
- the type of representation of stream. streamline, streamsurface or
particle animation
- when the particle animation is chosen, it controls also
- if each particle start at the same time from the sources (true if
the toggle button "random start" is set to no)
- the time step between 2 consecutives particles that comes from
the same source
- the possibility to stop the animation of particle and to see
it frame after frame
- the length of "tadpoles" if the stream representation is
tadpole (see PoStreamTadpoleMotion)
The position of the sources is relative to the position and orientation of
the dragger. But this one can be deconnected with a toggle button. In this
case, the source and therefore the streamlines are not affected by the
motion of the dragger.
This class can be easily extended to manage more attributes of the
stream representation (see PoBaseStreamLine or PoStreamParticleMotion)
For example, it can be usefull to define some conditions to stop
the computation of streamlines when some critical points exist in the
flow (attrictive focus or attractive nodes for example may produce infinite
streamlines).