FlowChannel Klassenreferenz

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

#include <FlowChannel.h>

Aufstellung aller Elemente

Öffentliche Methoden

 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 (CoreVector3 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 (CoreVector3 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

Öffentliche Attribute

FlowGeometrygeom
 reference to the geometry structure


Ausführliche Beschreibung

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.


Beschreibung der Konstruktoren und Destruktoren

FlowChannel::FlowChannel ( FlowGeometry g  ) 

FlowChannel::~FlowChannel (  ) 


Dokumentation der Elementfunktionen

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.

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

float FlowChannel::getMax (  ) 

returns the maximum value found in the channel

float FlowChannel::getMin (  ) 

returns the minimum value found in the channel

float FlowChannel::getRange (  ) 

returns the range = max - min

float FlowChannel::getValue ( int  vtxID  ) 

returns the value of the given vertex

float FlowChannel::getValue ( CoreVector3  pos  ) 

returns the value at given position in data set coordinates (from 0 to dimX or dimY)

float FlowChannel::getValueNormPos ( float  x,
float  y 
)

returns the value at given position in normalized coordinates for each dimension <0..1>

float FlowChannel::getValueNormPos ( CoreVector3  pos  ) 

returns the value at given position in normalized coordinates for each dimension <0..1>

float FlowChannel::normalizeValue ( float  val  ) 

scales the value according to the channel minimim and maximum, so that it lies inside of <0,1>

void FlowChannel::setValue ( int  vtxID,
float  val 
)

sets the value of the given vertex


Dokumentation der Datenelemente

reference to the geometry structure


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:

Erzeugt am Tue Jan 20 19:36:47 2009 für FlowVis von  doxygen 1.5.7.1