26 #ifndef GRALE_IMAGEPLANEPNGWRITER_H
28 #define GRALE_IMAGEPLANEPNGWRITER_H
30 #include "graleconfig.h"
32 #ifdef GRALECONFIG_SUPPORT_QT4
34 #include "imageplanewriter.h"
43 class GRALE_IMPORTEXPORT ImagePlanePNGWriter :
public ImagePlaneWriter
46 ImagePlanePNGWriter(
const std::string &fname,
bool images,
bool sources,
bool criticallines,
bool caustics) { im = images; srcs = sources; crit = criticallines; caust = caustics; filename = fname; magnify =
true; sourcergb =
true; sourceR = 0; sourceG = 32768; sourceB = 0; linewidth = 3; critR = 65535; critG = 0; critB = 0; caustR = 0; caustG = 0; caustB = 65535; }
47 void setMagnify(
bool m) { magnify = m; }
48 void setSourceRGB(
int r,
int g,
int b) { sourceR = r; sourceG = g; sourceB = b; sourcergb =
true; }
49 void setSourceDim(
double d = 2.0L) { sourcedim = d; sourcergb =
false; }
50 bool write(ImagePlane *p,
int subSamples);
51 void setLineWidth(
int lw) { linewidth = lw; }
52 void setCriticalLineRGB(
int r,
int g,
int b) { critR = r; critG = g; critB = b; }
53 void setCausticRGB(
int r,
int g,
int b) { caustR = r; caustG = g; caustB = b; }
56 bool im,srcs,crit,caust;
60 int sourceR,sourceG,sourceB;
61 int critR,critG,critB;
62 int caustR,caustG,caustB;
68 #endif // GRALECONFIG_SUPPORT_QT4
70 #endif // GRALE_IMAGEPLANEPNGWRITER_H