28 #ifndef LATTICES_LELREGION_H
29 #define LATTICES_LELREGION_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/lattices/LEL/LELInterface.h>
35 #include <casacore/lattices/LRegions/LatticeRegion.h>
40 class LattRegionHolder;
193 const Slicer& section)
const;
Class to convert a region to a boolean node.
LatticeRegion region_p
Member variables.
virtual void eval(LELArray< Bool > &result, const Slicer §ion) const
Get region data.
virtual Bool prepareScalarExpr()
Do further preparations (e.g.
~LELRegionAsBool()
Destructor.
LELRegionAsBool(const LELRegion ®ion)
Constructor.
virtual LELScalar< Bool > getScalar() const
Getting region data as a scalar cannot be done (throws an exception).
virtual String className() const
Get class name.
const LattRegionHolder & region() const
Get a pointer to the region object.
virtual LELScalar< Bool > getScalar() const
Getting region data cannot be done (throws an exception).
virtual String className() const
Get class name.
static LELRegion * makeComplement(const LELInterface< Bool > &expr)
LattRegionHolder * region_p
Member variables.
static LELRegion * makeDifference(const LELInterface< Bool > &left, const LELInterface< Bool > &right)
virtual Bool prepareScalarExpr()
Do further preparations (e.g.
static LELRegion * makeIntersection(const LELInterface< Bool > &left, const LELInterface< Bool > &right)
virtual void eval(LELArray< Bool > &, const Slicer &) const
Getting region data cannot be done (throws an exception).
static const LattRegionHolder & region(const LELInterface< Bool > &expr)
Get the LattRegionHolder after checking that the expression is a region.
LELRegion(LattRegionHolder *region)
Constructor.
static void checkTypes(const LattRegionHolder &left, const LattRegionHolder &right)
Check if both regions have the same type (pixel or world) and if no LCSlicer type of region is used.
static LELRegion * makeUnion(const LELInterface< Bool > &left, const LELInterface< Bool > &right)
Form a compound from the regions.
LELRegion(const LattRegionHolder ®ion)
Constructor.
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.