Go to the documentation of this file.
29 #ifndef LATTICES_EXTENDLATTICE_H
30 #define LATTICES_EXTENDLATTICE_H
34 #include <casacore/casa/aips.h>
35 #include <casacore/lattices/Lattices/MaskedLattice.h>
36 #include <casacore/casa/Arrays/ExtendSpecifier.h>
78 template<
class T>
class ExtendLattice:
public MaskedLattice<T>
96 ExtendLattice (
const Lattice<T>& lattice,
const IPosition& newShape,
97 const IPosition& extendAxes,
const IPosition& stretchAxes);
98 ExtendLattice (
const MaskedLattice<T>& lattice,
const IPosition& newShape,
99 const IPosition& newAxes,
const IPosition& stretchAxes);
108 ExtendLattice<T>&
operator= (
const ExtendLattice<T>& other);
111 virtual MaskedLattice<T>*
cloneML()
const;
145 virtual void flush();
161 virtual const Lattice<Bool>&
pixelMask()
const;
169 virtual IPosition
shape()
const;
182 virtual Bool doGetSlice (Array<T>& buffer,
const Slicer& section);
185 virtual void doPutSlice (
const Array<T>& sourceBuffer,
186 const IPosition& where,
187 const IPosition& stride);
199 void setPtr (Lattice<T>* latticePtr, MaskedLattice<T>* maskLatPtr);
215 #ifndef CASACORE_NO_AUTO_TEMPLATES
216 #include <casacore/lattices/Lattices/ExtendLattice.tcc>
217 #endif //# CASACORE_NO_AUTO_TEMPLATES
Bool getMaskDataSlice(Array< Bool > &buffer, const Slicer §ion)
Get mask data from mask.
A templated, abstract base class for array-like objects with masks.
virtual String name(Bool stripPath=False) const
Return the name of the parent lattice.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Putting data is not possible.
virtual uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
void setPtr(Lattice< T > *latticePtr, MaskedLattice< T > *maskLatPtr)
Set the various pointer needed to construct the object.
virtual MaskedLattice< T > * cloneML() const
Make a copy of the object (reference semantics).
LockType
Define the possible lock types.
virtual void reopen()
If needed, reopen a temporarily closed Lattice.
virtual const LatticeRegion * getRegionPtr() const
Get the region used (always returns 0).
virtual void flush()
Flush the data.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle locking of the ExtendLattice which is delegated to its parent.
virtual Bool isWritable() const
An ExtendLattice is not writable.
virtual Bool isPaged() const
Is the ExtendLattice paged to disk?
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
virtual Bool ok() const
Check class internals - used for debugging.
virtual Bool hasLock(FileLocker::LockType) const
ExtendLattice()
The default constructor creates a ExtendLattice that is useless for just about everything,...
Lattice< T > * itsLatticePtr
virtual IPosition shape() const
Returns the shape of the ExtendLattice.
this file contains all the compiler specific defines
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
ExtendLattice< Bool > * itsPixelMask
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
virtual void resync()
Resynchronize the Lattice object with the lattice file.
MaskedLattice< T > * itsMaskLatPtr
Specification of new and stretched lattice axes.
A templated, abstract base class for array-like objects.
ExtendSpecifier itsExtendSpec
bool Bool
Define the standard types used by Casacore.
virtual Bool hasPixelMask() const
Does the ExtendLattice have a pixelmask?
ExtendLattice< T > & operator=(const ExtendLattice< T > &other)
Assignment (reference semantics).
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Get a section of the mask.
An extension of a Lattice or MaskedLattice.
virtual Bool isPersistent() const
An ExtendLattice is not persistent.
virtual void tempClose()
Close the Lattice temporarily (if it is paged to disk).
virtual Bool isMasked() const
Is the lattice masked? It is if its parent lattice is masked.