casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::SimplePlotter Class Reference

SimplePlotter is a concrete class that uses the abstract plotting classes to perform common tasks. More...

#include <SimplePlotter.h>

List of all members.

Public Member Functions

 SimplePlotter (PlotFactoryPtr factory)
 Constructor that takes a factory to build plotting objects.
 ~SimplePlotter ()
 Destructor.
PlotFactoryPtr getFactory ()
 Accessor methods.
PlotterPtr getPlotter ()
 Returns the Plotter.
PlotCanvasPtr getCanvas ()
 Returns the PlotCanvas.
PlotLinePtr getLine ()
 Returns the current PlotLine used to draw the plots.
PlotSymbolPtr getSymbol ()
 Returns the current PlotSymbol used for the plots and points.
PlotAreaFillPtr getAreaFill ()
 Returns the current PlotAreaFill used for shapes, histograms, etc.
int execLoop ()
 Execution methods.
void holdDrawing ()
 Holds/Releases drawing on the canvas.
void releaseDrawing ()
void setWindowTitle (const String &windowTitle)
 Plotter customization.
void setCanvasTitle (const String &canvasTitle)
 Sets the title of the canvas to the given.
void setAxesLabels (const String &xLabel, const String &yLabel)
 Sets the X_BOTTOM and Y_LEFT axes labels to the given.
void showCartesianAxes (bool show=true)
 Show/hide Cartesian axes.
void setXAxisRange (double from, double to)
 Implies setAxesAutoRescale(false)
void setYAxisRange (double from, double to)
 Implies setAxesAutoRescale(false)
void setAxesAutoRescale (bool on=true)
 When future items are added to the canvas, automatically rescale the axes to show all items.
void rescaleAxes ()
 Automatically rescale the axes to show all items on the canvas.
void showLines (bool showLines=true)
 Plot customization.
void showSymbols (bool showSymbols=true)
 Turns symbols on or off for future plots and points.
void setLine (const String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
 Set the line for future plots to the given characteristics.
void setSymbol (PlotSymbol::Symbol symbol, const String &color="blue", double size=5, bool outline=true)
 Set the symbol for future plots and points to the given characteristics.
void setAreaFill (const String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL)
 Set the area fill for future histograms, shapes, etc.
ScatterPlotPtr plotxy (double *&x, double *&y, unsigned int n, bool overplot=true)
 Plotting methods.
ScatterPlotPtr plotxy (float *&x, float *&y, unsigned int n, bool overplot=true)
ScatterPlotPtr plotxy (int *&x, int *&y, unsigned int n, bool overplot=true)
ScatterPlotPtr plotxy (Vector< double > &x, Vector< double > &y, bool overplot=true)
ScatterPlotPtr plotxy (Vector< float > &x, Vector< float > &y, bool overplot=true)
ScatterPlotPtr plotxy (Vector< int > &x, Vector< int > &y, bool overplot=true)
ScatterPlotPtr plotxy (PlotPointDataPtr data, bool overplot=true)
ScatterPlotPtr ploty (double *&y, unsigned int n, bool overplot=true)
ScatterPlotPtr ploty (float *&y, unsigned int n, bool overplot=true)
ScatterPlotPtr ploty (int *&y, unsigned int n, bool overplot=true)
ScatterPlotPtr ploty (Vector< double > &y, bool overplot=true)
ScatterPlotPtr ploty (Vector< float > &y, bool overplot=true)
ScatterPlotPtr ploty (Vector< int > &y, bool overplot=true)
ScatterPlotPtr ploty (PlotPointDataPtr data, bool overplot=true)
BarPlotPtr barPlot (double *&x, double *&y, unsigned int n, bool overplot=false)
 Display a bar plot for the given data, using the current line and area fill.
BarPlotPtr barPlot (float *&x, float *&y, unsigned int n, bool overplot=false)
BarPlotPtr barPlot (int *&x, int *&y, unsigned int n, bool overplot=false)
BarPlotPtr barPlot (Vector< double > &x, Vector< double > &y, bool overplot=false)
BarPlotPtr barPlot (Vector< float > &x, Vector< float > &y, bool overplot=false)
BarPlotPtr barPlot (Vector< int > &x, Vector< int > &y, bool overplot=false)
BarPlotPtr barPlot (PlotPointDataPtr data, bool overplot=false)
BarPlotPtr histogramPlot (double *&data, unsigned int n, unsigned int numBins, bool overplot=false)
 Display a histogram for the given data in the given number of bins, using the current line and area fill.
BarPlotPtr histogramPlot (float *&data, unsigned int n, unsigned int numBins, bool overplot=false)
BarPlotPtr histogramPlot (int *&data, unsigned int n, unsigned int numBins, bool overplot=false)
BarPlotPtr histogramPlot (Vector< double > &data, unsigned int numBins, bool overplot=false)
BarPlotPtr histogramPlot (Vector< float > &data, unsigned int numBins, bool overplot=false)
BarPlotPtr histogramPlot (Vector< int > &data, unsigned int numBins, bool overplot=false)
BarPlotPtr histogramPlot (PlotSingleDataPtr data, unsigned int numBins, bool overplot=false)
RasterPlotPtr rasterPlot (Matrix< double > &data, bool overplot=false)
 Display a raster or contour plot for the given data, using the current line for the contours if applicable.
RasterPlotPtr rasterPlot (Matrix< float > &data, bool overplot=false)
RasterPlotPtr rasterPlot (Matrix< int > &data, bool overplot=false)
RasterPlotPtr rasterPlot (Matrix< uInt > &data, bool overplot=false)
RasterPlotPtr rasterPlot (Matrix< double > &data, double fromX, double toX, double fromY, double toY, bool overplot=false)
RasterPlotPtr rasterPlot (Matrix< float > &data, double fromX, double toX, double fromY, double toY, bool overplot=false)
RasterPlotPtr rasterPlot (Matrix< int > &data, double fromX, double toX, double fromY, double toY, bool overplot=false)
RasterPlotPtr rasterPlot (Matrix< uInt > &data, double fromX, double toX, double fromY, double toY, bool overplot=false)
RasterPlotPtr rasterPlot (PlotRasterDataPtr data, bool overplot=false)
RasterPlotPtr contourPlot (Matrix< double > &data, Vector< double > &contours, bool overplot=false)
RasterPlotPtr contourPlot (Matrix< float > &data, Vector< float > &contours, bool overplot=false)
RasterPlotPtr contourPlot (Matrix< int > &data, Vector< int > &contours, bool overplot=false)
RasterPlotPtr contourPlot (Matrix< uInt > &data, Vector< uInt > &contours, bool overplot=false)
RasterPlotPtr contourPlot (Matrix< double > &data, double fromX, double toX, double fromY, double toY, Vector< double > &contours, bool overplot=false)
RasterPlotPtr contourPlot (Matrix< float > &data, double fromX, double toX, double fromY, double toY, Vector< float > &contours, bool overplot=false)
RasterPlotPtr contourPlot (Matrix< int > &data, double fromX, double toX, double fromY, double toY, Vector< int > &contours, bool overplot=false)
RasterPlotPtr contourPlot (Matrix< uInt > &data, double fromX, double toX, double fromY, double toY, Vector< uInt > &contours, bool overplot=false)
RasterPlotPtr contourPlot (PlotRasterDataPtr data, vector< double > &contours, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< double > &data, bool overplt=false)
RasterPlotPtr spectrogram (Matrix< float > &data, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< int > &data, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< uInt > &data, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< double > &data, double fromX, double toX, double fromY, double toY, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< float > &data, double fromX, double toX, double fromY, double toY, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< int > &data, double fromX, double toX, double fromY, double toY, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< uInt > &data, double fromX, double toX, double fromY, double toY, bool overplot=false)
RasterPlotPtr spectrogram (PlotRasterDataPtr data, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< double > &d, Vector< double > &contours, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< float > &data, Vector< float > &contours, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< int > &data, Vector< int > &contours, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< uInt > &data, Vector< uInt > &contours, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< double > &d, double fromX, double toX, double fromY, double toY, Vector< double > &contours, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< float > &data, double fromX, double toX, double fromY, double toY, Vector< float > &contours, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< int > &data, double fromX, double toX, double fromY, double toY, Vector< int > &contours, bool overplot=false)
RasterPlotPtr spectrogram (Matrix< uInt > &data, double fromX, double toX, double fromY, double toY, Vector< uInt > &contours, bool overplot=false)
RasterPlotPtr spectrogram (PlotRasterDataPtr data, vector< double > &contours, bool overplot=false)
PlotPointPtr plotPoint (double x, double y)
 Plot a point at the given location, using the current symbol.
PlotAnnotationPtr annotation (double x, double y, const String &text)
 Shapes, Annotations, etc.
PlotShapeRectanglePtr rectangle (double left, double top, double right, double bottom)
 Draw a rectangle from the given upper left point to the given lower right point.
PlotShapeEllipsePtr ellipse (double centerX, double centerY, double xRadius, double yRadius)
 Draw an ellipse with the given point as the center and the given x and y radii.
PlotShapeEllipsePtr ellipse (double x, double y, double radius)
PlotShapeLinePtr xLine (double value)
 Draw a line at the given x value.
PlotShapeLinePtr yLine (double value)
 Draw a line at the given y value.
PlotShapeArrowPtr arrow (double xFrom, double yFrom, double xTo, double yTo)
 Draw an arrow from the given point to the given point.
PlotShapeArrowPtr lineSegment (double xFrom, double yFrom, double xTo, double yTo)
 Draw a line segment from the given point to the given point.
void clear ()
 Clearing Methods.
void clearPoints ()
 Clear just the points that have been accumulated using plotPoint calls.
void showDefaultHandTools (bool show=true)
 Interaction Methods.
void showDefaultExportTools (bool show=true)
 Show or hide default "export tools" panel - i.e., saving to a file.
vector< PlotRegionallSelectedRegions ()
 Returns all selected regions in the canvas' selected region list.
void clearSelectedRegions ()
 Clears the canvas' list of selected regions.
String fileChooserDialog (const String &title="File Chooser", const String &directory="")
 Export Methods.
bool exportPDF (const String &location, bool highQuality=false, int dpi=-1)
 Exports the plotter to a PDF file at the given location.
bool exportPS (const String &location, bool highQuality=false, int dpi=-1)
 Exports the plotter to a PS file at the given location.
bool exportJPG (const String &location, bool highQuality=false, int width=-1, int height=-1)
 Exports the plotter to a JPG file at the given location.
bool exportPNG (const String &location, bool highQuality=false, int width=-1, int height=-1)
 Exports the plotter to a PNG file at the given location.
bool exportToFile (const PlotExportFormat &format)
 Exports the plotter using the given format.

Private Attributes

PlotFactoryPtr m_factory
 Factory.
PlotterPtr m_plotter
 Plotter, with single canvas.
PlotCanvasPtr m_canvas
 Canvas.
PlotStandardMouseToolGroupPtr m_mouseTools
 Mouse tools.
vector< PlotPointPtr > m_accumulatedPoints
 Points accumulated using plotPoint calls.
PlotLinePtr m_line
 Line for future plots.
PlotSymbolPtr m_symbol
 Symbol for future plots and points.
PlotAreaFillPtr m_areaFill
 Area fill for future histograms, shapes, etc.

Detailed Description

SimplePlotter is a concrete class that uses the abstract plotting classes to perform common tasks.

SimplePlotter is meant for users who won't need any advanced or complicated customization or specialized data types.

Definition at line 41 of file SimplePlotter.h.


Constructor & Destructor Documentation

Constructor that takes a factory to build plotting objects.

Destructor.


Member Function Documentation

Returns all selected regions in the canvas' selected region list.

This list will contain all user-selected regions since either its construction or the last call to clearSelectedRegions().

PlotAnnotationPtr casa::SimplePlotter::annotation ( double  x,
double  y,
const String text 
)

Shapes, Annotations, etc.

Draw an annotation (text) on the canvas at the given point.

PlotShapeArrowPtr casa::SimplePlotter::arrow ( double  xFrom,
double  yFrom,
double  xTo,
double  yTo 
)

Draw an arrow from the given point to the given point.

BarPlotPtr casa::SimplePlotter::barPlot ( double *&  x,
double *&  y,
unsigned int  n,
bool  overplot = false 
)

Display a bar plot for the given data, using the current line and area fill.

BarPlotPtr casa::SimplePlotter::barPlot ( float *&  x,
float *&  y,
unsigned int  n,
bool  overplot = false 
)
BarPlotPtr casa::SimplePlotter::barPlot ( int *&  x,
int *&  y,
unsigned int  n,
bool  overplot = false 
)
BarPlotPtr casa::SimplePlotter::barPlot ( Vector< double > &  x,
Vector< double > &  y,
bool  overplot = false 
)
BarPlotPtr casa::SimplePlotter::barPlot ( Vector< float > &  x,
Vector< float > &  y,
bool  overplot = false 
)
BarPlotPtr casa::SimplePlotter::barPlot ( Vector< int > &  x,
Vector< int > &  y,
bool  overplot = false 
)
BarPlotPtr casa::SimplePlotter::barPlot ( PlotPointDataPtr  data,
bool  overplot = false 
)

Clearing Methods.

Clear all items currently on the canvas.

Clear just the points that have been accumulated using plotPoint calls.

Clears the canvas' list of selected regions.

RasterPlotPtr casa::SimplePlotter::contourPlot ( Matrix< double > &  data,
Vector< double > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::contourPlot ( Matrix< float > &  data,
Vector< float > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::contourPlot ( Matrix< int > &  data,
Vector< int > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::contourPlot ( Matrix< uInt > &  data,
Vector< uInt > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::contourPlot ( Matrix< double > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
Vector< double > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::contourPlot ( Matrix< float > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
Vector< float > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::contourPlot ( Matrix< int > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
Vector< int > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::contourPlot ( Matrix< uInt > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
Vector< uInt > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::contourPlot ( PlotRasterDataPtr  data,
vector< double > &  contours,
bool  overplot = false 
)
PlotShapeEllipsePtr casa::SimplePlotter::ellipse ( double  centerX,
double  centerY,
double  xRadius,
double  yRadius 
)

Draw an ellipse with the given point as the center and the given x and y radii.

PlotShapeEllipsePtr casa::SimplePlotter::ellipse ( double  x,
double  y,
double  radius 
)

Execution methods.

Enters the execution loop and returns the result.

bool casa::SimplePlotter::exportJPG ( const String location,
bool  highQuality = false,
int  width = -1,
int  height = -1 
)

Exports the plotter to a JPG file at the given location.

If highQuality is false, a screenshot-like export is used. Width and height of the image can be set.

bool casa::SimplePlotter::exportPDF ( const String location,
bool  highQuality = false,
int  dpi = -1 
)

Exports the plotter to a PDF file at the given location.

If highQuality is false, a screenshot-like export is used. Dots per inch can be set using dpi.

bool casa::SimplePlotter::exportPNG ( const String location,
bool  highQuality = false,
int  width = -1,
int  height = -1 
)

Exports the plotter to a PNG file at the given location.

If highQuality is false, a screenshot-like export is used. Width and height of the image can be set.

bool casa::SimplePlotter::exportPS ( const String location,
bool  highQuality = false,
int  dpi = -1 
)

Exports the plotter to a PS file at the given location.

If highQuality is false, a screenshot-like export is used. Dots per inch can be set using dpi.

Exports the plotter using the given format.

String casa::SimplePlotter::fileChooserDialog ( const String title = "File Chooser",
const String directory = "" 
)

Export Methods.

Show a file chooser dialog with the given optional window title and starting directory. Returns the absolute filename that the user selected, or an empty String if they pushed "Cancel".

Returns the current PlotAreaFill used for shapes, histograms, etc.

Definition at line 68 of file SimplePlotter.h.

References m_areaFill.

Returns the PlotCanvas.

Definition at line 59 of file SimplePlotter.h.

References m_canvas.

Accessor methods.

Returns the factory.

Definition at line 53 of file SimplePlotter.h.

References m_factory.

Returns the current PlotLine used to draw the plots.

Definition at line 62 of file SimplePlotter.h.

References m_line.

Returns the Plotter.

Definition at line 56 of file SimplePlotter.h.

References m_plotter.

Returns the current PlotSymbol used for the plots and points.

Definition at line 65 of file SimplePlotter.h.

References m_symbol.

BarPlotPtr casa::SimplePlotter::histogramPlot ( double *&  data,
unsigned int  n,
unsigned int  numBins,
bool  overplot = false 
)

Display a histogram for the given data in the given number of bins, using the current line and area fill.

BarPlotPtr casa::SimplePlotter::histogramPlot ( float *&  data,
unsigned int  n,
unsigned int  numBins,
bool  overplot = false 
)
BarPlotPtr casa::SimplePlotter::histogramPlot ( int *&  data,
unsigned int  n,
unsigned int  numBins,
bool  overplot = false 
)
BarPlotPtr casa::SimplePlotter::histogramPlot ( Vector< double > &  data,
unsigned int  numBins,
bool  overplot = false 
)
BarPlotPtr casa::SimplePlotter::histogramPlot ( Vector< float > &  data,
unsigned int  numBins,
bool  overplot = false 
)
BarPlotPtr casa::SimplePlotter::histogramPlot ( Vector< int > &  data,
unsigned int  numBins,
bool  overplot = false 
)
BarPlotPtr casa::SimplePlotter::histogramPlot ( PlotSingleDataPtr  data,
unsigned int  numBins,
bool  overplot = false 
)

Holds/Releases drawing on the canvas.

Is NOT recursive.

PlotShapeArrowPtr casa::SimplePlotter::lineSegment ( double  xFrom,
double  yFrom,
double  xTo,
double  yTo 
)

Draw a line segment from the given point to the given point.

PlotPointPtr casa::SimplePlotter::plotPoint ( double  x,
double  y 
)

Plot a point at the given location, using the current symbol.

ScatterPlotPtr casa::SimplePlotter::plotxy ( double *&  x,
double *&  y,
unsigned int  n,
bool  overplot = true 
)

Plotting methods.

IMPORTANT: since the data given to the plotting methods is not copied (but rather a reference is used) it is important that the data not go out of scope while the plots are being used!

Plot the given points, using the current line and symbol.

ScatterPlotPtr casa::SimplePlotter::plotxy ( float *&  x,
float *&  y,
unsigned int  n,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::plotxy ( int *&  x,
int *&  y,
unsigned int  n,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::plotxy ( Vector< double > &  x,
Vector< double > &  y,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::plotxy ( Vector< float > &  x,
Vector< float > &  y,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::plotxy ( Vector< int > &  x,
Vector< int > &  y,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::plotxy ( PlotPointDataPtr  data,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::ploty ( double *&  y,
unsigned int  n,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::ploty ( float *&  y,
unsigned int  n,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::ploty ( int *&  y,
unsigned int  n,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::ploty ( Vector< double > &  y,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::ploty ( Vector< float > &  y,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::ploty ( Vector< int > &  y,
bool  overplot = true 
)
ScatterPlotPtr casa::SimplePlotter::ploty ( PlotPointDataPtr  data,
bool  overplot = true 
)
RasterPlotPtr casa::SimplePlotter::rasterPlot ( Matrix< double > &  data,
bool  overplot = false 
)

Display a raster or contour plot for the given data, using the current line for the contours if applicable.

RasterPlotPtr casa::SimplePlotter::rasterPlot ( Matrix< float > &  data,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::rasterPlot ( Matrix< int > &  data,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::rasterPlot ( Matrix< uInt > &  data,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::rasterPlot ( Matrix< double > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::rasterPlot ( Matrix< float > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::rasterPlot ( Matrix< int > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::rasterPlot ( Matrix< uInt > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::rasterPlot ( PlotRasterDataPtr  data,
bool  overplot = false 
)
PlotShapeRectanglePtr casa::SimplePlotter::rectangle ( double  left,
double  top,
double  right,
double  bottom 
)

Draw a rectangle from the given upper left point to the given lower right point.

Automatically rescale the axes to show all items on the canvas.

Set the area fill for future histograms, shapes, etc.

to the given characteristics.

void casa::SimplePlotter::setAxesAutoRescale ( bool  on = true)

When future items are added to the canvas, automatically rescale the axes to show all items.

void casa::SimplePlotter::setAxesLabels ( const String xLabel,
const String yLabel 
)

Sets the X_BOTTOM and Y_LEFT axes labels to the given.

void casa::SimplePlotter::setCanvasTitle ( const String canvasTitle)

Sets the title of the canvas to the given.

void casa::SimplePlotter::setLine ( const String color,
PlotLine::Style  style = PlotLine::SOLID,
double  width = 1.0 
)

Set the line for future plots to the given characteristics.

Color can be hexadecimal form ("000000") or name form ("black").

void casa::SimplePlotter::setSymbol ( PlotSymbol::Symbol  symbol,
const String color = "blue",
double  size = 5,
bool  outline = true 
)

Set the symbol for future plots and points to the given characteristics.

void casa::SimplePlotter::setWindowTitle ( const String windowTitle)

Plotter customization.

Sets the title of the plotting window to the given.

void casa::SimplePlotter::setXAxisRange ( double  from,
double  to 
)

Implies setAxesAutoRescale(false)

void casa::SimplePlotter::setYAxisRange ( double  from,
double  to 
)

Implies setAxesAutoRescale(false)

void casa::SimplePlotter::showCartesianAxes ( bool  show = true)

Show/hide Cartesian axes.

(See PlotCanvas::showCartesianAxis()).

void casa::SimplePlotter::showDefaultExportTools ( bool  show = true)

Show or hide default "export tools" panel - i.e., saving to a file.

See Plotter::DefaultPanel::EXPORT_TOOLS.

void casa::SimplePlotter::showDefaultHandTools ( bool  show = true)

Interaction Methods.

Show or hide default "hand tools" panel - i.e., zooming, panning, etc. See Plotter::DefaultPanel::HAND_TOOLS.

void casa::SimplePlotter::showLines ( bool  showLines = true)

Plot customization.

Turn lines on or off for future plots.

void casa::SimplePlotter::showSymbols ( bool  showSymbols = true)

Turns symbols on or off for future plots and points.

RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< double > &  data,
bool  overplt = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< float > &  data,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< int > &  data,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< uInt > &  data,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< double > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< float > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< int > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< uInt > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( PlotRasterDataPtr  data,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< double > &  d,
Vector< double > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< float > &  data,
Vector< float > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< int > &  data,
Vector< int > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< uInt > &  data,
Vector< uInt > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< double > &  d,
double  fromX,
double  toX,
double  fromY,
double  toY,
Vector< double > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< float > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
Vector< float > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< int > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
Vector< int > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( Matrix< uInt > &  data,
double  fromX,
double  toX,
double  fromY,
double  toY,
Vector< uInt > &  contours,
bool  overplot = false 
)
RasterPlotPtr casa::SimplePlotter::spectrogram ( PlotRasterDataPtr  data,
vector< double > &  contours,
bool  overplot = false 
)

Draw a line at the given x value.

Draw a line at the given y value.


Member Data Documentation

vector<PlotPointPtr> casa::SimplePlotter::m_accumulatedPoints [private]

Points accumulated using plotPoint calls.

Definition at line 401 of file SimplePlotter.h.

Area fill for future histograms, shapes, etc.

Definition at line 410 of file SimplePlotter.h.

Referenced by getAreaFill().

Canvas.

Definition at line 395 of file SimplePlotter.h.

Referenced by getCanvas().

Factory.

Definition at line 389 of file SimplePlotter.h.

Referenced by getFactory().

Line for future plots.

Definition at line 404 of file SimplePlotter.h.

Referenced by getLine().

PlotStandardMouseToolGroupPtr casa::SimplePlotter::m_mouseTools [private]

Mouse tools.

Definition at line 398 of file SimplePlotter.h.

Plotter, with single canvas.

Definition at line 392 of file SimplePlotter.h.

Referenced by getPlotter().

Symbol for future plots and points.

Definition at line 407 of file SimplePlotter.h.

Referenced by getSymbol().


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