casa
$Rev:20696$
|
A PlotRegion is basically just a wrapper for two PlotCoordinates: an upper left coordinate and a lower right coordinate. More...
#include <PlotOptions.h>
Public Member Functions | |
PlotRegion () | |
Default constructor. | |
PlotRegion (const PlotCoordinate &upperLeft, const PlotCoordinate &lowerRight) | |
Parameterized constructor. | |
PlotRegion (const PlotRegion ©) | |
Copy constructor. | |
~PlotRegion () | |
Destructor. | |
const PlotCoordinate & | upperLeft () const |
Returns the upper left coordinate. | |
const PlotCoordinate & | lowerRight () const |
Returns the lower right coordinate. | |
double | top () const |
Returns the top y value. | |
double | bottom () const |
Returns the bottom y value. | |
double | left () const |
Returns the left x value. | |
double | right () const |
Returns the right x value. | |
bool | isValid () const |
Returns true if the region is valid, false otherwise. | |
Private Attributes | |
PlotCoordinate | m_upperLeft |
Upper-left coordinate. | |
PlotCoordinate | m_lowerRight |
Lower-right coordinate. |
A PlotRegion is basically just a wrapper for two PlotCoordinates: an upper left coordinate and a lower right coordinate.
Definition at line 664 of file PlotOptions.h.
Default constructor.
casa::PlotRegion::PlotRegion | ( | const PlotCoordinate & | upperLeft, |
const PlotCoordinate & | lowerRight | ||
) |
Parameterized constructor.
casa::PlotRegion::PlotRegion | ( | const PlotRegion & | copy | ) |
Copy constructor.
Destructor.
double casa::PlotRegion::bottom | ( | ) | const |
Returns the bottom y value.
bool casa::PlotRegion::isValid | ( | ) | const |
Returns true if the region is valid, false otherwise.
double casa::PlotRegion::left | ( | ) | const |
Returns the left x value.
const PlotCoordinate& casa::PlotRegion::lowerRight | ( | ) | const |
Returns the lower right coordinate.
double casa::PlotRegion::right | ( | ) | const |
Returns the right x value.
double casa::PlotRegion::top | ( | ) | const |
Returns the top y value.
const PlotCoordinate& casa::PlotRegion::upperLeft | ( | ) | const |
Returns the upper left coordinate.
PlotCoordinate casa::PlotRegion::m_lowerRight [private] |
Lower-right coordinate.
Definition at line 706 of file PlotOptions.h.
PlotCoordinate casa::PlotRegion::m_upperLeft [private] |
Upper-left coordinate.
Definition at line 703 of file PlotOptions.h.