28 #ifndef IMAGES_SUBIMAGE_H
29 #define IMAGES_SUBIMAGE_H
41 class LattRegionHolder;
43 template <
class T>
class SubLattice;
44 template <
class T>
class Array;
45 class LatticeNavigator;
117 Bool writableIfPossible,
128 Bool writableIfPossible,
248 virtual void flush();
289 #ifndef CASACORE_NO_AUTO_TEMPLATES
290 #include <casacore/images/Images/SubImage.tcc>
291 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
A subset of a Lattice or MaskedLattice.
virtual void resize(const TiledShape &newShape)
Function which changes the shape of the SubImage.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle the (un)locking and syncing, etc.
virtual size_t nelements() const
Returns the total number of elements in this SubImage.
virtual Bool hasLock(FileLocker::LockType) const
virtual void putAt(const T &value, const IPosition &where)
Put the value of a single element.
virtual Bool isPaged() const
Is the SubImage paged to disk?
virtual void flush()
Flush the data (but do not unlock).
virtual uInt ndim() const
Returns the number of axes in this SubImage.
SubLattice< T > * itsSubLatPtr
virtual IPosition shape() const
Returns the shape of the SubImage including all degenerate axes (i.e.
virtual ImageInterface< T > * cloneII() const
Make a copy of the object (reference semantics).
virtual Bool isPersistent() const
A SubImage is persistent if no region is applied to the parent image.
virtual const LatticeRegion * getRegionPtr() const
Get the region/mask object describing this subImage.
virtual T getAt(const IPosition &where) const
Get or put a single element in the lattice.
virtual uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
SubImage< T > & operator=(const SubImage< T > &other)
Assignment (reference semantics).
Abstract base class for an image attributes handler.
Specification of axes to keep or remove.
virtual Bool hasPixelMask() const
Does the image object have a pixelmask? It does if its parent has a pixelmask.
A base class for Lattice iterators.
Define the shape and tile shape.
virtual Bool isWritable() const
Is the SubImage writable?
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
A base class for astronomical images.
virtual String imageType() const
Get the image type (returns name of derived class).
virtual Bool isMasked() const
Is the SubImage masked? It is if its parent image or its region is masked.
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Get a section of the mask.
virtual LatticeIterInterface< T > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
This function is used by the LatticeIterator class to generate an iterator of the correct type for th...
void convertIPosition(Vector< Float > &x, const IPosition &pos) const
Helper.
Class to hold a region of interest in an image.
bool Bool
Define the standard types used by Casacore.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
A (masked) subset of an ImageInterface object.
template <class T, class U> class vector;
Specify which elements to extract from an n-dimensional array.
virtual Bool ok() const
Check class invariants.
SubImage()
The default constructor.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual getting of an array of values.
virtual ImageAttrHandler & attrHandler(Bool createHandler=False)
Get access to the attribute handler (of the parent image).
void setMembers()
Set the other members to the one in itsImagePtr.
const LatticeRegion & region() const
Get the region used.
virtual void resync()
Resynchronize the Lattice object with the lattice file.
virtual void tempClose()
Temporarily close the lattice.
String: the storage and methods of handling collections of characters.
An optionally strided region in a Lattice.
virtual Bool canReferenceArray() const
Can the lattice data be referenced as an array section?
void setCoords(const CoordinateSystem &coords, Bool preserveAxesOrder)
Set the coordinates.
virtual void reopen()
Explicitly reopen the temporarily closed lattice.
LockType
Define the possible lock types.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask in use (thus to the pixelmask of the parent).
ImageInterface< T > * itsImagePtr
Interconvert pixel and world coordinates.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
virtual Bool conform(const Lattice< T > &other) const
returns a value of "True" if this instance of Lattice and 'other' have the same shape...
virtual String name(Bool stripPath=False) const
Return the name of the parent ImageInterface object.
Abstract base class to steer lattice iterators.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.