VelocityFunctor Class Reference

Functor for accessing the Velocity Data. More...

#include <streamlines.h>

Collaboration diagram for VelocityFunctor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 VelocityFunctor (FlowVisData *data)
 Common Constructor.
 ~VelocityFunctor ()
 Common Destructor (do nothing - since the data is still owned by the classes creator).
vec2 operator() (const vec2 &pos)
 Overloaded Operator to access the Data-Objects - 'GetVelocityAt' function like through a function pointer.

Private Attributes

FlowVisDatam_data
 Pointer to the object holding the velocity data.


Detailed Description

Functor for accessing the Velocity Data.

Definition at line 165 of file streamlines.h.


Constructor & Destructor Documentation

VelocityFunctor::VelocityFunctor ( FlowVisData data  )  [inline]

Common Constructor.

Definition at line 169 of file streamlines.h.

VelocityFunctor::~VelocityFunctor (  )  [inline]

Common Destructor (do nothing - since the data is still owned by the classes creator).

Definition at line 175 of file streamlines.h.


Member Function Documentation

vec2 VelocityFunctor::operator() ( const vec2 pos  )  [inline]

Overloaded Operator to access the Data-Objects - 'GetVelocityAt' function like through a function pointer.

Definition at line 180 of file streamlines.h.

References FlowVisData::GetVelocityAt(), m_data, rotate90(), vec2::x, and vec2::y.


Member Data Documentation

Pointer to the object holding the velocity data.

Definition at line 189 of file streamlines.h.

Referenced by operator()().


The documentation for this class was generated from the following file:

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