#include <FlowChannel.h>
Public Member Functions | |
| FlowChannel (FlowGeometry *g) | |
| ~FlowChannel () | |
| void | setValue (int vtxID, float val) |
| sets the value of the given vertex | |
| void | copyValues (float *rawdata, int vtxSize, int offset) |
| takes an array containing all attributes for a vertex and copies the j-th attribute to this channel | |
| float | getValue (vec3 pos) |
| returns the value at given position | |
| float | getValue (int vtxID) |
| returns the value of the given vertex | |
| float | getValueNormPos (vec3 pos) |
| returns the value at given normalized position | |
| float | getValueNormPos (float x, float y) |
| returns the value at given normalized position | |
| float * | getInterpolatedNormalizedValues () |
| float * | getInterpolatedValues () |
| float | normalizeValue (float val) |
| scales the value according to the channel minimim and maximum, so that it lies inside of <0,1> | |
| float | unnormalizeValue (float val) |
| float | getMin () |
| returns the minimum value found in the channel | |
| float | getMax () |
| returns the maximum value found in the channel | |
| float | getRange () |
| returns the range = max - min | |
Private Attributes | |
| FlowGeometry * | geom |
| reference to the geometry structure | |
| float * | values |
| channel data storage | |
| float | minimum |
| minimum value | |
| float | maximum |
| maximum value | |
| FlowChannel::FlowChannel | ( | FlowGeometry * | g | ) |
| FlowChannel::~FlowChannel | ( | ) |
| void FlowChannel::setValue | ( | int | vtxID, | |
| float | val | |||
| ) |
sets the value of the given vertex
| void FlowChannel::copyValues | ( | float * | rawdata, | |
| int | vtxSize, | |||
| int | offset | |||
| ) |
takes an array containing all attributes for a vertex and copies the j-th attribute to this channel
| float FlowChannel::getValue | ( | vec3 | pos | ) |
returns the value at given position
| float FlowChannel::getValue | ( | int | vtxID | ) |
returns the value of the given vertex
| float FlowChannel::getValueNormPos | ( | vec3 | pos | ) |
returns the value at given normalized position
| float FlowChannel::getValueNormPos | ( | float | x, | |
| float | y | |||
| ) |
returns the value at given normalized position
| float * FlowChannel::getInterpolatedNormalizedValues | ( | ) |
| float * FlowChannel::getInterpolatedValues | ( | ) |
| float FlowChannel::normalizeValue | ( | float | val | ) |
scales the value according to the channel minimim and maximum, so that it lies inside of <0,1>
| float FlowChannel::unnormalizeValue | ( | float | val | ) |
| float FlowChannel::getMin | ( | ) |
returns the minimum value found in the channel
| float FlowChannel::getMax | ( | ) |
returns the maximum value found in the channel
| float FlowChannel::getRange | ( | ) |
returns the range = max - min
FlowGeometry* FlowChannel::geom [private] |
reference to the geometry structure
float* FlowChannel::values [private] |
channel data storage
float FlowChannel::minimum [private] |
minimum value
float FlowChannel::maximum [private] |
maximum value
1.5.4