00001 #ifndef TIMECHANNEL_H
00002 #define TIMECHANNEL_H
00003
00004 #include "FlowChannel.h"
00005
00006 #include <vector>
00007
00008 using namespace std;
00009
00010
00011 #define max_channels 16
00012
00014 class TimeChannel
00015 {
00016 friend class FlowData;
00017
00018 public:
00019 TimeChannel(FlowGeometry* g);
00020 ~TimeChannel();
00021
00022 int createChannel();
00023 void deleteChannel(int i);
00024
00025 int createChannelGeometry(int dimension);
00026
00027 int createChannelVectorLength(FlowChannel* chX, FlowChannel* chY, FlowChannel* chZ = 0);
00028 int createChannelVectorLength(int chX, int chY, int chZ);
00029
00031 FlowChannel* getChannel(int i) { return this->channels[i]; };
00032
00033 private:
00034 FlowGeometry* geometry;
00035
00037 bool freeChannel[max_channels];
00039 FlowChannel* channels[max_channels];
00040 };
00041
00042 #endif