casa
5.7.0-16
|
PlotMSRegions is a class that holds information about selected regions for a single PlotMSPlot. More...
#include <PlotMSRegions.h>
Public Member Functions | |
PlotMSRegions () | |
Constructor, which creates an empty selection. More... | |
~PlotMSRegions () | |
Destructor. More... | |
casacore::Vector< std::pair < PMS::Axis, PMS::Axis > > | allAxisPairs () const |
Returns all axis pairs that have regions. More... | |
bool | hasRegionsFor (PMS::Axis x, PMS::Axis y) const |
Returns whether or not there are regions for the given (x, y) axis pair. More... | |
casacore::Vector< PlotMSRegion > | regionsFor (PMS::Axis x, PMS::Axis y) const |
Returns a copy of the regions for the given (x, y) axis pair. More... | |
void | addRegions (PMS::Axis x, PMS::Axis y, const std::vector< PlotMSRegion > &r) |
Adds the given regions for the given (x, y) axis pair. More... | |
void | addRegions (PMS::Axis x, PMS::Axis y, const casacore::Vector< PlotMSRegion > &r) |
void | addRegions (PMS::Axis x, PMS::Axis y, PlotCanvasPtr canvas) |
Convenience method for adding all selected regions using the standard select tool on the given canvas for the given (x, y) axis pair. More... | |
void | setRegions (PMS::Axis x, PMS::Axis y, const std::vector< PlotMSRegion > &r) |
Sets the regions for the given (x, y) axis pair to the given. More... | |
void | setRegions (PMS::Axis x, PMS::Axis y, const casacore::Vector< PlotMSRegion > &r) |
void | setRegions (PMS::Axis x, PMS::Axis y, PlotCanvasPtr canvas) |
Convenience method for setting the regions for the given (x, y) axis pair using the standard select tool on the given canvas. More... | |
void | clearRegions (PMS::Axis x, PMS::Axis y) |
Clears the regions for the given (x, y) axis pair. More... | |
Private Types | |
typedef std::map< std::pair < PMS::Axis, PMS::Axis > , casacore::Vector < PlotMSRegion > > | PMSRMap |
Convenience macro for map type. More... | |
Private Attributes | |
PMSRMap | itsRegions_ |
casacore::Map from (x, y) to selected regions. More... | |
PlotMSRegions is a class that holds information about selected regions for a single PlotMSPlot.
Because PlotMSPlot can have potentially many different plots across potentially many different canvases, it is important that PlotMSRegions be general enough to handle many different cases.
Definition at line 109 of file PlotMSRegions.h.
|
private |
Convenience macro for map type.
Definition at line 156 of file PlotMSRegions.h.
casa::PlotMSRegions::PlotMSRegions | ( | ) |
Constructor, which creates an empty selection.
casa::PlotMSRegions::~PlotMSRegions | ( | ) |
Destructor.
|
inline |
Adds the given regions for the given (x, y) axis pair.
Will not remove any existing regions for that pair. Only adds unique regions.
Definition at line 130 of file PlotMSRegions.h.
void casa::PlotMSRegions::addRegions | ( | PMS::Axis | x, |
PMS::Axis | y, | ||
const casacore::Vector< PlotMSRegion > & | r | ||
) |
void casa::PlotMSRegions::addRegions | ( | PMS::Axis | x, |
PMS::Axis | y, | ||
PlotCanvasPtr | canvas | ||
) |
Convenience method for adding all selected regions using the standard select tool on the given canvas for the given (x, y) axis pair.
casacore::Vector<std::pair<PMS::Axis, PMS::Axis> > casa::PlotMSRegions::allAxisPairs | ( | ) | const |
Returns all axis pairs that have regions.
void casa::PlotMSRegions::clearRegions | ( | PMS::Axis | x, |
PMS::Axis | y | ||
) |
Clears the regions for the given (x, y) axis pair.
bool casa::PlotMSRegions::hasRegionsFor | ( | PMS::Axis | x, |
PMS::Axis | y | ||
) | const |
Returns whether or not there are regions for the given (x, y) axis pair.
casacore::Vector<PlotMSRegion> casa::PlotMSRegions::regionsFor | ( | PMS::Axis | x, |
PMS::Axis | y | ||
) | const |
Returns a copy of the regions for the given (x, y) axis pair.
|
inline |
Sets the regions for the given (x, y) axis pair to the given.
Removes any existing regions for that pair. Only adds unique regions.
Definition at line 142 of file PlotMSRegions.h.
void casa::PlotMSRegions::setRegions | ( | PMS::Axis | x, |
PMS::Axis | y, | ||
const casacore::Vector< PlotMSRegion > & | r | ||
) |
void casa::PlotMSRegions::setRegions | ( | PMS::Axis | x, |
PMS::Axis | y, | ||
PlotCanvasPtr | canvas | ||
) |
Convenience method for setting the regions for the given (x, y) axis pair using the standard select tool on the given canvas.
|
private |
casacore::Map from (x, y) to selected regions.
Definition at line 159 of file PlotMSRegions.h.