28 #ifndef LATTICES_LCREGIONMULTI_H
29 #define LATTICES_LCREGIONMULTI_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/lattices/LRegions/LCRegion.h>
34 #include <casacore/casa/Arrays/IPosition.h>
35 #include <casacore/casa/Containers/Block.h>
154 const Slicer& section) = 0;
void fillHasMask()
Determine if all regions have mask (used by LCIntersection).
virtual void multiGetSlice(Array< Bool > &buffer, const Slicer §ion)=0
Get the values from the class derived from Multi.
virtual Bool hasMask() const
Does the region have a mask?
const PtrBlock< const LCRegion * > & regions() const
Get the contributing regions.
Bool findAreas(IPosition &bufStart, IPosition &bufEnd, IPosition ®Start, IPosition ®End, const Slicer §ion, uInt regNr) const
Find which area of the section and region are needed.
PtrBlock< const LCRegion * > itsRegions
LCRegionMulti(const LCRegionMulti &other)
Copy constructor (copy semantics).
TableRecord makeRecord(const String &tableName) const
Store the contributing regions in a record.
static void unmakeRecord(PtrBlock< const LCRegion * > &, const TableRecord &, const String &tableName)
Retrieve the contributing objects from the record.
virtual Bool doGetSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
void multiTranslate(PtrBlock< const LCRegion * > &, const Vector< Float > &translateVector, const IPosition &newLatticeShape) const
Translate all regions.
LCRegionMulti(Bool takeOver, const PtrBlock< const LCRegion * > ®ions)
Construct from multiple regions given as a Block.
LCRegionMulti & operator=(const LCRegionMulti &other)
Assignment (copy semantics).
virtual Bool operator==(const LCRegion &other) const
Comparison
LCRegionMulti(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.
void init(Bool takeOver)
Check if the regions are correct.
LCRegionMulti(const LCRegion ®ion1, const LCRegion ®ion2)
Construct from 2 regions.
LCRegionMulti(const LCRegion *region, const IPosition &latticeShape)
Construct from lattice shape and region pointer, which is taken over.
const IPosition & latticeShape() const
Give the full lattice shape.
A drop-in replacement for Block<T*>.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.