casa
$Rev:20696$
|
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 vector< Type > | supportedFormats () |
Returns all supported export formats. | |
static vector< String > | supportedFormatStrings () |
static vector< Type > | supportedImageFormats () |
Returns all supported image formats. | |
static 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 799 of file PlotOptions.h.
Whether to have high resolution or not.
Definition at line 810 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.
Destructor.
static String casa::PlotExportFormat::exportFormat | ( | Type | t | ) | [static] |
Converts to/from a Type and its String representation.
static Type casa::PlotExportFormat::exportFormat | ( | String | t, |
bool * | ok = NULL |
||
) | [static] |
static String casa::PlotExportFormat::extensionFor | ( | Type | t | ) | [static] |
Gives/converts the standard extension for export types.
static vector<Type> casa::PlotExportFormat::supportedFormats | ( | ) | [static] |
Returns all supported export formats.
static vector<String> casa::PlotExportFormat::supportedFormatStrings | ( | ) | [static] |
static vector<Type> casa::PlotExportFormat::supportedImageFormats | ( | ) | [static] |
Returns all supported image formats.
static vector<String> casa::PlotExportFormat::supportedImageFormatStrings | ( | ) | [static] |
static Type casa::PlotExportFormat::typeForExtension | ( | String | file, |
bool * | ok = NULL |
||
) | [static] |
Definition at line 856 of file PlotOptions.h.
Definition at line 858 of file PlotOptions.h.
Definition at line 854 of file PlotOptions.h.
Definition at line 855 of file PlotOptions.h.
Public Members.
Definition at line 853 of file PlotOptions.h.
Definition at line 857 of file PlotOptions.h.