A single region; basically just a container class for four doubles.
More...
#include <PlotMSRegions.h>
|
| PlotMSRegion () |
| Default constructor, which creates an invalid region in which all four values are zero. More...
|
|
| PlotMSRegion (double xMin, double xMax, double yMin, double yMax) |
| Constructor that takes the four values of the region. More...
|
|
| PlotMSRegion (const PlotMSRegion ©) |
| Copy constructor (see operator=()). More...
|
|
| ~PlotMSRegion () |
| Destructor. More...
|
|
bool | isValid () const |
| Returns whether or not this region is valid. More...
|
|
bool | contains (double x, double y, bool exclusive=true) const |
| Returns whether or not this region contains the given (x, y) pair. More...
|
|
double | left () const |
| Returns the region values. More...
|
|
double | right () const |
|
double | bottom () const |
|
double | top () const |
|
double | xMin () const |
|
double | xMax () const |
|
double | yMin () const |
|
double | yMax () const |
|
void | setValues (double xMin, double xMax, double yMin, double yMax) |
| Sets the region values. More...
|
|
void | setX (double min, double max) |
|
void | setY (double min, double max) |
|
void | setXMin (double val) |
|
void | setXMax (double val) |
|
void | setYMin (double val) |
|
void | setYMax (double val) |
|
void | setLeft (double val) |
|
void | setRight (double val) |
|
void | setBottom (double val) |
|
void | setTop (double val) |
|
bool | operator== (const PlotMSRegion ®ion) const |
| Equality operators. More...
|
|
bool | operator!= (const PlotMSRegion ®ion) const |
|
PlotMSRegion & | operator= (const PlotMSRegion ©) |
| Copy operator. More...
|
|
A single region; basically just a container class for four doubles.
Definition at line 37 of file PlotMSRegions.h.
casa::PlotMSRegion::PlotMSRegion |
( |
| ) |
|
Default constructor, which creates an invalid region in which all four values are zero.
casa::PlotMSRegion::PlotMSRegion |
( |
double |
xMin, |
|
|
double |
xMax, |
|
|
double |
yMin, |
|
|
double |
yMax |
|
) |
| |
Constructor that takes the four values of the region.
casa::PlotMSRegion::PlotMSRegion |
( |
const PlotMSRegion & |
copy | ) |
|
casa::PlotMSRegion::~PlotMSRegion |
( |
| ) |
|
double casa::PlotMSRegion::bottom |
( |
| ) |
const |
|
inline |
bool casa::PlotMSRegion::contains |
( |
double |
x, |
|
|
double |
y, |
|
|
bool |
exclusive = true |
|
) |
| const |
Returns whether or not this region contains the given (x, y) pair.
If exclusive is true, then the borders are not included.
bool casa::PlotMSRegion::isValid |
( |
| ) |
const |
Returns whether or not this region is valid.
A region is invalid if either of its maxes are <= its mins.
double casa::PlotMSRegion::left |
( |
| ) |
const |
|
inline |
bool casa::PlotMSRegion::operator!= |
( |
const PlotMSRegion & |
region | ) |
const |
|
inline |
bool casa::PlotMSRegion::operator== |
( |
const PlotMSRegion & |
region | ) |
const |
double casa::PlotMSRegion::right |
( |
| ) |
const |
|
inline |
void casa::PlotMSRegion::setBottom |
( |
double |
val | ) |
|
|
inline |
void casa::PlotMSRegion::setLeft |
( |
double |
val | ) |
|
|
inline |
void casa::PlotMSRegion::setRight |
( |
double |
val | ) |
|
|
inline |
void casa::PlotMSRegion::setTop |
( |
double |
val | ) |
|
|
inline |
void casa::PlotMSRegion::setValues |
( |
double |
xMin, |
|
|
double |
xMax, |
|
|
double |
yMin, |
|
|
double |
yMax |
|
) |
| |
void casa::PlotMSRegion::setX |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
void casa::PlotMSRegion::setXMax |
( |
double |
val | ) |
|
void casa::PlotMSRegion::setXMin |
( |
double |
val | ) |
|
void casa::PlotMSRegion::setY |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
void casa::PlotMSRegion::setYMax |
( |
double |
val | ) |
|
void casa::PlotMSRegion::setYMin |
( |
double |
val | ) |
|
double casa::PlotMSRegion::top |
( |
| ) |
const |
|
inline |
double casa::PlotMSRegion::xMax |
( |
| ) |
const |
double casa::PlotMSRegion::xMin |
( |
| ) |
const |
double casa::PlotMSRegion::yMax |
( |
| ) |
const |
double casa::PlotMSRegion::yMin |
( |
| ) |
const |
double casa::PlotMSRegion::itsXMax_ |
|
private |
double casa::PlotMSRegion::itsXMin_ |
|
private |
double casa::PlotMSRegion::itsYMax_ |
|
private |
double casa::PlotMSRegion::itsYMin_ |
|
private |
The documentation for this class was generated from the following file: