streamlines.h File Reference

#include "flowvis_data.h"
#include <vector>
#include <list>
#include <cassert>

Include dependency graph for streamlines.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  detail

Classes

struct  vec2
 Helper structure for holding and manipulating 2 dimensional vectors or coordinates. More...
struct  SamplePoint
struct  SL_Rectangle
 Helper structure used to specify the dimensions of the velocity field. More...
class  detail::Array2d< T >
 Helper class providing easy 2 dimensional vector of type <T> (non growing). More...
class  VelocityFunctor
 Functor for accessing the Velocity Data. More...
class  StreamlineGenerator
 Class used to generate evenly spaced streamlines. More...

Typedefs

typedef std::vector< SamplePointStreamline
 Stremlines are collections of SamplePoints.

Enumerations

enum  SLIterAlg { ITER_RK, ITER_EULER }
 Enumeration of available integration methods. More...

Functions

vec2 rotate90 (const vec2 &v)
 Rotate the Y Component for 90°.
const float dot (const vec2 &lhs, const vec2 &rhs)
 Calculate dot product (x1 * x2 + y1 * y2) of a 2 dimensional vector.
const vec2 operator* (const vec2 &v, float f)
 Multiply a vector with a scalar.
const vec2 operator+ (const vec2 &lhs, const vec2 &rhs)
 Add one vector to another (or move in 2 dimesions by adding a vector to a point).
const vec2 operator- (const vec2 &lhs, const vec2 &rhs)
 Subtract one vector from another (or move in 2 dimensions by subtracting a vector from a point).
const float length (const vec2 &vec)
 Calculate the length of a 2 dimensional vector.


Typedef Documentation

typedef std::vector<SamplePoint> Streamline

Stremlines are collections of SamplePoints.

Definition at line 162 of file streamlines.h.


Enumeration Type Documentation

enum SLIterAlg

Enumeration of available integration methods.

Enumerator:
ITER_RK  Runel-Kutter Integration (more accurate than Euler).
ITER_EULER  Euler Integration (a little bit faster tha Runel-Kutter).

Definition at line 193 of file streamlines.h.


Function Documentation

const float dot ( const vec2 lhs,
const vec2 rhs 
) [inline]

Calculate dot product (x1 * x2 + y1 * y2) of a 2 dimensional vector.

Definition at line 26 of file streamlines.h.

References vec2::x, and vec2::y.

Referenced by StreamlineGenerator::GetMinDistance(), and SamplePoint::SamplePoint().

const float length ( const vec2 vec  )  [inline]

Calculate the length of a 2 dimensional vector.

Definition at line 42 of file streamlines.h.

References vec2::x, and vec2::y.

Referenced by FlowVisCanvas::Render_Arrows(), and SamplePoint::SamplePoint().

const vec2 operator* ( const vec2 v,
float  f 
) [inline]

Multiply a vector with a scalar.

Definition at line 30 of file streamlines.h.

References vec2::x, and vec2::y.

const vec2 operator+ ( const vec2 lhs,
const vec2 rhs 
) [inline]

Add one vector to another (or move in 2 dimesions by adding a vector to a point).

Definition at line 34 of file streamlines.h.

References vec2::x, and vec2::y.

const vec2 operator- ( const vec2 lhs,
const vec2 rhs 
) [inline]

Subtract one vector from another (or move in 2 dimensions by subtracting a vector from a point).

Definition at line 38 of file streamlines.h.

References vec2::x, and vec2::y.

vec2 rotate90 ( const vec2 v  )  [inline]

Rotate the Y Component for 90°.

Definition at line 22 of file streamlines.h.

References vec2::x, and vec2::y.

Referenced by VelocityFunctor::operator()(), and StreamlineGenerator::StreamlineGenerator().


Generated on Wed Jan 21 16:22:24 2009 for FlowVis by  doxygen 1.5.6