FilePlotter.h

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.8 $
00022 // $Date: 2005/03/18 22:10:19 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/recorder/FilePlotter.h,v $
00024                                                                         
00025 // Written: fmk 
00026 // Created: 11/99
00027 // Revision: A
00028 //
00029 // Description: This file contains the class definition for FilePlotter.
00030 // A FilePlotter will create a line graph using xy points found in a file.
00031 
00032 //
00033 // What: "@(#) ModelBuilder.h, revA"
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 

Generated on Mon Oct 23 15:05:24 2006 for OpenSees by doxygen 1.5.0