FlowData Class Reference

#include <FlowData.h>

List of all members.

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.
int getNumTimesteps ()
 Returns the number of timesteps.
int createChannel ()
 creates a new channel and returns it's address
void deleteChannel (int i)
 deletes the channel and all it's data at given adress
FlowChannelgetChannel (int i)
 returns a pointer to the instance of channel at given adress
int getNumChannels ()
int createChannelGeometry (int dimension)
 creates a new channel containing the geometrical information of the given dimension
int createChannelVectorLength (int chX, int chY, int chZ=-1)
 creates a new channel containing the vector lengths for the given channels
int createChannelVectorLength (FlowChannel *chX, FlowChannel *chY, FlowChannel *chZ=NULL)
 creates a new channel containing the vector lengths for the given channels

Public Attributes

FlowGeometry geometry
 Stores the underlying geometry.

Private Attributes

bool loaded
 Is there any data loaded?
int timesteps
 Number of timesteps.
bool freeChannel [max_channels]
 is the channel free?
FlowChannelchannels [max_channels]
 Stores the values of data channels for one time step. For time-dependent data, the best solution is to create a separate class handling channels in one timestep and to instanciate this class for all timesteps.


Constructor & Destructor Documentation

FlowData::FlowData (  ) 

initializes the channel storage

FlowData::~FlowData (  ) 

destoys all created channels


Member Function Documentation

bool FlowData::loadDataset ( string  filename,
bool  bigEndian 
)

Loads a dataset, returns true if everything successful.

int FlowData::getNumTimesteps (  ) 

Returns the number of timesteps.

int FlowData::createChannel (  ) 

creates a new channel and returns it's address

void FlowData::deleteChannel ( int  i  ) 

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

FlowChannel * FlowData::getChannel ( int  i  ) 

returns a pointer to the instance of channel at given adress

int FlowData::getNumChannels (  ) 

int FlowData::createChannelGeometry ( int  dimension  ) 

creates a new channel containing the geometrical information of the given dimension

int FlowData::createChannelVectorLength ( int  chX,
int  chY,
int  chZ = -1 
)

creates a new channel containing the vector lengths for the given channels

int FlowData::createChannelVectorLength ( FlowChannel chX,
FlowChannel chY,
FlowChannel chZ = NULL 
)

creates a new channel containing the vector lengths for the given channels


Member Data Documentation

bool FlowData::loaded [private]

Is there any data loaded?

int FlowData::timesteps [private]

Number of timesteps.

bool FlowData::freeChannel[max_channels] [private]

is the channel free?

FlowChannel* FlowData::channels[max_channels] [private]

Stores the values of data channels for one time step. For time-dependent data, the best solution is to create a separate class handling channels in one timestep and to instanciate this class for all timesteps.

FlowGeometry FlowData::geometry

Stores the underlying geometry.


The documentation for this class was generated from the following files:
Generated on Sun Jan 20 16:06:34 2008 for Flow Visualisation by  doxygen 1.5.4