casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Attributes
casa::LCRegionFixed Class Reference

Abstract base class to define a fixed region. More...

#include <LCRegionFixed.h>

Inheritance diagram for casa::LCRegionFixed:
casa::LCRegionSingle casa::LCRegion casa::Lattice< Bool > casa::LatticeBase casa::LCBox casa::LCEllipsoid casa::LCPixelSet casa::LCPolygon

List of all members.

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

LCRegionFixedoperator= (const LCRegionFixed &other)
 Assignment (copy semantics) is only useful for derived classes.
void setMask (const Array< Bool > &mask)
 Set the mask.

Private Attributes

ArrayLattice< BoolitsMask

Detailed Description

Abstract base class to define a fixed region.

Intended use:

Public interface

Prerequisite

Synopsis

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.

Example

Motivation

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.


Constructor & Destructor Documentation

casa::LCRegionFixed::LCRegionFixed ( const IPosition latticeShape)

Construct with the lattice shape only.

Copy constructor (copy semantics).

virtual casa::LCRegionFixed::~LCRegionFixed ( ) [virtual]

Destructor.


Member Function Documentation

LCRegionFixed& casa::LCRegionFixed::operator= ( const LCRegionFixed other) [protected]

Assignment (copy semantics) is only useful for derived classes.

virtual Bool casa::LCRegionFixed::operator== ( const LCRegion other) const [virtual]

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.


Member Data Documentation

Definition at line 107 of file LCRegionFixed.h.


The documentation for this class was generated from the following file: