casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
casa::QPExporter Class Reference

Utility class for exporting plots. More...

#include <QPExporter.h>

Public Member Functions

virtual ~QPExporter ()
 

Static Public Member Functions

static bool exportCanvas (PlotCanvas *canvas, const PlotExportFormat &format)
 Exports the given canvas to the given format. More...
 
static bool exportPlotter (QPPlotter *plotter, const PlotExportFormat &format)
 Exports the given plotter to the given format. More...
 
static bool exportCanvases (std::vector< QPExportCanvas * > &canvases, const PlotExportFormat &format, PlotCanvas *grabCanvas, QPPlotter *grabPlotter)
 Exports a collection of canvases to the given format. More...
 

Private Member Functions

 QPExporter ()
 

Static Private Member Functions

static bool exportPostscript (const PlotExportFormat &format, std::vector< QPExportCanvas * > &qcanvases, QPExportCanvas *grabCanvas, QPPlotter *grabPlotter)
 
static QImage produceHighResImage (const PlotExportFormat &format, std::vector< QPExportCanvas * > &qcanvases, int width, int height, int rowIndex, int columnIndex, bool &wasCanceled)
 
static QImage produceScreenImage (const PlotExportFormat &format, std::vector< QPExportCanvas * > &qcanvases, int width, int height, int rowCount, int colCount, bool &wasCanceled)
 
static bool exportToImageFile (const PlotExportFormat &format, std::vector< QPExportCanvas * > &qcanvases, QPExportCanvas *grabCanvas, QPPlotter *grabPlotter)
 
static int findAxisHeight (std::vector< QPExportCanvas * > &qcanvases)
 
static int findAxisWidth (std::vector< QPExportCanvas * > &qcanvases)
 
static int getCanvasCount (std::vector< QPExportCanvas * > &qcanvases)
 
static void getAxesCount (std::vector< QPExportCanvas * > &qcanvases, casacore::Int &externalX, casacore::Int &externalY)
 
static void findGridProperties (QPExportCanvas *grabCanvas, QPPlotter *grabPlotter, casacore::Int &width, casacore::Int &height, casacore::Int &gridRows, casacore::Int &gridCols)
 
static void findXAxisLocations (casacore::Int numX, casacore::Bool vertical, casacore::Bool &top, casacore::Bool &bottom)
 
static void findYAxisLocations (casacore::Int numY, casacore::Bool vertical, casacore::Bool &left, casacore::Bool &right)
 
static void findYAxisSecondRow (casacore::Int numY, casacore::Bool isLeftAxis, casacore::Bool &left, casacore::Bool &right)
 
static void findYAxisSecondRow (casacore::Int numY, casacore::Int nCols, std::vector< QPExportCanvas * > &qcanvases, casacore::Bool &left, casacore::Bool &right)
 

Static Private Attributes

static const casacore::String CLASS_NAME
 
static const casacore::String EXPORT_NAME
 

Detailed Description

Utility class for exporting plots.

Definition at line 42 of file QPExporter.h.

Constructor & Destructor Documentation

virtual casa::QPExporter::~QPExporter ( )
virtual
casa::QPExporter::QPExporter ( )
private

Member Function Documentation

static bool casa::QPExporter::exportCanvas ( PlotCanvas canvas,
const PlotExportFormat format 
)
static

Exports the given canvas to the given format.

static bool casa::QPExporter::exportCanvases ( std::vector< QPExportCanvas * > &  canvases,
const PlotExportFormat format,
PlotCanvas grabCanvas,
QPPlotter *  grabPlotter 
)
static

Exports a collection of canvases to the given format.

static bool casa::QPExporter::exportPlotter ( QPPlotter *  plotter,
const PlotExportFormat format 
)
static

Exports the given plotter to the given format.

static bool casa::QPExporter::exportPostscript ( const PlotExportFormat format,
std::vector< QPExportCanvas * > &  qcanvases,
QPExportCanvas grabCanvas,
QPPlotter *  grabPlotter 
)
staticprivate
static bool casa::QPExporter::exportToImageFile ( const PlotExportFormat format,
std::vector< QPExportCanvas * > &  qcanvases,
QPExportCanvas grabCanvas,
QPPlotter *  grabPlotter 
)
staticprivate
static int casa::QPExporter::findAxisHeight ( std::vector< QPExportCanvas * > &  qcanvases)
staticprivate
static int casa::QPExporter::findAxisWidth ( std::vector< QPExportCanvas * > &  qcanvases)
staticprivate
static void casa::QPExporter::findGridProperties ( QPExportCanvas grabCanvas,
QPPlotter *  grabPlotter,
casacore::Int width,
casacore::Int height,
casacore::Int gridRows,
casacore::Int gridCols 
)
staticprivate
static void casa::QPExporter::findXAxisLocations ( casacore::Int  numX,
casacore::Bool  vertical,
casacore::Bool top,
casacore::Bool bottom 
)
staticprivate
static void casa::QPExporter::findYAxisLocations ( casacore::Int  numY,
casacore::Bool  vertical,
casacore::Bool left,
casacore::Bool right 
)
staticprivate
static void casa::QPExporter::findYAxisSecondRow ( casacore::Int  numY,
casacore::Bool  isLeftAxis,
casacore::Bool left,
casacore::Bool right 
)
staticprivate
static void casa::QPExporter::findYAxisSecondRow ( casacore::Int  numY,
casacore::Int  nCols,
std::vector< QPExportCanvas * > &  qcanvases,
casacore::Bool left,
casacore::Bool right 
)
staticprivate
static void casa::QPExporter::getAxesCount ( std::vector< QPExportCanvas * > &  qcanvases,
casacore::Int externalX,
casacore::Int externalY 
)
staticprivate
static int casa::QPExporter::getCanvasCount ( std::vector< QPExportCanvas * > &  qcanvases)
staticprivate
static QImage casa::QPExporter::produceHighResImage ( const PlotExportFormat format,
std::vector< QPExportCanvas * > &  qcanvases,
int  width,
int  height,
int  rowIndex,
int  columnIndex,
bool &  wasCanceled 
)
staticprivate
static QImage casa::QPExporter::produceScreenImage ( const PlotExportFormat format,
std::vector< QPExportCanvas * > &  qcanvases,
int  width,
int  height,
int  rowCount,
int  colCount,
bool &  wasCanceled 
)
staticprivate

Member Data Documentation

const casacore::String casa::QPExporter::CLASS_NAME
staticprivate

Definition at line 98 of file QPExporter.h.

const casacore::String casa::QPExporter::EXPORT_NAME
staticprivate

Definition at line 99 of file QPExporter.h.


The documentation for this class was generated from the following file: