casacore
|
Class to hold a region as a LEL node. More...
#include <LELRegion.h>
Public Member Functions | |
LELRegion (const LattRegionHolder ®ion) | |
Constructor. More... | |
LELRegion (LattRegionHolder *region) | |
Constructor. More... | |
~LELRegion () | |
Destructor. More... | |
const LattRegionHolder & | region () const |
Get a pointer to the region object. More... | |
virtual void | eval (LELArray< Bool > &, const Slicer &) const |
Getting region data cannot be done (throws an exception). More... | |
virtual LELScalar< Bool > | getScalar () const |
Getting region data cannot be done (throws an exception). More... | |
virtual Bool | prepareScalarExpr () |
Do further preparations (e.g. More... | |
virtual String | className () const |
Get class name. More... | |
Public Member Functions inherited from casacore::LELInterface< Bool > | |
virtual | ~LELInterface () |
Virtual destructor. More... | |
virtual void | evalRef (LELArrayRef< Bool > &result, const Slicer §ion) const |
LELArray< Bool > | getArray () const |
Get the result of an array subexpression. More... | |
Bool | isScalar () const |
Is the result of evaluating this expression a scalar ? More... | |
const IPosition & | shape () const |
Get the shape of the expression result. More... | |
const LELAttribute & | getAttribute () const |
Get expression attribute. More... | |
virtual Bool | lock (FileLocker::LockType, uInt nattempts) |
Handle locking/syncing of the parts of a lattice expression. More... | |
virtual void | unlock () |
virtual Bool | hasLock (FileLocker::LockType) const |
virtual void | resync () |
Static Public Member Functions | |
static LELRegion * | makeUnion (const LELInterface< Bool > &left, const LELInterface< Bool > &right) |
Form a compound from the regions. More... | |
static LELRegion * | makeIntersection (const LELInterface< Bool > &left, const LELInterface< Bool > &right) |
static LELRegion * | makeDifference (const LELInterface< Bool > &left, const LELInterface< Bool > &right) |
static LELRegion * | makeComplement (const LELInterface< Bool > &expr) |
Static Public Member Functions inherited from casacore::LELInterface< Bool > | |
static Bool | replaceScalarExpr (CountedPtr< LELInterface< Bool > > &expr) |
If the given expression is a valid scalar, replace it by its result. More... | |
Static Private Member Functions | |
static const LattRegionHolder & | region (const LELInterface< Bool > &expr) |
Get the LattRegionHolder after checking that the expression is a region. More... | |
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. More... | |
Private Attributes | |
LattRegionHolder * | region_p |
Member variables. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from casacore::LELInterface< Bool > | |
void | setAttr (const LELAttribute &attrib) |
Set the expression attributes of this object. More... | |
Class to hold a region as a LEL node.
Internal
This derived LEL letter class handles regions.
This LEL letter class is derived from LELInterface. It is used to construct LEL objects from regions. The internal region is an ImageRegion object, thus the region can be of any type. With operator [] a region is applied to an image (expression). At that stage possible world coordinates are converted to lattice coordinates.
The attributes of a LELRegion object define an empty shape, because in general the shape of a region is only known after it is applied to an image.
A description of the implementation details of the LEL classes can be found in Note 216
We needed to be able to handle regions in a LEL expression.
Definition at line 89 of file LELRegion.h.
casacore::LELRegion::LELRegion | ( | const LattRegionHolder & | region | ) |
Constructor.
casacore::LELRegion::LELRegion | ( | LattRegionHolder * | region | ) |
Constructor.
It takes over the pointer.
casacore::LELRegion::~LELRegion | ( | ) |
Destructor.
|
staticprivate |
Check if both regions have the same type (pixel or world) and if no LCSlicer type of region is used.
|
virtual |
Get class name.
Implements casacore::LELInterface< Bool >.
Getting region data cannot be done (throws an exception).
Implements casacore::LELInterface< Bool >.
Getting region data cannot be done (throws an exception).
Implements casacore::LELInterface< Bool >.
|
static |
|
static |
|
static |
|
static |
Form a compound from the regions.
|
virtual |
Do further preparations (e.g.
optimization) on the expression.
Implements casacore::LELInterface< Bool >.
|
inline |
Get a pointer to the region object.
Definition at line 102 of file LELRegion.h.
References region_p.
|
staticprivate |
Get the LattRegionHolder after checking that the expression is a region.
|
private |