Go to the documentation of this file.00001 #ifndef FLOATDATA_H
00002 #define FLOATDATA_H
00003
00004 #include "FlowGeometry.h"
00005 #include "FlowChannel.h"
00006 #include <stdio.h>
00007 #include <iostream>
00008 #include <string>
00009
00010 using namespace std;
00011
00012 #define max_channels 16
00013
00014 class FlowData{
00015 private:
00017 bool loaded;
00018
00020 int timesteps;
00021
00023 FlowGeometry geometry;
00024
00026 bool freeChannel[max_channels];
00028 FlowChannel* channels[max_channels];
00029
00030 public:
00032 FlowData();
00034 ~FlowData();
00035
00037 bool loadDataset(string filename, bool bigEndian);
00038
00040 int getNumTimesteps();
00041
00042
00044 int createChannel();
00046 void deleteChannel(int i);
00048 FlowChannel* getChannel(int i);
00049
00050 FlowGeometry *getGeometry();
00051
00052
00054 int createChannelGeometry(int dimension);
00056 int createChannelVectorLength(int chX, int chY, int chZ = -1);
00058 int createChannelVectorLength(FlowChannel* chX, FlowChannel* chY, FlowChannel* chZ = NULL);
00059
00060 bool isLoaded();
00061
00062 int getNumUsedChannels();
00063 };
00064 #endif