Public Types | Public Member Functions | Properties

FlowMarkt::FlowData Class Reference

Holds data of multiple channels. More...

List of all members.

Public Types

enum  MappingTypes { LinearMinMax, LinearCentered }
 

Legt fest, wie die Daten nach [0, 1] gemappt werden sollen. LinearMinMax: Einfache Lineare Interpolation ( min -> 0, max -> 1 ) LinearCentered: Lineare Interpolation, wobei 0 -> 0.5 und ( min -> 0 oder max -> 1 )

More...

Public Member Functions

 FlowData ()
 Initializes a new instanze of the FlowData class.
bool loadDataset (string filename)
 Loads a dataset, returns true if everything successful. You have to specify the byte order used in the data.
int createChannel ()
 creates a new channel and returns it's address in the channels array (line 28)
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. This is the only way to access the channels storage (at line 28)
int createChannelGeometry (int dimension)
 creates a new channel containing the geometrical information of the given dimension (x = 0, y = 1). Returns address of the created channel in the channels array (line 28)
int createChannelVectorLength (int chX, int chY, int chZ)
 creates a new channel containing the vector lengths for the given channels (channels given by IDs). Returns address of the created channel in the channels array (line 28)
int createChannelVectorLength (FlowChannel chX, FlowChannel chY, FlowChannel chZ)
 creates a new channel containing the vector lengths for the given channels (channels given by reference). Returns address of the created channel
void writeToTexture (int[] channels, Texture2D target, int maxSize, MappingTypes mapping)
 Tastet eines oder mehrere Kanäle regelmäßig ab, ohne dass keine Dimension den Parameter maxSize übertrifft und speichert das Ergebnis nach entsprechenden Mapping in eine Textur.
int getChannelCount ()
 Gibt an, wieviele Channels verfügbar sind.

Properties

int NumTimesteps [get]
 Returns the number of timesteps.

Detailed Description

Holds data of multiple channels.


Member Enumeration Documentation

Legt fest, wie die Daten nach [0, 1] gemappt werden sollen. LinearMinMax: Einfache Lineare Interpolation ( min -> 0, max -> 1 ) LinearCentered: Lineare Interpolation, wobei 0 -> 0.5 und ( min -> 0 oder max -> 1 )


Constructor & Destructor Documentation

FlowMarkt::FlowData::FlowData (  ) [inline]

Initializes a new instanze of the FlowData class.


Member Function Documentation

int FlowMarkt::FlowData::createChannel (  ) [inline]

creates a new channel and returns it's address in the channels array (line 28)

Returns:
int FlowMarkt::FlowData::createChannelGeometry ( int  dimension ) [inline]

creates a new channel containing the geometrical information of the given dimension (x = 0, y = 1). Returns address of the created channel in the channels array (line 28)

Parameters:
dimension
Returns:
int FlowMarkt::FlowData::createChannelVectorLength ( int  chX,
int  chY,
int  chZ 
) [inline]

creates a new channel containing the vector lengths for the given channels (channels given by IDs). Returns address of the created channel in the channels array (line 28)

Parameters:
chX
chY
chZ
Returns:
int FlowMarkt::FlowData::createChannelVectorLength ( FlowChannel  chX,
FlowChannel  chY,
FlowChannel  chZ 
) [inline]

creates a new channel containing the vector lengths for the given channels (channels given by reference). Returns address of the created channel

Parameters:
chX
chY
chZ
Returns:
void FlowMarkt::FlowData::deleteChannel ( int  i ) [inline]

deletes the channel and all it's data at given adress

Parameters:
i
FlowChannel FlowMarkt::FlowData::getChannel ( int  i ) [inline]

returns a pointer to the instance of channel at given adress. This is the only way to access the channels storage (at line 28)

Parameters:
i
Returns:
int FlowMarkt::FlowData::getChannelCount (  ) [inline]

Gibt an, wieviele Channels verfügbar sind.

Returns:
Anzahl an Channels, die geladen wurden
bool FlowMarkt::FlowData::loadDataset ( string  filename ) [inline]

Loads a dataset, returns true if everything successful. You have to specify the byte order used in the data.

Parameters:
filename
Returns:
void FlowMarkt::FlowData::writeToTexture ( int[]  channels,
Texture2D  target,
int  maxSize,
MappingTypes  mapping 
) [inline]

Tastet eines oder mehrere Kanäle regelmäßig ab, ohne dass keine Dimension den Parameter maxSize übertrifft und speichert das Ergebnis nach entsprechenden Mapping in eine Textur.

Parameters:
channelsMenge an Channels die abgearbeitet werden sollen
targetGibt an, wo Daten gesetzt werden sollen
maxSizeStellt sicher, dass die Texturgröße nicht ausartet
mappingLeft fest, wie die Daten gemappt werden sollen

Property Documentation

int FlowMarkt::FlowData::NumTimesteps [get]

Returns the number of timesteps.


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