26#ifndef LATTICES_LCMASK_H
27#define LATTICES_LCMASK_H
30#include <casacore/casa/aips.h>
31#include <casacore/lattices/LRegions/LCBox.h>
32#include <casacore/lattices/Lattices/Lattice.h>
109 Bool useRef)
const override;
187 const IPosition& newLatticeShape)
const override;
LockType
Define the possible lock types.
LCMask(const IPosition &latticeShape)
Construct an LCMask object for a full lattice with the given shape.
void showCacheStatistics(std::ostream &os) const override
Report on cache success.
static String className()
Get the class name (to store in the record).
LCRegion * cloneRegion() const override
Make a copy of the derived object.
void tempClose() override
Temporarily close the lattice.
void setCacheSizeFromPath(const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath) override
Set the cache size as to "fit" the indicated path.
virtual ~LCMask()
Destructor.
LCMask(const IPosition &maskShape, const LCBox &box)
Construct an LCMask object for the part of a lattice given by the box.
uInt maximumCacheSize() const override
Maximum size - not necessarily all used.
IPosition doNiceCursorShape(uInt maxPixels) const override
Help the user pick a cursor for most efficient access.
LatticeIterInterface< Bool > * makeIter(const LatticeNavigator &navigator, Bool useRef) const override
This function is used by the LatticeIterator class to generate an iterator of the correct type for th...
void flush() override
Flush the data (but do not unlock).
LCMask(const LCMask &other)
Copy constructor (copy semantics).
void reopen() override
Explicitly reopen the temporarily closed lattice.
Bool hasLock(FileLocker::LockType) const override
void setCacheSizeInTiles(uInt howManyTiles) override
Set the actual cache size for this Array to be be big enough for the indicated number of tiles.
Bool lock(FileLocker::LockType, uInt nattempts) override
Handle the (un)locking.
LCMask(Lattice< Bool > &mask)
Construct an LCMask object for a full lattice with the shape of the mask.
void resync() override
Resynchronize the object with the contenta tof the possible file.
uInt advisedMaxPixels() const override
Returns the maximum recommended number of pixels for a cursor.
void setMaximumCacheSize(uInt howManyPixels) override
Set the maximum (allowed) cache size as indicated.
Bool isWritable() const override
An LCMask is writable if the underlying Lattice is.
LCMask(Lattice< Bool > &mask, const LCBox &box)
Construct an LCMask object for the part of a lattice given by the box.
Lattice< Bool > * itsMask
Bool equals(const LCRegion &other) const override
Comparison.
TableRecord toRecord(const String &tableName) const override
Convert the (derived) object to a record.
void clearCache() override
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSiz...
LCMask & operator=(const LCMask &other)
Assignment (reference semantics).
String type() const override
Region type.
LCRegion * doTranslate(const Vector< Float > &translateVector, const IPosition &newLatticeShape) const override
Construct another LCMask (for e.g.
const IPosition & latticeShape() const
Give the full lattice shape.
String: the storage and methods of handling collections of characters.
For temporary backward namespace compatibility, use casa as alias for casacore.
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
bool Bool
Define the standard types used by Casacore.