#include "flowvis_data.h"
#include <vector>
#include <list>
#include <cassert>
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< SamplePoint > | Streamline |
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 std::vector<SamplePoint> Streamline |
enum SLIterAlg |
Enumeration of available integration methods.
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.
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().
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.
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.
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().