VisLU Flow 0.1

src/FlowData.h

00001 #ifndef FLOATDATA_H
00002 #define FLOATDATA_H
00003 
00004 #include "FlowGeometry.h"
00005 #include "FlowChannel.h"
00006 #include "Timestep.h"
00007 
00008 #include <stdio.h>
00009 #include <iostream>
00010 #include <string>
00011 #include <vector>
00012 using namespace std;
00013 
00015 class FlowData{
00016 private:
00018     bool loaded;
00019    
00020 
00021 
00023     FlowGeometry geometry;
00024     
00025     vector<Timestep*> timesteps_list;
00026 
00027     bool loadTimestep(string filename,bool bigEndian, int step);
00028 
00029 
00030 
00031 public:
00032     //Number of channels
00033     int channels;
00035     int timesteps;
00036     //get a Timestep
00037     Timestep* getTimestep(int step) {
00038         return this->timesteps_list[step];
00039     }
00041     FlowData();
00043     ~FlowData();
00044 
00046     bool loadDataset(string filename, bool bigEndian);
00047     
00049     int getNumTimesteps();
00050 
00051     FlowGeometry& getGeometry() { return this->geometry; }
00052 
00053     int getDimX() { return this->geometry.getDimX(); }
00054 
00055     int getDimY() { return this->geometry.getDimY(); }
00056       
00057  };
00058 #endif
 All Classes Functions Variables