28 #ifndef LATTICES_REBINLATTICE_H
29 #define LATTICES_REBINLATTICE_H
79 class RebinLattice :
public MaskedLattice<T>
97 RebinLattice<T>&
operator=(
const RebinLattice<T>& other);
100 virtual MaskedLattice<T>*
cloneML()
const;
131 virtual void flush();
146 virtual IPosition
shape()
const;
160 virtual Bool doGetSlice (Array<T>& buffer,
const Slicer& section);
164 virtual void doPutSlice (
const Array<T>& sourceBuffer,
165 const IPosition& where,
166 const IPosition& stride);
175 static IPosition
rebinShape (
const IPosition& shapeLatticeIn,
176 const IPosition&
bin);
181 void bin(
const Array<T>& dataIn);
182 void bin(
const Array<T>& dataIn,
const Array<Bool>& maskIn);
197 #ifndef CASACORE_NO_AUTO_TEMPLATES
198 #include <casacore/lattices/Lattices/RebinLattice.tcc>
199 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
virtual const LatticeRegion * getRegionPtr() const
Get a pointer the region/mask object.
virtual void resync()
Resynchronize the Lattice object with the lattice file.
RebinLattice< T > & operator=(const RebinLattice< T > &other)
Assignment (reference semantics)
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual putting of an array of values.
virtual Bool isWritable() const
The lattice is not writable.
virtual Bool hasLock(FileLocker::LockType) const
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Get a section of the mask.
virtual void flush()
Flush the data.
void bin(const Array< T > &dataIn)
A templated, abstract base class for array-like objects with masks.
virtual void tempClose()
Close the Lattice temporarily (if it is paged to disk).
virtual Bool ok() const
Check class internals - used for debugging.
RebinLattice()
Default constructor (Object is unuseable)
virtual MaskedLattice< T > * cloneML() const
Make a copy of the object (reference semantics).
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle locking of the lattice which is delegated to its parent.
Slicer findOriginalSlicer(const Slicer §ion) const
virtual uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
bool Bool
Define the standard types used by Casacore.
virtual void reopen()
If needed, reopen a temporarily closed Lattice.
virtual ~RebinLattice()
Destructor.
virtual String name(Bool stripPath=False) const
Return the name of the parent lattice.
MaskedLattice< T > * itsLatticePtr
virtual IPosition shape() const
Returns the shape of the lattice.
Specify which elements to extract from an n-dimensional array.
virtual Bool isPaged() const
Is the lattice paged to disk?
virtual Bool isMasked() const
Is the lattice masked? It is if its parent lattice is masked.
static IPosition rebinShape(const IPosition &shapeLatticeIn, const IPosition &bin)
Static function needed by LEL.
LockType
Define the possible lock types.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
void getDataAndMask(const Slicer §ion)