FlowChannel Class Reference

#include <FlowChannel.h>

Collaboration diagram for FlowChannel:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 9 of file FlowChannel.h.


Constructor & Destructor Documentation

FlowChannel::FlowChannel ( FlowGeometry g  ) 

Definition at line 82 of file FlowChannel.cpp.

References FlowGeometry::getDimX(), and FlowGeometry::getDimY().

Here is the call graph for this function:

FlowChannel::~FlowChannel (  ) 

Definition at line 95 of file FlowChannel.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

float FlowChannel::getValue ( int  vtxID  ) 

returns the value of the given vertex

Definition at line 55 of file FlowChannel.cpp.

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().

Here is the call graph for this function:

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

returns the value at given normalized position

Definition at line 70 of file FlowChannel.cpp.

References getValueNormPos().

Here is the call graph for this function:

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

returns the minimum value found in the channel

Definition at line 158 of file FlowChannel.cpp.

float FlowChannel::getMax (  ) 

returns the maximum value found in the channel

Definition at line 163 of file FlowChannel.cpp.

float FlowChannel::getRange (  ) 

returns the range = max - min

Definition at line 168 of file FlowChannel.cpp.

float * FlowChannel::getData (  )  const

Definition at line 50 of file FlowChannel.cpp.

Referenced by Texture::CreateBackground().


The documentation for this class was generated from the following files:
Generated on Mon Jan 21 14:50:26 2008 for VisLU by  doxygen 1.5.4