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>
215 #ifndef CASACORE_NO_AUTO_TEMPLATES
216 #include <casacore/lattices/Lattices/ExtendLattice.tcc>
ExtendLattice(const MaskedLattice< T > &lattice, const IPosition &newShape, const IPosition &newAxes, const IPosition &stretchAxes)
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Putting data is not possible.
virtual void reopen()
If needed, reopen a temporarily closed Lattice.
ExtendSpecifier itsExtendSpec
ExtendLattice(const Lattice< T > &lattice, const IPosition &newShape, const IPosition &extendAxes, const IPosition &stretchAxes)
Create a ExtendLattice from a Lattice.
virtual Lattice< Bool > & pixelMask()
virtual Bool isWritable() const
An ExtendLattice is not writable.
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.
virtual void flush()
Flush the data.
ExtendLattice(const ExtendLattice< T > &other)
Copy constructor (reference semantics).
Bool getMaskDataSlice(Array< Bool > &buffer, const Slicer §ion)
Get mask data from mask.
virtual Bool hasLock(FileLocker::LockType) const
void setPtr(Lattice< T > *latticePtr, MaskedLattice< T > *maskLatPtr)
Set the various pointer needed to construct the object.
ExtendLattice< T > & operator=(const ExtendLattice< T > &other)
Assignment (reference semantics).
virtual uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Get a section of the mask.
virtual void tempClose()
Close the Lattice temporarily (if it is paged to disk).
virtual Bool hasPixelMask() const
Does the ExtendLattice have a pixelmask?
virtual Bool isPaged() const
Is the ExtendLattice paged to disk?
virtual Bool ok() const
Check class internals - used for debugging.
ExtendLattice< Bool > * itsPixelMask
virtual void resync()
Resynchronize the Lattice object with the lattice file.
ExtendLattice()
The default constructor creates a ExtendLattice that is useless for just about everything,...
virtual const LatticeRegion * getRegionPtr() const
Get the region used (always returns 0).
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle locking of the ExtendLattice which is delegated to its parent.
virtual Bool isPersistent() const
An ExtendLattice is not persistent.
virtual Bool isMasked() const
Is the lattice masked? It is if its parent lattice is masked.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
Lattice< T > * itsLatticePtr
virtual IPosition shape() const
Returns the shape of the ExtendLattice.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
MaskedLattice< T > * itsMaskLatPtr
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
LockType
Define the possible lock types.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.