28 #ifndef IMAGES_SUBIMAGE_H 29 #define IMAGES_SUBIMAGE_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/images/Images/ImageInterface.h> 35 #include <casacore/casa/Arrays/AxesSpecifier.h> 41 class LattRegionHolder;
44 template <
class T>
class Array;
117 Bool writableIfPossible,
128 Bool writableIfPossible,
248 virtual void flush();
286 #ifndef CASACORE_NO_AUTO_TEMPLATES 287 #include <casacore/images/Images/SubImage.tcc> 288 #endif //# CASACORE_NO_AUTO_TEMPLATES virtual const LatticeRegion * getRegionPtr() const
Get the region/mask object describing this subImage.
A Vector of integers, for indexing into Array<T> objects.
A subset of a Lattice or MaskedLattice.
virtual Bool ok() const
Check class invariants.
virtual Bool conform(const Lattice< T > &other) const
returns a value of "True" if this instance of Lattice and 'other' have the same shape, otherwise returns a value of "False".
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 Bool canReferenceArray() const
Can the lattice data be referenced as an array section?
virtual void putAt(const T &value, const IPosition &where)
Put the value of a single element.
virtual void flush()
Flush the data (but do not unlock).
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask in use (thus to the pixelmask of the parent).
SubLattice< T > * itsSubLatPtr
virtual T getAt(const IPosition &where) const
Get or put a single element in the lattice.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
virtual String name(Bool stripPath=False) const
Return the name of the parent ImageInterface object.
virtual ImageInterface< T > * cloneII() const
Make a copy of the object (reference semantics).
virtual Bool isWritable() const
Is the SubImage writable?
SubImage< T > & operator=(const SubImage< T > &other)
Assignment (reference semantics).
Abstract base class for an image attributes handler.
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...
Specification of axes to keep or remove.
virtual IPosition shape() const
Returns the shape of the SubImage including all degenerate axes (i.e.
A base class for Lattice iterators.
Define the shape and tile shape.
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 Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Get a section of the mask.
virtual size_t nelements() const
Returns the total number of elements in this SubImage.
virtual Bool isPaged() const
Is the SubImage paged to disk?
virtual Bool isPersistent() const
A SubImage is persistent if no region is applied to the parent image.
Class to hold a region of interest in an image.
bool Bool
Define the standard types used by Casacore.
virtual Bool hasPixelMask() const
Does the image object have a pixelmask? It does if its parent has a pixelmask.
A (masked) subset of an ImageInterface object.
template <class T, class U> class vector;
void convertIPosition(Vector< Float > &x, const IPosition &pos) const
Helper.
virtual Bool isMasked() const
Is the SubImage masked? It is if its parent image or its region is masked.
Specify which elements to extract from an n-dimensional array.
SubImage()
The default constructor.
virtual uInt ndim() const
Returns the number of axes in this SubImage.
const LatticeRegion & region() const
Get the region used.
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.
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 String imageType() const
Get the image type (returns name of derived class).
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 uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
ImageInterface< T > * itsImagePtr
this file contains all the compiler specific defines
virtual Bool hasLock(FileLocker::LockType) const
Interconvert pixel and world coordinates.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Abstract base class to steer lattice iterators.