00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef FilePlotter_h
00036 #define FilePlotter_h
00037
00038 #include <Recorder.h>
00039
00040 class Renderer;
00041 class ColorMap;
00042 class ID;
00043
00044 class FilePlotter : public Recorder
00045 {
00046 public:
00047 FilePlotter(const char *fileName,
00048 const char *windowTitle,
00049 int xLoc, int yLoc, int width, int height, double dT);
00050
00051 FilePlotter(const char *fileName1,
00052 const char *fileName2,
00053 const char *windowTitle,
00054 int xLoc, int yLoc, int width, int height, double dT);
00055
00056 ~FilePlotter();
00057
00058 int plotFile();
00059 int plotFiles();
00060
00061 int record(int commitTag, double timeStamp);
00062 int playback(int commitTag);
00063 int restart(void);
00064
00065 int setFile(char *newFile);
00066 int setCol(const ID &theCols);
00067
00068 protected:
00069
00070 private:
00071 ColorMap *theMap;
00072 Renderer *theRenderer;
00073 ID *cols;
00074 char *fileName1;
00075 char *fileName2;
00076
00077 double deltaT;
00078 double nextTimeStampToRecord;
00079
00080 Vector *data1a;
00081 Vector *data1b;
00082 Vector *data2a;
00083 Vector *data2b;
00084 };
00085
00086 #endif
00087
00088
00089
00090
00091
00092
00093