00001 #ifndef WPLOT_H
00002 #define WPLOT_H
00003
00004 #include "general.h"
00011 class WPlot{
00012 public:
00013 WPlot();
00014 ~WPlot();
00015
00016
00017
00018 void setWPlotGnuplot(char *fileNameCfg);
00019
00020 void splotFieldGnuplot(Array2D& A, char* title);
00021 void splotFieldGnuplot(Array2D& A, char* title, char *grfFileNameOutput);
00022 void splotFieldGnuplot( Array2D& A, char* title, char* grfFileName,
00023 char *xLabel, char *yLabel,
00024 double xMin, double xMax,
00025 double yMin, double yMax,
00026 double zMin, double zMax);
00027
00028
00029 void setRange(double xMin, double xMax, double yMin,
00030 double yMax,double zMin,double zMax);
00031
00032 protected:
00033
00034 bool _isSetPlot, _fixZRange;
00035
00036 char _title[500], _xLabel[250], _yLabel[250],
00037 _textgnuplotOptions[100],
00038 _textPalette[500],
00039 _textTerminalOptions[500],
00040 _textSplotOptions[250],
00041 _textSplotDesign[250],
00042
00043 _grfFileNameOutput[250],
00044 _grfFileExtName[5];
00045
00046 int _gnuplotOption,_terminalOption, _screenNumber,
00047 _paletteOption, _splotOption, _splotDesignOption;
00048
00049
00050 double _xMin, _xMax,
00051 _yMin, _yMax,
00052 _zMin, _zMax;
00053
00054
00055
00056 void setPaletteGnuplot(int paletteOption);
00057 void setTerminalGnuplot(int gnuplotOption,int terminalOption);
00058 void setSplotGnuplot(int splotOption, int splotDesignOption);
00059 };
00060
00061 #endif