casa
$Rev:20696$
|
Base class for compound WCRegion objects. More...
#include <WCCompound.h>
Public Member Functions | |
WCCompound (const ImageRegion ®ion1, const ImageRegion ®ion2) | |
Construct from one or more image regions. | |
WCCompound (const ImageRegion *region1, const ImageRegion *region2=0, const ImageRegion *region3=0, const ImageRegion *region4=0, const ImageRegion *region5=0, const ImageRegion *region6=0, const ImageRegion *region7=0, const ImageRegion *region8=0, const ImageRegion *region9=0, const ImageRegion *region10=0) | |
WCCompound (const PtrBlock< const ImageRegion * > ®ions) | |
WCCompound (Bool takeOver, const PtrBlock< const WCRegion * > ®ions) | |
Construct from multiple regions given as a Block. | |
WCCompound (const WCCompound &other) | |
Copy constructor (copy semantics). | |
virtual | ~WCCompound () |
virtual Bool | operator== (const WCRegion &other) const |
Comparison. | |
const PtrBlock< const WCRegion * > & | regions () const |
Get the contributing regions. | |
Protected Member Functions | |
WCCompound & | operator= (const WCCompound &other) |
Assignment (copy semantics) makes only sense for a derived class. | |
void | multiToLCRegion (PtrBlock< const LCRegion * > ®ions, const CoordinateSystem &cSys, const IPosition &shape, const IPosition &pixelAxesMap, const IPosition &extendAxes) const |
Convert each WCRegion to an LCRegion. | |
TableRecord | makeRecord (const String &tableName) const |
Store the contributing regions in a record. | |
Static Protected Member Functions | |
static void | unmakeRecord (PtrBlock< const WCRegion * > &, const TableRecord &, const String &tableName) |
Retrieve the contributing objects from the record. | |
Private Member Functions | |
void | makeWCRegion (const PtrBlock< const ImageRegion * > &) |
Check if the ImageRegion's contain WCRegion's and extract them. | |
void | init (Bool takeOver) |
Check if the regions are correct. | |
Private Attributes | |
PtrBlock< const WCRegion * > | itsRegions |
Block< IPosition > | itsAxesUsed |
Base class for compound WCRegion objects.
Internal
WCCompound is the base class for world coordinate regions. It defines the functionality simply as conversion to an LCRegion. This is because you need an LCRegion to be able to access the pixels in a Lattice.
The conversion functions should be flexible in that the supplied CoordinateSystem does not have to be the same as that with which the derived class was constructed. This means that you can apply a WCCompound from one image to another, provided that operation has some meaning.
Definition at line 83 of file WCCompound.h.
casa::WCCompound::WCCompound | ( | const ImageRegion & | region1, |
const ImageRegion & | region2 | ||
) |
Construct from one or more image regions.
The image regions have to contain WCRegion objects, otherwise an exception is thrown.
casa::WCCompound::WCCompound | ( | const ImageRegion * | region1, |
const ImageRegion * | region2 = 0 , |
||
const ImageRegion * | region3 = 0 , |
||
const ImageRegion * | region4 = 0 , |
||
const ImageRegion * | region5 = 0 , |
||
const ImageRegion * | region6 = 0 , |
||
const ImageRegion * | region7 = 0 , |
||
const ImageRegion * | region8 = 0 , |
||
const ImageRegion * | region9 = 0 , |
||
const ImageRegion * | region10 = 0 |
||
) |
casa::WCCompound::WCCompound | ( | const PtrBlock< const ImageRegion * > & | regions | ) |
casa::WCCompound::WCCompound | ( | Bool | takeOver, |
const PtrBlock< const WCRegion * > & | 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::WCCompound::WCCompound | ( | const WCCompound & | other | ) |
Copy constructor (copy semantics).
virtual casa::WCCompound::~WCCompound | ( | ) | [virtual] |
void casa::WCCompound::init | ( | Bool | takeOver | ) | [private] |
Check if the regions are correct.
If needed, make a copy of the region objects.
TableRecord casa::WCCompound::makeRecord | ( | const String & | tableName | ) | const [protected] |
Store the contributing regions in a record.
void casa::WCCompound::makeWCRegion | ( | const PtrBlock< const ImageRegion * > & | ) | [private] |
Check if the ImageRegion's contain WCRegion's and extract them.
void casa::WCCompound::multiToLCRegion | ( | PtrBlock< const LCRegion * > & | regions, |
const CoordinateSystem & | cSys, | ||
const IPosition & | shape, | ||
const IPosition & | pixelAxesMap, | ||
const IPosition & | extendAxes | ||
) | const [protected] |
WCCompound& casa::WCCompound::operator= | ( | const WCCompound & | other | ) | [protected] |
Assignment (copy semantics) makes only sense for a derived class.
Comparison.
Reimplemented from casa::WCRegion.
Reimplemented in casa::WCConcatenation, casa::WCUnion, casa::WCIntersection, casa::WCDifference, casa::WCExtension, and casa::WCComplement.
const PtrBlock< const WCRegion * > & casa::WCCompound::regions | ( | ) | const [inline] |
static void casa::WCCompound::unmakeRecord | ( | PtrBlock< const WCRegion * > & | , |
const TableRecord & | , | ||
const String & | tableName | ||
) | [static, protected] |
Retrieve the contributing objects from the record.
Block<IPosition> casa::WCCompound::itsAxesUsed [private] |
Definition at line 151 of file WCCompound.h.
PtrBlock<const WCRegion*> casa::WCCompound::itsRegions [private] |
Definition at line 150 of file WCCompound.h.
Referenced by regions().