|
| 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. More...
|
|
| ExtendLattice (const Lattice< T > &lattice, const IPosition &newShape, const IPosition &extendAxes, const IPosition &stretchAxes) |
| Create a ExtendLattice from a Lattice. More...
|
|
| ExtendLattice (const MaskedLattice< T > &lattice, const IPosition &newShape, const IPosition &newAxes, const IPosition &stretchAxes) |
|
| ExtendLattice (const ExtendLattice< T > &other) |
| Copy constructor (reference semantics). More...
|
|
virtual | ~ExtendLattice () |
|
ExtendLattice< T > & | operator= (const ExtendLattice< T > &other) |
| Assignment (reference semantics). More...
|
|
virtual MaskedLattice< T > * | cloneML () const |
| Make a copy of the object (reference semantics). More...
|
|
virtual Bool | isMasked () const |
| Is the lattice masked? It is if its parent lattice is masked. More...
|
|
virtual Bool | isPersistent () const |
| An ExtendLattice is not persistent. More...
|
|
virtual Bool | isPaged () const |
| Is the ExtendLattice paged to disk? More...
|
|
virtual Bool | isWritable () const |
| An ExtendLattice is not writable. More...
|
|
virtual Bool | lock (FileLocker::LockType, uInt nattempts) |
| Handle locking of the ExtendLattice which is delegated to its parent. More...
|
|
virtual void | unlock () |
|
virtual Bool | hasLock (FileLocker::LockType) const |
|
virtual void | resync () |
| Resynchronize the Lattice object with the lattice file. More...
|
|
virtual void | flush () |
| Flush the data. More...
|
|
virtual void | tempClose () |
| Close the Lattice temporarily (if it is paged to disk). More...
|
|
virtual void | reopen () |
| If needed, reopen a temporarily closed Lattice. More...
|
|
virtual Bool | hasPixelMask () const |
| Does the ExtendLattice have a pixelmask? More...
|
|
virtual const Lattice< Bool > & | pixelMask () const |
| Get access to the pixelmask. More...
|
|
virtual Lattice< Bool > & | pixelMask () |
|
virtual const LatticeRegion * | getRegionPtr () const |
| Get the region used (always returns 0). More...
|
|
virtual IPosition | shape () const |
| Returns the shape of the ExtendLattice. More...
|
|
virtual String | name (Bool stripPath=False) const |
| Return the name of the parent lattice. More...
|
|
virtual uInt | advisedMaxPixels () const |
| This function returns the recommended maximum number of pixels to include in the cursor of an iterator. More...
|
|
virtual Bool | ok () const |
| Check class internals - used for debugging. More...
|
|
virtual Bool | doGetSlice (Array< T > &buffer, const Slicer §ion) |
| Do the actual getting of an array of values. More...
|
|
virtual void | doPutSlice (const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride) |
| Putting data is not possible. More...
|
|
virtual Bool | doGetMaskSlice (Array< Bool > &buffer, const Slicer §ion) |
| Get a section of the mask. More...
|
|
virtual IPosition | doNiceCursorShape (uInt maxPixels) const |
| Get the best cursor shape. More...
|
|
template<class T>
class casacore::ExtendLattice< T >
An extension of a Lattice or MaskedLattice.
Intended use:
Public interface
Review Status
- Date Reviewed:
- yyyy/mm/dd
Prerequisite
Synopsis
An ExtendLattice is a lattice virtually extending another lattice by stretching axes with length 1 and/or by adding new axes. It is useful for e.g. LEL to have the same shapes for lattices. An ExtendLattice is not writable (since many pixels map to the same underlying pixel).
Example
Template Type Argument Requirements (T)
-
Any type that can be used by the Tables System can also be used by this class.
Definition at line 40 of file ExtendImage.h.
Create a ExtendLattice from a Lattice.
newShape
gives the new shape.
newAxes
gives the new axes in newShape.
stretchAxes
gives the stretched axes in newShape.
E.g. lattice has shape [32,1,5,1], newShape=[32,1,4,5,10], newAxes=[2], and stretchAxes=[4]. It means that axes 2 in the newShape is a new axes and that axes 4 in the new shape is stretched. The other axes in the new shape have to match the other axes in the old shape. Note that stretched axes have to have length 1 in the old shape.