casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
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 vector< TypesupportedFormats ()
 Returns all supported export formats.
static vector< StringsupportedFormatStrings ()
static vector< TypesupportedImageFormats ()
 Returns all supported image formats.
static vector< StringsupportedImageFormatStrings ()

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 799 of file PlotOptions.h.


Member Enumeration Documentation

Whether to have high resolution or not.

Enumerator:
SCREEN 
HIGH 

Definition at line 810 of file PlotOptions.h.

Static //.

The type of file/export.

Enumerator:
JPG 
PNG 
PS 
PDF 
TEXT 
NUM_FMTS 

Definition at line 804 of file PlotOptions.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Converts to/from a Type and its String representation.

static Type casa::PlotExportFormat::exportFormat ( String  t,
bool *  ok = NULL 
) [static]

Gives/converts the standard extension for export types.

static vector<Type> casa::PlotExportFormat::supportedFormats ( ) [static]

Returns all supported export formats.

Returns all supported image formats.

static Type casa::PlotExportFormat::typeForExtension ( String  file,
bool *  ok = NULL 
) [static]

Member Data Documentation

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.


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