#include <FlowData.h>

Public Member Functions | |
| FlowData () | |
| initializes the channel storage | |
| ~FlowData () | |
| destoys all created channels | |
| bool | loadDataset (string filename, bool bigEndian) |
| Loads a dataset, returns true if everything successful. | |
| ScalarDataT | getIsScalar (int i) |
| is dataset a scalarValue for background? | |
| int | getNumTimesteps () |
| Returns the number of timesteps. | |
| void | printData () |
| gv TEST: Write data from the channels to log-file | |
| int | createChannel (string channelName) |
| creates a new channel and returns it's address | |
| void | deleteChannel (int i) |
| deletes the channel and all it's data at given adress | |
| FlowChannel * | getChannel (int i) |
| returns a pointer to the instance of channel at given adress | |
| FlowGeometry * | getGeometry () const |
| returns a pointer to the instance of geometry | |
| int | createChannelVectorLength (int chX, int chY, int chZ=-1) |
| creates a new channel containing the geometrical information of the given dimension | |
| int | createChannelVectorLength (FlowChannel *chX, FlowChannel *chY, FlowChannel *chZ=NULL) |
| creates a new channel containing the vector lengths for the given channels | |
| void | normalizeVelocityChannels (FlowChannel *chX, FlowChannel *chY, FlowChannel *chZ=NULL) |
| normalize velocity values (called after createChannelVectorLength(...) | |
| void | normalizeVelocityChannels (int chX, int chY, int chZ=-1) |
| creates a new channel containing the vector lengths for the given channels | |
| int | getChannelCount () |
| returns number of used channels | |
| int | getScalarChannelCount () |
| returns number of scalar channels for background use | |
| int | getVelMagID () |
| returns index of geometry channel | |
| void | rescaleScalarData () |
| get dimensions of dataset -> now direct from geometry | |
Definition at line 13 of file FlowData.h.
| FlowData::FlowData | ( | ) |
initializes the channel storage
saves normalized velocity vector in 2D (z == 0) & magnitude VelocityT* velocity;
create storage for geometry
Definition at line 9 of file FlowData.cpp.
References max_channels, and NONE.
Referenced by MainWindow::openFile().
| FlowData::~FlowData | ( | ) |
destoys all created channels
delete geometry
Definition at line 23 of file FlowData.cpp.
References deleteChannel(), and max_channels.

| bool FlowData::loadDataset | ( | string | filename, | |
| bool | bigEndian | |||
| ) |
Loads a dataset, returns true if everything successful.
Definition at line 38 of file FlowData.cpp.
References FlowChannel::copyValues(), createChannel(), createChannelVectorLength(), FlowGeometry::getDimX(), FlowGeometry::getDimY(), FlowGeometry::getIsFlipped(), FlowChannel::getValue(), NORMALIZED, FlowChannel::normalizeValue(), normalizeVelocityChannels(), ORIGINAL, FlowGeometry::readFromFile(), X, Y, and Z.
Referenced by MainWindow::openFile().

| ScalarDataT FlowData::getIsScalar | ( | int | i | ) |
is dataset a scalarValue for background?
Definition at line 461 of file FlowData.cpp.
References max_channels, and NONE.
Referenced by Arrows::setActiveBackground(), and OpenGLWidget::setFlowData().
| int FlowData::getNumTimesteps | ( | ) |
| void FlowData::printData | ( | ) |
gv TEST: Write data from the channels to log-file
Definition at line 418 of file FlowData.cpp.
References FlowChannel::getValue().

| int FlowData::createChannel | ( | string | channelName | ) |
creates a new channel and returns it's address
Definition at line 483 of file FlowData.cpp.
References max_channels.
Referenced by createChannelVectorLength(), and loadDataset().
| void FlowData::deleteChannel | ( | int | i | ) |
deletes the channel and all it's data at given adress
Definition at line 518 of file FlowData.cpp.
Referenced by ~FlowData().
| FlowChannel * FlowData::getChannel | ( | int | i | ) |
returns a pointer to the instance of channel at given adress
Definition at line 537 of file FlowData.cpp.
Referenced by createChannelVectorLength(), Arrows::draw(), normalizeVelocityChannels(), Arrows::setActiveBackground(), and OpenGLWidget::setFlowData().
| FlowGeometry * FlowData::getGeometry | ( | ) | const |
returns a pointer to the instance of geometry
Definition at line 720 of file FlowData.cpp.
Referenced by OpenGLWidget::setFlowData(), Arrows::setFlowData(), and StreamLine::StreamLine().
| int FlowData::createChannelVectorLength | ( | int | chX, | |
| int | chY, | |||
| int | chZ = -1 | |||
| ) |
creates a new channel containing the geometrical information of the given dimension
creates a new channel containing the vector lengths for the given channels
Definition at line 578 of file FlowData.cpp.
References getChannel().
Referenced by loadDataset().

| int FlowData::createChannelVectorLength | ( | FlowChannel * | chX, | |
| FlowChannel * | chY, | |||
| FlowChannel * | chZ = NULL | |||
| ) |
creates a new channel containing the vector lengths for the given channels
Definition at line 554 of file FlowData.cpp.
References createChannel(), FlowGeometry::getDimX(), FlowGeometry::getDimY(), FlowChannel::getValue(), and FlowChannel::setValue().

| void FlowData::normalizeVelocityChannels | ( | FlowChannel * | chX, | |
| FlowChannel * | chY, | |||
| FlowChannel * | chZ = NULL | |||
| ) |
normalize velocity values (called after createChannelVectorLength(...)
Definition at line 592 of file FlowData.cpp.
References FlowGeometry::getDimX(), FlowGeometry::getDimY(), FlowChannel::getValue(), vec3::normalize(), FlowChannel::setValue(), X, Y, and Z.
Referenced by loadDataset(), and normalizeVelocityChannels().

| void FlowData::normalizeVelocityChannels | ( | int | chX, | |
| int | chY, | |||
| int | chZ = -1 | |||
| ) |
creates a new channel containing the vector lengths for the given channels
wrapper method (like above)
Definition at line 623 of file FlowData.cpp.
References getChannel(), and normalizeVelocityChannels().

| int FlowData::getChannelCount | ( | ) |
returns number of used channels
Definition at line 471 of file FlowData.cpp.
Referenced by Arrows::setActiveBackground(), and OpenGLWidget::setFlowData().
| int FlowData::getScalarChannelCount | ( | ) |
returns number of scalar channels for background use
does not work anymore because no VelocityT available
Definition at line 708 of file FlowData.cpp.
Referenced by MainWindow::openFile(), and OpenGLWidget::setActiveBackground().
| int FlowData::getVelMagID | ( | ) |
returns index of geometry channel
returns index of Velocity magnitude channel
Definition at line 743 of file FlowData.cpp.
| void FlowData::rescaleScalarData | ( | ) |
1.5.4