27 #ifndef PLOTMSREGIONS_H_
28 #define PLOTMSREGIONS_H_
59 bool contains(
double x,
double y,
bool exclusive =
true)
const;
76 void setValues(
double xMin,
double xMax,
double yMin,
double yMax);
130 void addRegions(PMS::Axis x, PMS::Axis y,
const std::vector<PlotMSRegion>& r) {
142 void setRegions(PMS::Axis x, PMS::Axis y,
const std::vector<PlotMSRegion>& r) {
A 1-D Specialization of the Array class.
PlotMSRegion()
Default constructor, which creates an invalid region in which all four values are zero...
bool operator!=(const PlotMSRegion ®ion) const
bool operator==(const PlotMSRegion ®ion) const
Equality operators.
StatsData< AccumType > copy(const StatsData< AccumType > &stats)
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.
PlotMSRegions()
Constructor, which creates an empty selection.
~PlotMSRegion()
Destructor.
void setRight(double val)
double left() const
Returns the region values.
std::map< std::pair< PMS::Axis, PMS::Axis >, casacore::Vector< PlotMSRegion > > PMSRMap
Convenience macro for map type.
PlotMSRegions is a class that holds information about selected regions for a single PlotMSPlot...
PlotMSRegion & operator=(const PlotMSRegion ©)
Copy operator.
bool isValid() const
Returns whether or not this region is valid.
casacore::Vector< std::pair< PMS::Axis, PMS::Axis > > allAxisPairs() const
Returns all axis pairs that have regions.
void addRegions(PMS::Axis x, PMS::Axis y, const std::vector< PlotMSRegion > &r)
Adds the given regions for the given (x, y) axis pair.
void setBottom(double val)
bool contains(double x, double y, bool exclusive=true) const
Returns whether or not this region contains the given (x, y) pair.
A single region; basically just a container class for four doubles.
bool hasRegionsFor(PMS::Axis x, PMS::Axis y) const
Returns whether or not there are regions for the given (x, y) axis pair.
void setY(double min, double max)
void setValues(double xMin, double xMax, double yMin, double yMax)
Sets the region values.
void clearRegions(PMS::Axis x, PMS::Axis y)
Clears the regions for the given (x, y) axis pair.
~PlotMSRegions()
Destructor.
casacore::Vector< PlotMSRegion > regionsFor(PMS::Axis x, PMS::Axis y) const
Returns a copy of the regions for the given (x, y) axis pair.
PMSRMap itsRegions_
casacore::Map from (x, y) to selected regions.
void setX(double min, double max)