casa
$Rev:20696$
|
Class to define a rectangular mask as a region. More...
#include <LCPixelSet.h>
Public Member Functions | |
LCPixelSet () | |
LCPixelSet (const Array< Bool > &mask, const LCBox ®ion) | |
Construct from the box defining the position of the mask. | |
LCPixelSet (const LCPixelSet &other) | |
Copy constructor (copy semantics). | |
virtual | ~LCPixelSet () |
LCPixelSet & | operator= (const LCPixelSet &other) |
Assignment (copy semantics). | |
virtual Bool | operator== (const LCRegion &other) const |
Comparison. | |
virtual LCRegion * | cloneRegion () const |
Make a copy of the derived object. | |
virtual String | type () const |
Get the region type. | |
virtual TableRecord | toRecord (const String &tableName) const |
Convert the (derived) object to a record. | |
Static Public Member Functions | |
static String | className () |
Get the class name (to store in the record). | |
static LCPixelSet * | fromRecord (const TableRecord &, const String &tablename) |
Convert correct object from a record. | |
Protected Member Functions | |
virtual LCRegion * | doTranslate (const Vector< Float > &translateVector, const IPosition &newLatticeShape) const |
Construct another LCPixelSet (for e.g. | |
Private Attributes | |
LCBox | itsBox |
Class to define a rectangular mask as a region.
Public interface
The LCPixelSet class is a specialization of class LCRegion . It makes it possible to define a rectangular region of interest.
Definition at line 65 of file LCPixelSet.h.
casa::LCPixelSet::LCPixelSet | ( | const Array< Bool > & | mask, |
const LCBox & | region | ||
) |
Construct from the box defining the position of the mask.
The shape of the region and mask must be the same.
casa::LCPixelSet::LCPixelSet | ( | const LCPixelSet & | other | ) |
Copy constructor (copy semantics).
virtual casa::LCPixelSet::~LCPixelSet | ( | ) | [virtual] |
static String casa::LCPixelSet::className | ( | ) | [static] |
Get the class name (to store in the record).
virtual LCRegion* casa::LCPixelSet::cloneRegion | ( | ) | const [virtual] |
Make a copy of the derived object.
Implements casa::LCRegion.
virtual LCRegion* casa::LCPixelSet::doTranslate | ( | const Vector< Float > & | translateVector, |
const IPosition & | newLatticeShape | ||
) | const [protected, virtual] |
Construct another LCPixelSet (for e.g.
another lattice) by moving this one. It recalculates the bounding mask. A positive translation value indicates "to right".
Implements casa::LCRegion.
static LCPixelSet* casa::LCPixelSet::fromRecord | ( | const TableRecord & | , |
const String & | tablename | ||
) | [static] |
Convert correct object from a record.
Reimplemented from casa::LCRegion.
LCPixelSet& casa::LCPixelSet::operator= | ( | const LCPixelSet & | other | ) |
Assignment (copy semantics).
Comparison.
Reimplemented from casa::LCRegionFixed.
virtual TableRecord casa::LCPixelSet::toRecord | ( | const String & | tableName | ) | const [virtual] |
Convert the (derived) object to a record.
Implements casa::LCRegion.
virtual String casa::LCPixelSet::type | ( | ) | const [virtual] |
LCBox casa::LCPixelSet::itsBox [private] |
Definition at line 109 of file LCPixelSet.h.