Overture  Version 25
ShowFilePlotter.h
Go to the documentation of this file.
1 #ifndef SHOW_FILE_PLOTTER_H
2 #define SHOW_FILE_PLOTTER_H "ShowFilePlotter.h"
3 
4 // ********************************************************
5 // This class is used to plot results found in files.
6 // This class is used by the plotStuff program
7 // ********************************************************
8 
10 #include "ShowFileReader.h"
11 #include "PlotStuff.h"
12 #define KK_DEBUG
13 #include "DBase.hh"
14 using namespace DBase;
15 
17 {
18 public:
19 ShowFilePlotter(const aString & nameOfShowFile, GenericGraphicsInterface & ps );
21 
22 int plot();
23 
24 // static int
25 // buildMainMenu( aString *menu0,
26 // aString *&menu,
27 // RealGridCollectionFunction & u,
28 // aString *sequenceName,
29 // const int & numberOfSolutions,
30 // const int & numberOfComponents,
31 // const int & numberOfSequences,
32 // int & chooseAComponentMenuItem,
33 // int & chooseASolutionMenuItem,
34 // int & numberOfSolutionMenuItems,
35 // int & chooseASequenceMenuItem,
36 // int & numberOfSequenceMenuItems,
37 // const int & maxMenuSolutions,
38 // const int & maximumNumberOfSolutionsInTheMenu,
39 // int & solutionIncrement,
40 // const int & maxMenuSequences,
41 // const int & maximumNumberOfSequencesInTheMenu,
42 // int & sequenceIncrement );
43 
44 // static int
45 // buildPlotStuffDialog(ShowFileReader & showFileReader, DialogData & dialog, GenericGraphicsInterface & ps,
46 // realCompositeGridFunction & u);
47 
48 // int
49 // updatePlotStuffDialog(ShowFileReader & showFileReader, DialogData & dialog, GenericGraphicsInterface & ps,
50 // realCompositeGridFunction & u);
51 
52 protected:
53 
54 int buildPlotStuffDialog(DialogData & dialog, realCompositeGridFunction & u0, const int cfs);
55 
56 int getHeaderComments( int cfs );
57 
58 int plotAll(DialogData & dialog);
59 
60 bool setFrameSeriesTitles(int cfs );
61 
62 int setPlotTitles(int cfs, bool useFrameSeriesTitles=true);
63 
64 void setSensitivity( GUIState & dialog, bool trueOrFalse );
65 
66 int updatePlotStuffDialog(DialogData & dialog, realCompositeGridFunction & u0, const int component, const int cfs);
67 
68 
72 
75 int numberOfMovieFrames; // number of frames to plot for a movie
76 int frameStride; // stride when sequencing through the frames
77 aString movieFileName; // base name for movie ppm's
78 bool saveMovieFiles; // if true save movie files when making a movie
79 
83 
87 
88 int *component;
91 
97 
98 // The dbase holds the forcing regions and other parameters for each frame series
99 mutable DataBase *dbaseArray;
100 };
101 
102 
103 #endif