28 #ifndef PLOTMSPAGES_H_
29 #define PLOTMSPAGES_H_
35 class PlotMSParameters;
70 typedef std::vector<PlotMSPage>::iterator
iterator;
Represents a single page of PlotCanvases, arranged in a grid.
Elements::const_iterator const_iterator
void disown(PlotMSPlot *plot)
Remove the plot from the canvas.
StatsData< AccumType > copy(const StatsData< AccumType > &stats)
PlotMSPage getFirstPage() const
void setCurrentPageNum(casacore::uInt num)
Subclass of PlotMSWatchedParameters that hold parameters for the whole plotter.
unsigned int totalPages() const
Returns the total pages.
std::vector< PlotMSPage >::const_iterator const_iterator
PlotMSPages & operator=(const PlotMSPages ©)
Copy operator.
unsigned int itsCurrentPageNum_
Current page number.
bool isGridChanged(int rows, int cols) const
Returns whether or not (rows,cols) would represent a change in the current page size.
PlotMSPage & operator[](casacore::uInt index)
Accessor.
PlotMSPlotManager * itsManager_
Plot manager.
bool isSpot(int rowIndex, int colIndex, PlotMSPlot *plot) const
Returns whether the spot at the given location is available for the plot (either empty or the plot is...
~PlotMSPages()
Destructor.
void clearCanvases()
Erase axes & titles from all the canvases.
std::vector< PlotMSPage >::iterator iterator
Iterators.
void clearCanvas(int row, int col)
Erase all traces of a plot at the specific location including removing axes and title.
Class for a single "plot" concept.
void resize(size_t pages)
PlotMSPage insertPage(int index=-1)
Inserts a new page at the given index, and returns it.
unsigned int currentPageNumber() const
Returns the current page number.
PlotMSPage currentPage() const
Returns a COPY of the current page.
void setupCurrentPage()
Sets up the current page (see PlotMSPage::setupPage()).
const_iterator end() const
const_iterator begin() const
std::vector< PlotMSPage > itsPages_
Pages.
std::pair< int, int > findEmptySpot() const
Returns the row and column index of the first canvas on the page, or <-1,-1> if the page is full...
void clearPages()
Clears all pages.
PlotMSParameters getPageParameters()
void clear()
Clear all pages.
PlotMSPages(PlotMSPlotManager &manager)
Constructor, which the plot manager.
bool gridChanged(int rows, int cols)
Resize the page to the current number of rows and columns.
bool canvasIsOwnedBy(int row, int col, PlotMSPlot *plot) const
Class which manages PlotMSPlots for plotms.
void firstPage()
Iterators.
Represents (potentially) multiple pages for PlotMS, with one being current (visible) at a time...