VisLU Flow 0.1
|
00001 #ifndef TIMESTEP_H 00002 #define TIMESTEP_H 00003 00004 #include "FlowChannel.h" 00005 00006 #include <vector> 00007 00008 //maximum nuber of channels. For VisLU data sets we have only 5 anyways 00009 #define max_channels 16 00010 00011 class Timestep 00012 { 00013 friend class FlowData; 00014 00015 public: 00016 Timestep(FlowGeometry* g); 00017 ~Timestep(); 00018 00019 int createChannel(); 00020 void deleteChannel(int i); 00021 00022 int createChannelGeometry(int dimension); 00023 00024 int createChannelVectorLength(FlowChannel* chX, FlowChannel* chY, FlowChannel* chZ = 0); 00025 int createChannelVectorLength(int chX, int chY, int chZ); 00026 00028 FlowChannel* getChannel(int i) { return this->channels[i]; } 00029 00030 FlowGeometry* getGeometry() { return this->geometry; } 00031 private: 00032 FlowGeometry* geometry; 00033 00035 bool freeChannel[max_channels]; 00037 FlowChannel* channels[max_channels]; 00038 }; 00039 00040 #endif