26 #ifndef GRALE_IMAGEPLANEGNUPLOTWRITER_H
28 #define GRALE_IMAGEPLANEGNUPLOTWRITER_H
30 #include "graleconfig.h"
31 #include "imageplanewriter.h"
39 class GRALE_IMPORTEXPORT ImagePlaneGnuPlotWriter :
public ImagePlaneWriter
42 ImagePlaneGnuPlotWriter(
const std::string &fname,
bool images,
bool sources,
bool criticallines,
43 bool caustics,
double scale = 1.0,
bool flipX =
false) { filename = fname; im = images; srcs = sources; crit = criticallines; caust = caustics; ImagePlaneGnuPlotWriter::scale = scale; Xlabel =
"X"; Ylabel =
"Y"; grid =
false; fontsize = 30; col =
false; m_flipX = flipX; }
44 ~ImagePlaneGnuPlotWriter() { }
45 void setXLabel(
const std::string &s) { Xlabel = s; }
46 void setYLabel(
const std::string &s) { Ylabel = s; }
47 void setGrid(
bool g) { grid = g; }
48 void setFontSize(
int s) { fontsize = s; }
49 void setColor(
bool c) { col = c; }
50 bool write(ImagePlane *p,
int subSamples);
53 bool im,srcs,crit,caust;
55 std::string Xlabel,Ylabel;
63 #endif // GRALE_IMAGEPLANEGNUPLOTWRITER_H