29 #ifndef LATTICES_EXTENDLATTICE_H
30 #define LATTICES_EXTENDLATTICE_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
ExtendLattice()
The default constructor creates a ExtendLattice that is useless for just about everything, except that it can be assigned to with the assignment operator.
virtual IPosition shape() const
Returns the shape of the ExtendLattice.
Bool getMaskDataSlice(Array< Bool > &buffer, const Slicer §ion)
Get mask data from mask.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
virtual void flush()
Flush the data.
virtual Bool ok() const
Check class internals - used for debugging.
virtual void tempClose()
Close the Lattice temporarily (if it is paged to disk).
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle locking of the ExtendLattice which is delegated to its parent.
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Get a section of the mask.
virtual Bool isMasked() const
Is the lattice masked? It is if its parent lattice is masked.
A templated, abstract base class for array-like objects with masks.
virtual Bool isWritable() const
An ExtendLattice is not writable.
Lattice< T > * itsLatticePtr
virtual void reopen()
If needed, reopen a temporarily closed Lattice.
A templated, abstract base class for array-like objects.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
virtual Bool hasPixelMask() const
Does the ExtendLattice have a pixelmask?
bool Bool
Define the standard types used by Casacore.
An extension of a Lattice or MaskedLattice.
ExtendSpecifier itsExtendSpec
virtual Bool isPersistent() const
An ExtendLattice is not persistent.
virtual uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
ExtendLattice< T > & operator=(const ExtendLattice< T > &other)
Assignment (reference semantics).
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
virtual Bool isPaged() const
Is the ExtendLattice paged to disk?
virtual MaskedLattice< T > * cloneML() const
Make a copy of the object (reference semantics).
virtual String name(Bool stripPath=False) const
Return the name of the parent lattice.
Specification of new and stretched lattice axes.
virtual void resync()
Resynchronize the Lattice object with the lattice file.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Putting data is not possible.
void setPtr(Lattice< T > *latticePtr, MaskedLattice< T > *maskLatPtr)
Set the various pointer needed to construct the object.
MaskedLattice< T > * itsMaskLatPtr
LockType
Define the possible lock types.
virtual Bool hasLock(FileLocker::LockType) const
virtual const LatticeRegion * getRegionPtr() const
Get the region used (always returns 0).
ExtendLattice< Bool > * itsPixelMask