#include <VisUserStreamline.h>
Inheritance diagram for VisUserStreamline:
Public Member Functions | |
VisUserStreamline (FlowData *aFlowData) | |
VisUserStreamline (Visualization *aPrevVisualization) | |
void | paint () |
void | paramChanged (ColorType aType) |
void | visAction (Pos2d aRelativeMousePosition) |
Private Member Functions | |
void | followPath (float aDirection) |
PosInt * | calculateStreamLine (Pos2d aPos) |
Private Attributes | |
std::deque< Pos2d > | theCurrStreamLine |
VisUserStreamline::VisUserStreamline | ( | FlowData * | aFlowData | ) |
constructor for new object
aFlowData | the flow data to use |
VisUserStreamline::VisUserStreamline | ( | Visualization * | aPrevVisualization | ) |
constructor for change of implementation
aPrevVisualization | the visualization from which precomputed values shall be kept |
(re)calculates a stream line
aPos | starting position of the streamline |
void VisUserStreamline::followPath | ( | float | aDirection | ) | [private] |
follows the flow data until the streamline creates a circle or leaves the flowfield
aDirection | whether to follow the flow forwards or backwards |
void VisUserStreamline::paint | ( | ) | [virtual] |
draws the scene
Implements Visualization.
void VisUserStreamline::paramChanged | ( | ColorType | aType | ) | [virtual] |
recalculates image if parameter changed
aType | type modified |
Reimplemented from Visualization.
void VisUserStreamline::visAction | ( | Pos2d | aRelativeMousePosition | ) | [virtual] |
adds a new streamline at the specified position
aRelativeMousePosition | relative mouse position on the window |
Reimplemented from Visualization.
std::deque<Pos2d> VisUserStreamline::theCurrStreamLine [private] |