FlowVis 1.0

FlowChannel Class Reference

Handles one scalar field of floats defined for each cell. More...

#include <FlowChannel.h>

List of all members.

Public Member Functions

 FlowChannel (FlowGeometry *g)
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 in data set coordinates (from 0 to dimX or dimY)
float getValue (int vtxID)
 returns the value of the given vertex
float getValueNormPos (vec3 pos)
 returns the value at given position in normalized coordinates for each dimension <0..1>
float getValueNormPos (float x, float y)
 returns the value at given position in normalized coordinates for each dimension <0..1>
float normalizeValue (float val)
 scales the value according to the channel minimim and maximum, so that it lies inside of <0,1>
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

FlowGeometrygeom
 reference to the geometry structure
float * values
 channel data storage
float minimum
 minimum value (of all cells in a single time step)
float maximum
 maximum value (of all cells in a single time step)

Detailed Description

Handles one scalar field of floats defined for each cell.

More dimensional vectors are split into components. E.g. a 3D velocity vector gets stored in three FlowChannels. A FlowChannel stores data only from one time step, it is not aware of any time related information.

Definition at line 10 of file FlowChannel.h.


Member Function Documentation

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

This methos is used by the loading of data sets.

Parameters:
rawdatadata gained directly from the file, without any processing. It contains all channels for all cells. Please note, there is no time information considered here.
vtxSizenumber of channels per cell (incl. velocity vector size)
offsetoffset of the parameter loaded into this channel

Definition at line 75 of file FlowChannel.cpp.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends