VisLU Flow 0.1
Public Member Functions | Friends

StreamGrid Class Reference

List of all members.

Public Member Functions

 StreamGrid (int x, int y, int sep, float test, float step, FlowGeometry geo, FlowChannel *chanX, FlowChannel *chanY, bool rk)
 Constructor.
 ~StreamGrid ()
 Destructor.
void calculateGrid (void)
 Calculates all streamlines.
std::vector< Streamline * > getAllStreamlines (void)
 Fetches all streamlines saved in the grid.
void addStreamline (const vec3 &seed)
 Add a streamline to the queue.
void addStreamline (Streamline *line)
 Add a streamline to the queue.
bool getStreamline (Streamline *line)
 Get next streamline in queue.
void addSample (const vec3 &point)
 Adds a point to cell.
vec3 getVelocity (const vec3 &point)
 returns the velocity of a given point
void clear (void)
 Clears the grid.
void setDSep (int sep)
 Sets the separation distance and other things.
void setDTest (float test)
 Sets the new test distance.
void setStepSize (float step)
 Sets the new step size.
int getDSep (void)
float getDTest (void)
float getStepSize (void)
void setUseRungeKutta (bool rk)
bool useRungeKutta (void)
int getDimX (void)
int getDimY (void)
FlowChannelgetChannelX (void)
FlowChannelgetChannelY (void)
int getMaxX (void)
int getMaxY (void)
bool checkDistanceForStop (const vec3 &point)
 Checks distance for stopping line integration.
bool checkDistanceForSeed (const vec3 &point)
 Checks distance for new seeds.

Friends

class Streamline

Constructor & Destructor Documentation

StreamGrid::StreamGrid ( int  x,
int  y,
int  sep,
float  test,
float  step,
FlowGeometry  geo,
FlowChannel chanX,
FlowChannel chanY,
bool  rk 
)

Constructor.

Parameters:
xx dimension of grid
yy dimension of grid
dSepseparator distance
rkuses Runge-Kutta integration

Member Function Documentation

void StreamGrid::addSample ( const vec3 point)

Adds a point to cell.

Parameters:
pointpoint to add to cell
void StreamGrid::addStreamline ( Streamline line)

Add a streamline to the queue.

Parameters:
lineThe streamline to add
void StreamGrid::addStreamline ( const vec3 seed)

Add a streamline to the queue.

Parameters:
seedThe seed for a new streamline
bool StreamGrid::checkDistanceForSeed ( const vec3 point)

Checks distance for new seeds.

Parameters:
pointpoint to check distance for
Returns:
true if valid, false if not
bool StreamGrid::checkDistanceForStop ( const vec3 point)

Checks distance for stopping line integration.

Parameters:
pointpoint to check distance for
Returns:
true if valid, false if not
std::vector< Streamline * > StreamGrid::getAllStreamlines ( void  )

Fetches all streamlines saved in the grid.

Returns:
List of streamlines
bool StreamGrid::getStreamline ( Streamline line)

Get next streamline in queue.

Parameters:
linestreamline to get
Returns:
true if there is one, false if not
vec3 StreamGrid::getVelocity ( const vec3 point)

returns the velocity of a given point

Parameters:
pointpoint to get velocity at
Returns:
velocity velocity for point
void StreamGrid::setDSep ( int  sep)

Sets the separation distance and other things.

Parameters:
sepnew separation distance
void StreamGrid::setDTest ( float  test)

Sets the new test distance.

Parameters:
testnew test distance
void StreamGrid::setStepSize ( float  step)

Sets the new step size.

Parameters:
stepnew step size

The documentation for this class was generated from the following files:
 All Classes Functions Variables