39 class PlotMSPlotManager;
90 void resize(
unsigned int nrows,
unsigned int ncols);
106 bool disown(
int row,
int col );
114 QList<PlotMSPlot*>
owner(
unsigned int row,
unsigned int col)
const;
123 bool isOwned(
unsigned int row,
unsigned int col);
std::vector< std::vector< PlotCanvasPtr > > itsCanvases_
Canvases grid.
Represents a single page of PlotCanvases, arranged in a grid.
StatsData< AccumType > copy(const StatsData< AccumType > &stats)
bool isOwned(unsigned int row, unsigned int col)
Returns true if the canvas at the given row and column exists and is owned, false otherwise...
bool setOwner(unsigned int row, unsigned int col, PlotMSPlot *plot)
Sets the owner for the canvas at the given row and column to the given plot; returns true for success...
QList< PlotMSPlot * > owner(unsigned int row, unsigned int col) const
Returns the owner plot(s) at the given row and column, or an empty list if invalid or there is no own...
bool isSpot(int rowIndex, int colIndex, PlotMSPlot *plot) const
Returns true if the canvas at (rowIndex, colIndex) does not yet have a plot or if it already has the ...
unsigned int canvasCols() const
std::pair< int, int > findEmptySpot() const
Returns the <rowIndex,colIndex> of the first available canvas that does not yet have a plot...
Class for a single "plot" concept.
bool isOwner(int rowIndex, int colIndex, PlotMSPlot *plot) const
Returns whether or not the plot is the owner of a canvas located at the given rowIndex and colIndex...
PlotMSPage & operator=(const PlotMSPage ©)
Copy operator.
void resize(unsigned int nrows, unsigned int ncols)
Resizes the grid to the given number of rows and columns.
unsigned int canvasRows() const
Returns the number of rows/columns of the canvas grid on this page.
PlotMSPage(const PlotMSPage ©)
Copy constructor.
void setupPage()
Sets up this page on the plotter.
std::vector< std::vector< QList< PlotMSPlot * > > > itsCanvasOwners_
Owner grid.
void clearCanvases()
Remove axes and titles from all the canvases.
void disown(PlotMSPlot *plot)
Erase all trace of this plot.
void clearCanvas(int row, int col)
Erase all traces of a plot at the specific location including removing axes and title.
Represents (potentially) multiple pages for PlotMS, with one being current (visible) at a time...
PlotMSPages * itsParent_
Parent.
PlotCanvasPtr canvas(unsigned int row, unsigned int col)
Returns the canvas at the given row and column, or NULL if invalid.