00001 /*** 00002 Basic structure for list of streamlines 00003 ***/ 00004 #ifndef _TRAJECTORYLIST_H 00005 #define _TRAJECTORYLIST_H 00006 #include "dataStructure.h" 00007 #include "Trajectory.h" 00008 class TrajectoryList 00009 { 00010 public: 00011 Trajectory **trajs; //the trajectory list 00012 int ntrajs; //current number of existing trajectories 00013 int curMaxNumTrajs; //maximum number of trajectories can be stored 00014 double length; //the flow length of the trajectory 00015 TrajectoryList(int initsize); //construction 00016 ~TrajectoryList(); 00017 bool append(Trajectory *s); 00018 bool del_End() ; 00019 void copy_Elem(Trajectory *s, Trajectory *d); 00020 bool del_Node(Trajectory *s) ; 00021 bool isEmpty(); 00022 bool isFull(); 00023 bool extend(int step); 00024 void reset(); 00025 }; //end of TrajectoryList class 00026 #endif