casa
5.7.0-16
|
Represents (potentially) multiple pages for PlotMS, with one being current (visible) at a time. More...
#include <PlotMSPages.h>
Public Types | |
typedef std::vector < PlotMSPage >::iterator | iterator |
Iterators. More... | |
typedef std::vector < PlotMSPage >::const_iterator | const_iterator |
Public Member Functions | |
PlotMSPages (PlotMSPlotManager &manager) | |
Constructor, which the plot manager. More... | |
PlotMSPages (const PlotMSPages ©) | |
Copy constructor. More... | |
~PlotMSPages () | |
Destructor. More... | |
unsigned int | currentPageNumber () const |
Returns the current page number. More... | |
PlotMSPage | currentPage () const |
Returns a COPY of the current page. More... | |
PlotMSPage | getFirstPage () const |
void | setCurrentPageNum (casacore::uInt num) |
PlotMSPage & | operator[] (casacore::uInt index) |
Accessor. More... | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
unsigned int | totalPages () const |
Returns the total pages. More... | |
void | clear () |
Clear all pages. More... | |
void | resize (size_t pages) |
void | clearCanvas (int row, int col) |
Erase all traces of a plot at the specific location including removing axes and title. More... | |
void | clearCanvases () |
Erase axes & titles from all the canvases. More... | |
bool | gridChanged (int rows, int cols) |
Resize the page to the current number of rows and columns. More... | |
PlotMSPages & | operator= (const PlotMSPages ©) |
Copy operator. More... | |
void | firstPage () |
Iterators. More... | |
void | nextPage () |
void | previousPage () |
void | lastPage () |
PlotMSPage | insertPage (int index=-1) |
Inserts a new page at the given index, and returns it. More... | |
void | clearPages () |
Clears all pages. More... | |
void | setupCurrentPage () |
Sets up the current page (see PlotMSPage::setupPage()). More... | |
void | disown (PlotMSPlot *plot) |
Remove the plot from the canvas. More... | |
void | disown (int row, int col, PlotMSPlot *plot) |
bool | canvasIsOwnedBy (int row, int col, PlotMSPlot *plot) const |
PlotMSParameters | getPageParameters () |
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 already occupying it). More... | |
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. More... | |
Private Member Functions | |
bool | isGridChanged (int rows, int cols) const |
Returns whether or not (rows,cols) would represent a change in the current page size. More... | |
Private Attributes | |
PlotMSPlotManager * | itsManager_ |
Plot manager. More... | |
std::vector< PlotMSPage > | itsPages_ |
Pages. More... | |
unsigned int | itsCurrentPageNum_ |
Current page number. More... | |
Friends | |
class | PlotMSPage |
class | PlotMSPlot |
class | PlotMSPlotManager |
Represents (potentially) multiple pages for PlotMS, with one being current (visible) at a time.
Definition at line 39 of file PlotMSPages.h.
typedef std::vector<PlotMSPage>::const_iterator casa::PlotMSPages::const_iterator |
Definition at line 74 of file PlotMSPages.h.
typedef std::vector<PlotMSPage>::iterator casa::PlotMSPages::iterator |
Iterators.
Definition at line 70 of file PlotMSPages.h.
casa::PlotMSPages::PlotMSPages | ( | PlotMSPlotManager & | manager | ) |
Constructor, which the plot manager.
casa::PlotMSPages::PlotMSPages | ( | const PlotMSPages & | copy | ) |
Copy constructor.
casa::PlotMSPages::~PlotMSPages | ( | ) |
Destructor.
|
inline |
Definition at line 71 of file PlotMSPages.h.
References itsPages_.
|
inline |
Definition at line 75 of file PlotMSPages.h.
References itsPages_.
bool casa::PlotMSPages::canvasIsOwnedBy | ( | int | row, |
int | col, | ||
PlotMSPlot * | plot | ||
) | const |
|
inline |
void casa::PlotMSPages::clearCanvas | ( | int | row, |
int | col | ||
) |
Erase all traces of a plot at the specific location including removing axes and title.
void casa::PlotMSPages::clearCanvases | ( | ) |
Erase axes & titles from all the canvases.
void casa::PlotMSPages::clearPages | ( | ) |
Clears all pages.
PlotMSPage casa::PlotMSPages::currentPage | ( | ) | const |
Returns a COPY of the current page.
unsigned int casa::PlotMSPages::currentPageNumber | ( | ) | const |
Returns the current page number.
void casa::PlotMSPages::disown | ( | PlotMSPlot * | plot | ) |
Remove the plot from the canvas.
void casa::PlotMSPages::disown | ( | int | row, |
int | col, | ||
PlotMSPlot * | plot | ||
) |
|
inline |
Definition at line 72 of file PlotMSPages.h.
References itsPages_.
|
inline |
Definition at line 76 of file PlotMSPages.h.
References itsPages_.
std::pair<int,int> casa::PlotMSPages::findEmptySpot | ( | ) | const |
Returns the row and column index of the first canvas on the page, or <-1,-1> if the page is full.
void casa::PlotMSPages::firstPage | ( | ) |
Iterators.
PlotMSPage casa::PlotMSPages::getFirstPage | ( | ) | const |
PlotMSParameters casa::PlotMSPages::getPageParameters | ( | ) |
bool casa::PlotMSPages::gridChanged | ( | int | rows, |
int | cols | ||
) |
Resize the page to the current number of rows and columns.
PlotMSPage casa::PlotMSPages::insertPage | ( | int | index = -1 | ) |
Inserts a new page at the given index, and returns it.
If the given index is invalid, the page is inserted at the end.
|
private |
Returns whether or not (rows,cols) would represent a change in the current page size.
bool casa::PlotMSPages::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 already occupying it).
void casa::PlotMSPages::lastPage | ( | ) |
void casa::PlotMSPages::nextPage | ( | ) |
PlotMSPages& casa::PlotMSPages::operator= | ( | const PlotMSPages & | copy | ) |
Copy operator.
|
inline |
void casa::PlotMSPages::previousPage | ( | ) |
void casa::PlotMSPages::resize | ( | size_t | pages | ) |
void casa::PlotMSPages::setCurrentPageNum | ( | casacore::uInt | num | ) |
void casa::PlotMSPages::setupCurrentPage | ( | ) |
Sets up the current page (see PlotMSPage::setupPage()).
unsigned int casa::PlotMSPages::totalPages | ( | ) | const |
Returns the total pages.
|
friend |
Definition at line 42 of file PlotMSPages.h.
|
friend |
Definition at line 43 of file PlotMSPages.h.
|
friend |
Definition at line 44 of file PlotMSPages.h.
|
private |
Current page number.
Definition at line 144 of file PlotMSPages.h.
|
private |
Plot manager.
Definition at line 138 of file PlotMSPages.h.
|
private |
Pages.
Definition at line 141 of file PlotMSPages.h.
Referenced by begin(), clear(), end(), and operator[]().