casa
5.7.0-16
|
Class to convert a region to a boolean node. More...
#include <LELRegion.h>
Public Member Functions | |
LELRegionAsBool (const LELRegion ®ion) | |
Constructor. More... | |
~LELRegionAsBool () | |
Destructor. More... | |
virtual void | eval (LELArray< Bool > &result, const Slicer §ion) const |
Get region data. More... | |
virtual LELScalar< Bool > | getScalar () const |
Getting region data as a scalar 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 () |
Private Attributes | |
LatticeRegion | region_p |
Member variables. More... | |
Additional Inherited Members | |
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... | |
Protected Member Functions inherited from casacore::LELInterface< Bool > | |
void | setAttr (const LELAttribute &attrib) |
Set the expression attributes of this object. More... | |
Class to convert a region to a boolean node.
Internal
This derived LEL letter class handles a region as a boolean lattice.
This class makes it possible to handle a region as a true boolean lattice without the need to apply the region to an image. It means that it is only possible if the region has absolute lattice coordinates.
A description of the implementation details of the LEL classes can be found in Note 216
It is useful to be able to handle a mask as a boolean lattice.
Definition at line 182 of file LELRegion.h.
casacore::LELRegionAsBool::LELRegionAsBool | ( | const LELRegion & | region | ) |
Constructor.
casacore::LELRegionAsBool::~LELRegionAsBool | ( | ) |
Destructor.
|
virtual |
Get class name.
Implements casacore::LELInterface< Bool >.
|
virtual |
Get region data.
Implements casacore::LELInterface< Bool >.
Getting region data as a scalar cannot be done (throws an exception).
Implements casacore::LELInterface< Bool >.
|
virtual |
Do further preparations (e.g.
optimization) on the expression.
Implements casacore::LELInterface< Bool >.
|
private |
Member variables.
Definition at line 206 of file LELRegion.h.