VisStreamline Class Reference

#include <VisStreamline.h>

Inheritance diagram for VisStreamline:

Visualization List of all members.

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

Constructor & Destructor Documentation

VisStreamline::VisStreamline ( FlowData *  aFlowData  ) 

constructor for new object

Parameters:
aFlowData the flow data to use

VisStreamline::VisStreamline ( Visualization *  aPrevVisualization  ) 

constructor for change of implementation

Parameters:
aPrevVisualization the visualization from which precomputed values shall be kept


Member Function Documentation

void VisStreamline::addSeedPoints ( Pos2d  aPos  )  [private]

adds new seed points for calculated position

Parameters:
aPos point on a streamline to add seedpoints for

PosInt * VisStreamline::calculateStreamLine ( Pos2d  aPos  )  [private]

(re)calculates a stream line

Parameters:
aPos starting position of the streamline
Returns:
the points the streamline passes through

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

Parameters:
aPosition position to check
forNewStreamLine whether to check for creation of a new streamline of a new node of one
Returns:
wheter there is enough space or not

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

Parameters:
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

Parameters:
aType type modified

Reimplemented from Visualization.


Member Data Documentation

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]


The documentation for this class was generated from the following files:
Generated on Wed Jan 17 09:27:52 2007 for FlowVis by  doxygen 1.4.7