28 #ifndef LATTICES_MASKEDLATTICE_H
29 #define LATTICES_MASKEDLATTICE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/lattices/Lattices/Lattice.h>
328 #ifndef CASACORE_NO_AUTO_TEMPLATES
329 #include <casacore/lattices/Lattices/MaskedLattice.tcc>
virtual IPosition shape() const =0
Return the shape of the Lattice including all degenerate axes (ie.
Array< Bool > getMask(Bool removeDegenerateAxes=False) const
Bool getMask(COWPtr< Array< Bool > > &buffer, Bool removeDegenerateAxes=False) const
Get the mask or a slice from the mask.
MaskedLattice()
Default constructor.
virtual const LatticeRegion * getRegionPtr() const =0
Get a pointer to the region used.
Bool getMaskSlice(COWPtr< Array< Bool > > &buffer, const Slicer §ion, Bool removeDegenerateAxes=False) const
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
The function (in the derived classes) doing the actual work.
Bool getMaskSlice(COWPtr< Array< Bool > > &buffer, const IPosition &start, const IPosition &shape, Bool removeDegenerateAxes=False) const
Bool getMaskSlice(Array< Bool > &buffer, const IPosition &start, const IPosition &shape, const IPosition &stride, Bool removeDegenerateAxes=False)
virtual Lattice< Bool > & pixelMask()
Bool getMaskSlice(Array< Bool > &buffer, const IPosition &start, const IPosition &shape, Bool removeDegenerateAxes=False)
const LatticeRegion & region() const
Get the region used.
Array< Bool > getMaskSlice(const IPosition &start, const IPosition &shape, Bool removeDegenerateAxes=False) const
Array< Bool > getMaskSlice(const Slicer §ion, Bool removeDegenerateAxes=False) const
MaskedLattice(const MaskedLattice< T > &)
Copy constructor.
virtual Bool hasPixelMask() const
Does the lattice have a pixelmask? The default implementation returns False.
virtual MaskedLattice< T > * cloneML() const =0
Make a copy of the object (reference semantics).
virtual ~MaskedLattice()
a virtual destructor is needed so that it will use the actual destructor in the derived class
virtual Bool isMasked() const
Has the object really a mask? The default implementation returns True if the MaskedLattice has a regi...
Bool getMaskSlice(Array< Bool > &buffer, const Slicer §ion, Bool removeDegenerateAxes=False)
Array< Bool > getMaskSlice(const IPosition &start, const IPosition &shape, const IPosition &stride, Bool removeDegenerateAxes=False) const
virtual Lattice< T > * clone() const
Make a copy of the derived object (reference semantics).
LatticeRegion * itsDefRegPtr
Bool getMaskSlice(COWPtr< Array< Bool > > &buffer, const IPosition &start, const IPosition &shape, const IPosition &stride, Bool removeDegenerateAxes=False) const
MaskedLattice< T > & operator=(const MaskedLattice< T > &)
Assignment can only be used by derived classes.
Bool getMask(Array< Bool > &buffer, Bool removeDegenerateAxes=False)
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.