casa
$Rev:20696$
|
Abstract base class to define a fixed region. More...
#include <LCRegionFixed.h>
Public Member Functions | |
LCRegionFixed () | |
LCRegionFixed (const IPosition &latticeShape) | |
Construct with the lattice shape only. | |
LCRegionFixed (const LCRegionFixed &other) | |
Copy constructor (copy semantics). | |
virtual | ~LCRegionFixed () |
Destructor. | |
virtual Bool | operator== (const LCRegion &other) const |
Comparison. | |
Protected Member Functions | |
LCRegionFixed & | operator= (const LCRegionFixed &other) |
Assignment (copy semantics) is only useful for derived classes. | |
void | setMask (const Array< Bool > &mask) |
Set the mask. | |
Private Attributes | |
ArrayLattice< Bool > | itsMask |
Abstract base class to define a fixed region.
Public interface
The LCRegion class is the abstract base class for various types of LCRegion's (e.g. LCRegionEllipsoid, LCRegionBox). It contains the minimal bounding box of the region and, if needed, a mask with the same shape as the bounding box. A mask element is true if the element is inside the box.
Each LCRegion object must be able to convert itself to and from a record. In that way they can be made persistent (in for example a Table).
The LCRegion can be used in several Lattices and Images classes and functions to limit the area to operate on.
The Slicer class is too limited as a region, because it can only describe a rectangular region. Specialized classes are needed to describe arbitrary regions. They need a base class to combine them.
Definition at line 80 of file LCRegionFixed.h.
casa::LCRegionFixed::LCRegionFixed | ( | const IPosition & | latticeShape | ) |
Construct with the lattice shape only.
casa::LCRegionFixed::LCRegionFixed | ( | const LCRegionFixed & | other | ) |
Copy constructor (copy semantics).
virtual casa::LCRegionFixed::~LCRegionFixed | ( | ) | [virtual] |
Destructor.
LCRegionFixed& casa::LCRegionFixed::operator= | ( | const LCRegionFixed & | other | ) | [protected] |
Assignment (copy semantics) is only useful for derived classes.
Comparison.
Mask is not checked. Use the LCRegionSingle::masksEqual function as well if you want to check the masks
Reimplemented from casa::LCRegion.
Reimplemented in casa::LCPolygon, casa::LCEllipsoid, casa::LCBox, and casa::LCPixelSet.
void casa::LCRegionFixed::setMask | ( | const Array< Bool > & | mask | ) | [protected] |
Set the mask.
ArrayLattice<Bool> casa::LCRegionFixed::itsMask [private] |
Definition at line 107 of file LCRegionFixed.h.