55 QPPlotter* grabPlotter);
62 std::vector<QPExportCanvas*> &qcanvases,
67 std::vector<QPExportCanvas*> &qcanvases,
68 int width,
int height,
69 int rowIndex,
int columnIndex,
74 std::vector<QPExportCanvas*> &qcanvases,
75 int width,
int height,
76 int rowCount,
int colCount,
81 std::vector<QPExportCanvas*> &qcanvases,
83 QPPlotter* grabPlotter);
85 static int findAxisHeight( std::vector<QPExportCanvas*> &qcanvases );
86 static int findAxisWidth( std::vector<QPExportCanvas*> &qcanvases );
87 static int getCanvasCount( std::vector<QPExportCanvas*> &qcanvases );
88 static void getAxesCount(std::vector<QPExportCanvas*> &qcanvases,
static bool exportPostscript(const PlotExportFormat &format, std::vector< QPExportCanvas * > &qcanvases, QPExportCanvas *grabCanvas, QPPlotter *grabPlotter)
static const casacore::String EXPORT_NAME
static bool exportToImageFile(const PlotExportFormat &format, std::vector< QPExportCanvas * > &qcanvases, QPExportCanvas *grabCanvas, QPPlotter *grabPlotter)
static int getCanvasCount(std::vector< QPExportCanvas * > &qcanvases)
static bool exportCanvases(std::vector< QPExportCanvas * > &canvases, const PlotExportFormat &format, PlotCanvas *grabCanvas, QPPlotter *grabPlotter)
Exports a collection of canvases to the given format.
static void findGridProperties(QPExportCanvas *grabCanvas, QPPlotter *grabPlotter, casacore::Int &width, casacore::Int &height, casacore::Int &gridRows, casacore::Int &gridCols)
static QImage produceScreenImage(const PlotExportFormat &format, std::vector< QPExportCanvas * > &qcanvases, int width, int height, int rowCount, int colCount, bool &wasCanceled)
static int findAxisHeight(std::vector< QPExportCanvas * > &qcanvases)
static void getAxesCount(std::vector< QPExportCanvas * > &qcanvases, casacore::Int &externalX, casacore::Int &externalY)
Interface implemented by classes that can export their draw area (QPAxis & QPCanvas).
static void findYAxisSecondRow(casacore::Int numY, casacore::Bool isLeftAxis, casacore::Bool &left, casacore::Bool &right)
static bool exportCanvas(PlotCanvas *canvas, const PlotExportFormat &format)
Exports the given canvas to the given format.
bool Bool
Define the standard types used by Casacore.
Utility class for exporting plots.
static const casacore::String CLASS_NAME
PlotCanvas is an area for different PlotItems to be attached and drawn.
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of but is it too vague to be useful Since the interface is meant to be a simple plotter
String: the storage and methods of handling collections of characters.
static bool exportPlotter(QPPlotter *plotter, const PlotExportFormat &format)
Exports the given plotter to the given format.
static int findAxisWidth(std::vector< QPExportCanvas * > &qcanvases)
static void findXAxisLocations(casacore::Int numX, casacore::Bool vertical, casacore::Bool &top, casacore::Bool &bottom)
static QImage produceHighResImage(const PlotExportFormat &format, std::vector< QPExportCanvas * > &qcanvases, int width, int height, int rowIndex, int columnIndex, bool &wasCanceled)
static void findYAxisLocations(casacore::Int numY, casacore::Bool vertical, casacore::Bool &left, casacore::Bool &right)