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 84 of file WCCompound.h.
casacore::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.
casacore::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 | |||
) |
casacore::WCCompound::WCCompound | ( | const PtrBlock< const ImageRegion * > & | 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.
casacore::WCCompound::WCCompound | ( | const WCCompound & | other | ) |
Copy constructor (copy semantics).
virtual casacore::WCCompound::~WCCompound | ( | ) | [virtual] |
void casacore::WCCompound::init | ( | Bool | takeOver | ) | [private] |
Check if the regions are correct.
If needed, make a copy of the region objects.
TableRecord casacore::WCCompound::makeRecord | ( | const String & | tableName | ) | const [protected] |
Store the contributing regions in a record.
void casacore::WCCompound::makeWCRegion | ( | const PtrBlock< const ImageRegion * > & | ) | [private] |
Check if the ImageRegion's contain WCRegion's and extract them.
WCCompound& casacore::WCCompound::operator= | ( | const WCCompound & | other | ) | [protected] |
Assignment (copy semantics) makes only sense for a derived class.
Reimplemented from casacore::WCRegion.
Reimplemented in casacore::WCComplement, casacore::WCConcatenation, casacore::WCDifference, casacore::WCExtension, casacore::WCIntersection, and casacore::WCUnion.
Comparison.
Reimplemented in casacore::WCComplement, casacore::WCConcatenation, casacore::WCDifference, casacore::WCExtension, casacore::WCIntersection, and casacore::WCUnion.
static void casacore::WCCompound::unmakeRecord | ( | PtrBlock< const WCRegion * > & | , | |
const TableRecord & | , | |||
const String & | tableName | |||
) | [static, protected] |
Retrieve the contributing objects from the record.
Block<IPosition> casacore::WCCompound::itsAxesUsed [private] |
Definition at line 152 of file WCCompound.h.
PtrBlock<const WCRegion*> casacore::WCCompound::itsRegions [private] |
Definition at line 151 of file WCCompound.h.
Referenced by regions().