casa
$Rev:20696$
|
Make the intersection of 2 or more regions. More...
#include <LCIntersection.h>
Public Member Functions | |
LCIntersection () | |
LCIntersection (const LCRegion ®ion1, const LCRegion ®ion2) | |
Construct the intersection of the given regions. | |
LCIntersection (Bool takeOver, const LCRegion *region1, const LCRegion *region2=0, const LCRegion *region3=0, const LCRegion *region4=0, const LCRegion *region5=0, const LCRegion *region6=0, const LCRegion *region7=0, const LCRegion *region8=0, const LCRegion *region9=0, const LCRegion *region10=0) | |
Construct from multiple regions. | |
LCIntersection (Bool takeOver, const PtrBlock< const LCRegion * > ®ions) | |
Construct from multiple regions given as a Block. | |
LCIntersection (const LCIntersection &other) | |
Copy constructor (copy semantics). | |
virtual | ~LCIntersection () |
LCIntersection & | operator= (const LCIntersection &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 LCIntersection * | 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 LCRegion (for e.g. | |
virtual void | multiGetSlice (Array< Bool > &buffer, const Slicer §ion) |
Do the actual getting of the mask. | |
Private Member Functions | |
void | defineBox () |
Make the bounding box and determine the offsets. | |
Private Attributes | |
Block< IPosition > | itsOffsets |
Make the intersection of 2 or more regions.
Public interface
The LCIntersection class is a specialization of class LCRegion . It makes it possible to find the intersection of given regions.
The center of the intersection must be inside the lattice
Definition at line 68 of file LCIntersection.h.
casa::LCIntersection::LCIntersection | ( | const LCRegion & | region1, |
const LCRegion & | region2 | ||
) |
Construct the intersection of the given regions.
casa::LCIntersection::LCIntersection | ( | Bool | takeOver, |
const LCRegion * | region1, | ||
const LCRegion * | region2 = 0 , |
||
const LCRegion * | region3 = 0 , |
||
const LCRegion * | region4 = 0 , |
||
const LCRegion * | region5 = 0 , |
||
const LCRegion * | region6 = 0 , |
||
const LCRegion * | region7 = 0 , |
||
const LCRegion * | region8 = 0 , |
||
const LCRegion * | region9 = 0 , |
||
const LCRegion * | region10 = 0 |
||
) |
Construct from multiple regions.
casa::LCIntersection::LCIntersection | ( | Bool | takeOver, |
const PtrBlock< const LCRegion * > & | regions | ||
) |
Construct from multiple regions given as a Block.
When takeOver
is True, the destructor will delete the given regions. Otherwise a copy of the regions is made.
casa::LCIntersection::LCIntersection | ( | const LCIntersection & | other | ) |
Copy constructor (copy semantics).
virtual casa::LCIntersection::~LCIntersection | ( | ) | [virtual] |
static String casa::LCIntersection::className | ( | ) | [static] |
Get the class name (to store in the record).
virtual LCRegion* casa::LCIntersection::cloneRegion | ( | ) | const [virtual] |
Make a copy of the derived object.
Implements casa::LCRegion.
void casa::LCIntersection::defineBox | ( | ) | [private] |
Make the bounding box and determine the offsets.
virtual LCRegion* casa::LCIntersection::doTranslate | ( | const Vector< Float > & | translateVector, |
const IPosition & | newLatticeShape | ||
) | const [protected, virtual] |
Construct another LCRegion (for e.g.
another lattice) by moving this one. It recalculates the bounding box and mask. A positive translation value indicates "to right".
Implements casa::LCRegion.
static LCIntersection* casa::LCIntersection::fromRecord | ( | const TableRecord & | , |
const String & | tableName | ||
) | [static] |
Convert correct object from a record.
Reimplemented from casa::LCRegion.
virtual void casa::LCIntersection::multiGetSlice | ( | Array< Bool > & | buffer, |
const Slicer & | section | ||
) | [protected, virtual] |
Do the actual getting of the mask.
Implements casa::LCRegionMulti.
LCIntersection& casa::LCIntersection::operator= | ( | const LCIntersection & | other | ) |
Assignment (copy semantics).
Comparison.
Reimplemented from casa::LCRegionMulti.
virtual TableRecord casa::LCIntersection::toRecord | ( | const String & | tableName | ) | const [virtual] |
Convert the (derived) object to a record.
Implements casa::LCRegion.
virtual String casa::LCIntersection::type | ( | ) | const [virtual] |
Block<IPosition> casa::LCIntersection::itsOffsets [private] |
Definition at line 136 of file LCIntersection.h.