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