#include <VisStreamline.h>
Inheritance diagram for VisStreamline:

Public Member Functions | |
| VisStreamline (FlowData *aFlowData) | |
| VisStreamline (Visualization *aPrevVisualization) | |
| void | paint () |
| void | paramChanged (ColorType aType) |
Private Member Functions | |
| void | calculateStreamlines () |
| void | followPath (float aDirection) |
| bool | checkPosition (Pos2d aPos, bool forNewStreamLine) |
| PosInt * | calculateStreamLine (Pos2d aPos) |
| void | addSeedPoints (Pos2d aPos) |
Private Attributes | |
| std::vector< Pos2d > * | theStreamPointGrid |
| std::deque< Pos2d > | theSeedPointQueue |
| std::deque< Pos2d > | theCurrStreamLine |
| int | theGridHorizSize |
| int | theGridVertSize |
| VisStreamline::VisStreamline | ( | FlowData * | aFlowData | ) |
constructor for new object
| aFlowData | the flow data to use |
| VisStreamline::VisStreamline | ( | Visualization * | aPrevVisualization | ) |
constructor for change of implementation
| aPrevVisualization | the visualization from which precomputed values shall be kept |
| void VisStreamline::addSeedPoints | ( | Pos2d | aPos | ) | [private] |
adds new seed points for calculated position
| aPos | point on a streamline to add seedpoints for |
(re)calculates a stream line
| aPos | starting position of the streamline |
| void VisStreamline::calculateStreamlines | ( | ) | [private] |
(re)calculates the stream lines
| bool VisStreamline::checkPosition | ( | Pos2d | aPos, | |
| bool | forNewStreamLine | |||
| ) | [private] |
checks whether there is enough space to create/continue a stream line
| aPosition | position to check | |
| forNewStreamLine | whether to check for creation of a new streamline of a new node of one |
| void VisStreamline::followPath | ( | float | aDirection | ) | [private] |
follows the flow data until another streamline is too close, the streamline creates a circle or leaves the flowfield
| aDirection | whether to follow the flow forwards or backwards |
| void VisStreamline::paint | ( | ) | [virtual] |
draws the scene
Implements Visualization.
| void VisStreamline::paramChanged | ( | ColorType | aType | ) | [virtual] |
recalculates image if parameter changed
| aType | type modified |
Reimplemented from Visualization.
std::deque<Pos2d> VisStreamline::theCurrStreamLine [private] |
int VisStreamline::theGridHorizSize [private] |
int VisStreamline::theGridVertSize [private] |
std::deque<Pos2d> VisStreamline::theSeedPointQueue [private] |
std::vector<Pos2d>* VisStreamline::theStreamPointGrid [private] |
1.4.7