#include <FlowChannel.h>

Public Member Functions | |
| FlowChannel (FlowGeometry *g) | |
| ~FlowChannel () | |
| void | moveMinimumToZero () |
| gv OBSOLETE Move minimum-value to zero (useful for normalisation) | |
| 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 | |
| void | copyValues (float *rawData) |
| gv Takes an array containing all attributes for a channel | |
| float | getValue (vec3 pos) |
| returns the interpolated 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 | normalizeValue (float val) |
| scales the value according to the channel minimim and maximum, so that it lies inside of <0,1> | |
| void | setMax (float val) |
| void | setMin (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 | |
| float * | getData () const |
Definition at line 9 of file FlowChannel.h.
| FlowChannel::FlowChannel | ( | FlowGeometry * | g | ) |
Definition at line 82 of file FlowChannel.cpp.
References FlowGeometry::getDimX(), and FlowGeometry::getDimY().

| FlowChannel::~FlowChannel | ( | ) |
Definition at line 95 of file FlowChannel.cpp.
| void FlowChannel::moveMinimumToZero | ( | ) |
gv OBSOLETE Move minimum-value to zero (useful for normalisation)
Definition at line 5 of file FlowChannel.cpp.
References FlowGeometry::getDimX(), and FlowGeometry::getDimY().

| void FlowChannel::setValue | ( | int | vtxID, | |
| float | val | |||
| ) |
sets the value of the given vertex
Definition at line 102 of file FlowChannel.cpp.
Referenced by FlowData::createChannelVectorLength(), and FlowData::normalizeVelocityChannels().
| 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
Takes an array containing all attributes for a vertex and copies the j-th attribute to this channel.
Definition at line 111 of file FlowChannel.cpp.
References FlowGeometry::getDimX(), and FlowGeometry::getDimY().
Referenced by FlowData::loadDataset().

| void FlowChannel::copyValues | ( | float * | rawData | ) |
gv Takes an array containing all attributes for a channel
Definition at line 130 of file FlowChannel.cpp.
References FlowGeometry::getDimX(), and FlowGeometry::getDimY().

| float FlowChannel::getValue | ( | vec3 | pos | ) |
returns the interpolated value at given position
Definition at line 31 of file FlowChannel.cpp.
References FlowGeometry::getInterpolationAt_old().
Referenced by FlowData::createChannelVectorLength(), Arrows::draw(), getValueNormPos(), FlowData::loadDataset(), FlowData::normalizeVelocityChannels(), and FlowData::printData().

| float FlowChannel::getValue | ( | int | vtxID | ) |
| float FlowChannel::getValueNormPos | ( | vec3 | pos | ) |
returns the value at given normalized position
Definition at line 61 of file FlowChannel.cpp.
References getValue(), and FlowGeometry::unNormalizeCoords().
Referenced by getValueNormPos().

| float FlowChannel::getValueNormPos | ( | float | x, | |
| float | y | |||
| ) |
returns the value at given normalized position
Definition at line 70 of file FlowChannel.cpp.
References getValueNormPos().

| float FlowChannel::normalizeValue | ( | float | val | ) |
scales the value according to the channel minimim and maximum, so that it lies inside of <0,1>
Definition at line 76 of file FlowChannel.cpp.
Referenced by FlowData::loadDataset().
| void FlowChannel::setMax | ( | float | val | ) |
Definition at line 148 of file FlowChannel.cpp.
| void FlowChannel::setMin | ( | float | val | ) |
Definition at line 153 of file FlowChannel.cpp.
| float FlowChannel::getMin | ( | ) |
| float FlowChannel::getMax | ( | ) |
| float FlowChannel::getRange | ( | ) |
| float * FlowChannel::getData | ( | ) | const |
1.5.4