PlotExportFormat contains parameters for exporting a canvas to a file. More...
#include <PlotOptions.h>
Public Types | |
enum | Type { JPG, PNG, PS, PDF, TEXT, NUM_FMTS } |
Static //. More... | |
enum | Resolution { SCREEN, HIGH } |
Whether to have high resolution or not. More... | |
Public Member Functions | |
PlotExportFormat (Type t, const String &file) | |
Non-Static //. | |
~PlotExportFormat () | |
Destructor. | |
Static Public Member Functions | |
static String | exportFormat (Type t) |
Converts to/from a Type and its String representation. | |
static Type | exportFormat (String t, bool *ok=NULL) |
static String | extensionFor (Type t) |
Gives/converts the standard extension for export types. | |
static Type | typeForExtension (String file, bool *ok=NULL) |
static std::vector< Type > | supportedFormats () |
Returns all supported export formats. | |
static std::vector< String > | supportedFormatStrings () |
static std::vector< Type > | supportedImageFormats () |
Returns all supported image formats. | |
static std::vector< String > | supportedImageFormatStrings () |
Public Attributes | |
Type | type |
Public Members. | |
String | location |
Resolution | resolution |
int | dpi |
int | width |
int | height |
PlotExportFormat contains parameters for exporting a canvas to a file.
Definition at line 804 of file PlotOptions.h.
Whether to have high resolution or not.
Definition at line 815 of file PlotOptions.h.
casa::PlotExportFormat::PlotExportFormat | ( | Type | t, | |
const String & | file | |||
) |
Non-Static //.
Sets up a format with the given type and location. Default resolution is SCREEN; default dpi is -1 (unspecified); default width and height are -1 (unspecified). Unspecified values are left up to the plotting implementation.
casa::PlotExportFormat::~PlotExportFormat | ( | ) |
Destructor.
static Type casa::PlotExportFormat::exportFormat | ( | String | t, | |
bool * | ok = NULL | |||
) | [static] |
static String casa::PlotExportFormat::exportFormat | ( | Type | t | ) | [static] |
Converts to/from a Type and its String representation.
static String casa::PlotExportFormat::extensionFor | ( | Type | t | ) | [static] |
Gives/converts the standard extension for export types.
static std::vector<Type> casa::PlotExportFormat::supportedFormats | ( | ) | [static] |
Returns all supported export formats.
static std::vector<String> casa::PlotExportFormat::supportedFormatStrings | ( | ) | [static] |
static std::vector<Type> casa::PlotExportFormat::supportedImageFormats | ( | ) | [static] |
Returns all supported image formats.
static std::vector<String> casa::PlotExportFormat::supportedImageFormatStrings | ( | ) | [static] |
static Type casa::PlotExportFormat::typeForExtension | ( | String | file, | |
bool * | ok = NULL | |||
) | [static] |
Definition at line 861 of file PlotOptions.h.
Definition at line 863 of file PlotOptions.h.
Definition at line 859 of file PlotOptions.h.
Definition at line 860 of file PlotOptions.h.
Public Members.
Definition at line 858 of file PlotOptions.h.
Definition at line 862 of file PlotOptions.h.