AlgorithmIncrements.hGo 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.6 $ 00022 // $Date: 2004/11/24 22:45:28 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/recorder/AlgorithmIncrements.h,v $ 00024 00025 00026 // Written: fmk 00027 // Created: 01/01 00028 // Revision: A 00029 // 00030 // Description: This file contains the class definition for AlgorithmIncrements. 00031 // A AlgorithmIncrements will display the X and B in the SOE associated with the 00032 // algorithm on a record. 00033 00034 // 00035 // What: "@(#) ModelBuilder.h, revA" 00036 00037 #ifndef AlgorithmIncrements_h 00038 #define AlgorithmIncrements_h 00039 00040 #include <Recorder.h> 00041 00042 #include <fstream> 00043 using std::ofstream; 00044 00045 class EquiSolnAlgo; 00046 class Renderer; 00047 class ColorMap; 00048 class ID; 00049 class Vector; 00050 00051 class AlgorithmIncrements : public Recorder 00052 { 00053 public: 00054 AlgorithmIncrements(EquiSolnAlgo *theAlgo, 00055 const char *windowTitle, 00056 int xLoc, int yLoc, int width, int height, 00057 bool displayRecord = false, 00058 const char *fileName = 0); 00059 00060 ~AlgorithmIncrements(); 00061 00062 int plotData(const Vector &X, const Vector &B); 00063 00064 int record(int commitTag, double timeStamp); 00065 int playback(int commitTag); 00066 int restart(void); 00067 00068 protected: 00069 00070 private: 00071 ColorMap *theMap; 00072 Renderer *theRenderer; 00073 EquiSolnAlgo *theAlgo; 00074 00075 int numRecord; 00076 bool displayRecord; 00077 char *fileName; 00078 ofstream theFile; 00079 }; 00080 00081 #endif 00082 00083 00084 00085 00086 00087 00088 |