00001 #ifndef FLOATDATA_H
00002 #define FLOATDATA_H
00003
00004 #include "FlowGeometry.h"
00005 #include "FlowChannel.h"
00006 #include "TimeChannel.h"
00007
00008 #include <stdio.h>
00009 #include <iostream>
00010 #include <string>
00011 #include <vector>
00012
00013 using namespace std;
00014
00016 class FlowData
00017 {
00018 private:
00020 bool loaded;
00021
00023 int numChannels;
00024
00026 int timesteps;
00027
00029 FlowGeometry geometry;
00030
00031 vector<TimeChannel*> timeChannels;
00032
00033 bool loadTimestep(string filename, int i, bool bigEndian);
00034
00035 public:
00037 FlowData();
00039 ~FlowData();
00040
00041 FlowGeometry& getGeometry() { return this->geometry; };
00042
00044 int getChannelsNum() { return this->numChannels; };
00045
00047 int getDimX() { return this->geometry.getDimX(); };
00049 int getDimY() { return this->geometry.getDimY(); };
00050
00052 bool loadDataset(string filename, bool bigEndian);
00053
00055 int getNumTimesteps() { return this->timesteps; };
00056
00057 TimeChannel* getTimeChannel(int i) { return this->timeChannels[i]; };
00058 };
00059 #endif