00001 00005 class SimRes2gnuplot : public SimResFilter 00006 00007 { 00008 public: 00009 00010 SimRes2gnuplot (); 00011 ~SimRes2gnuplot () {} 00012 00013 static void gnuplot (const FieldLattice& field, const String& filename); 00014 static void gnuplot (const FieldFE& field, const String& filename); 00015 00016 static String makeCurvePlot 00017 ( 00018 const FieldLattice& field, 00019 CurvePlotFile& file, 00020 const String& plot_title, 00021 const String& name_of_field, 00022 const String& comment, 00023 bool staggered_grid = false, 00024 const Ptv(int)* end_offset = NULL 00025 ); 00026 00027 static String makeCurvePlot 00028 ( 00029 const FieldFE& field, 00030 CurvePlotFile& file, 00031 const String& plot_title, 00032 const String& fieldname, 00033 const String& comment 00034 ); 00035 00036 static String makeCurvePlot 00037 ( 00038 const FieldPiWisConst& field, 00039 CurvePlotFile& file, 00040 const String& plot_title, 00041 const String& fieldname, 00042 const String& comment 00043 ); 00044 00045 #ifdef WIN32 00046 static void plot_PS_and_GIF_4Report 00047 ( 00048 const Field& field, 00049 const int nsd, 00050 const String& filename, 00051 const String& title, 00052 const bool grid = false, 00053 const bool contour = false 00054 ); 00055 00056 static void plotPSCurves 00057 ( 00058 const String& cplotfname, 00059 const String& title, 00060 const String& curvename, 00061 const String& comment, 00062 String& psfilename, 00063 String& options, 00064 const bool bLabel=false 00065 ); 00066 #endif 00067 00068 virtual void usage (); 00069 virtual void simresHeader (PlotSpecifications& plotspec); 00070 virtual void simresFooter (PlotSpecifications& plotspec); 00071 virtual void processFormatSpecificOptions 00072 (VecSimple(String)& arguments, PlotSpecifications& plotspec); 00073 00074 virtual void exportScalarField 00075 ( 00076 Field& scalarfield, 00077 FieldInformation& fieldinfo, 00078 PlotSpecifications& plotspec 00079 ); 00080 00081 virtual void exportVectorField 00082 ( 00083 Fields& vectorfield, 00084 FieldInformation& fieldinfo, 00085 PlotSpecifications& plotspec 00086 ); 00087 }; 00088 00089