casa::PlotExportFormat Class Reference

PlotExportFormat contains parameters for exporting a canvas to a file. More...

#include <PlotOptions.h>

List of all members.

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< TypesupportedFormats ()
 Returns all supported export formats.
static std::vector< String > supportedFormatStrings ()
static std::vector< TypesupportedImageFormats ()
 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

Detailed Description

PlotExportFormat contains parameters for exporting a canvas to a file.

Definition at line 804 of file PlotOptions.h.


Member Enumeration Documentation

Whether to have high resolution or not.

Enumerator:
SCREEN 
HIGH 

Definition at line 815 of file PlotOptions.h.

Static //.

The type of file/export.

Enumerator:
JPG 
PNG 
PS 
PDF 
TEXT 
NUM_FMTS 

Definition at line 809 of file PlotOptions.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Member Data Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1