Public Types | Public Member Functions | Properties

FlowMarkt::FlowChannel Class Reference

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

List of all members.

Public Types

enum  MappingTypes { LinearMinMax, LinearCentered }
 

Legt fest wie das Mapping nach [0,1] geschehen soll.

More...

Public Member Functions

 FlowChannel (FlowGeometry g)
 Initializes a new instanze of the FlowChannel class.
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[] sampleRegular (int width, int height)
 Tastet den Channel regelmäßig mit der gegebenen Auflösung ab.
void writeToTexture (Texture2DFloat target, MappingTypes mapping)
 Tastet den Channel nach dem Nyquist-Shannon-Abtasttheorem ab und schreibt die Daten des Channels Normiert nach [0,1] in die Textur. Diese Methode ist veraltet und wird durch FlowData::writeToTexture ersetzt.

Properties

float Min [get]
 returns the minimum value found in the channel
float Max [get]
 returns the maximum value found in the channel
float Range [get]
 returns the range = max - min
float AbsMax [get]
 returns the maximum absolut value found in the channel

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.


Member Enumeration Documentation

Legt fest wie das Mapping nach [0,1] geschehen soll.


Constructor & Destructor Documentation

FlowMarkt::FlowChannel::FlowChannel ( FlowGeometry  g ) [inline]

Initializes a new instanze of the FlowChannel class.

Parameters:
g

Member Function Documentation

void FlowMarkt::FlowChannel::copyValues ( float[]  rawdata,
int  vtxSize,
int  offset 
) [inline]

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.
vtxSizedata gained directly from the file, without any processing. It contains all channels for all cells. Please note, there is no time information considered here.
offsetoffset of the parameter loaded into this channel
float FlowMarkt::FlowChannel::getValue ( int  vtxID ) [inline]

returns the value of the given vertex

Parameters:
vtxID
Returns:
float FlowMarkt::FlowChannel::getValue ( Vec3  pos ) [inline]

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

Parameters:
pos
Returns:
float FlowMarkt::FlowChannel::getValueNormPos ( Vec3  pos ) [inline]

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

Parameters:
pos
Returns:
float FlowMarkt::FlowChannel::getValueNormPos ( float  x,
float  y 
) [inline]

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

Parameters:
x
y
Returns:
float [] FlowMarkt::FlowChannel::sampleRegular ( int  width,
int  height 
) [inline]

Tastet den Channel regelmäßig mit der gegebenen Auflösung ab.

Parameters:
widthGewünschte horizontale Auflösung
heightGewünschte vertikale Auflösung
Returns:
Zweidimensionaler Datensatz in Form von verketteten Zeilen
void FlowMarkt::FlowChannel::setValue ( int  vtxID,
float  val 
) [inline]

sets the value of the given vertex

Parameters:
vtxID
val
void FlowMarkt::FlowChannel::writeToTexture ( Texture2DFloat  target,
MappingTypes  mapping 
) [inline]

Tastet den Channel nach dem Nyquist-Shannon-Abtasttheorem ab und schreibt die Daten des Channels Normiert nach [0,1] in die Textur. Diese Methode ist veraltet und wird durch FlowData::writeToTexture ersetzt.

Parameters:
targetDie Zieltextur
mappingWelcher Mappingtyp angewandt werden soll

Property Documentation

float FlowMarkt::FlowChannel::AbsMax [get]

returns the maximum absolut value found in the channel

float FlowMarkt::FlowChannel::Max [get]

returns the maximum value found in the channel

float FlowMarkt::FlowChannel::Min [get]

returns the minimum value found in the channel

float FlowMarkt::FlowChannel::Range [get]

returns the range = max - min


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events