Source
RasterPlotPtr contourPlot(casacore::Matrix<casacore::uInt>& data, casacore::Vector<casacore::uInt>& contours,
//# SimplePlotter.h: Concrete plotting class for common or simple use cases.
//# Copyright (C) 2008
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or (at your
//# option) any later version.
//#
//# This library is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
//# License for more details.
//#
//# You should have received a copy of the GNU Library General Public License
//# along with this library; if not, write to the Free Software Foundation,
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
//# $Id: $
namespace casa {
// 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.
class SimplePlotter {
public:
// Constructor that takes a factory to build plotting objects.
SimplePlotter(PlotFactoryPtr factory);
// Destructor
~SimplePlotter();
// Accessor methods
// Returns the factory.
PlotFactoryPtr getFactory() { return m_factory; }
// Returns the Plotter.
PlotterPtr getPlotter() { return m_plotter; }
// Returns the PlotCanvas.
PlotCanvasPtr getCanvas() { return m_canvas; }
// Returns the current PlotLine used to draw the plots.
PlotLinePtr getLine() { return m_line; }
// Returns the current PlotSymbol used for the plots and points.
PlotSymbolPtr getSymbol() { return m_symbol; }