28 #ifndef IMAGES_IMAGEEXPR_H 29 #define IMAGES_IMAGEEXPR_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/images/Images/ImageInterface.h> 35 #include <casacore/lattices/LEL/LatticeExpr.h> 36 #include <casacore/casa/Containers/Record.h> 37 #include <casacore/casa/Quanta/Unit.h> 45 template <
class T>
class Array;
46 class LatticeNavigator;
147 virtual void save (
const String& fileName)
const;
241 #ifndef CASACORE_NO_AUTO_TEMPLATES 242 #include <casacore/images/Images/ImageExpr.tcc> 243 #endif //# CASACORE_NO_AUTO_TEMPLATES A Vector of integers, for indexing into Array<T> objects.
virtual ImageInterface< T > * cloneII() const
Make a copy of the object (reference semantics).
virtual Bool isMasked() const
Has the object really a mask?
void init(const LatticeExpr< T > &latticeExpr, const String &expr, const String &fileName, const JsonKVMap &)
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle the (un)locking and syncing.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer &theSlice)
Do the actual get of the data.
virtual Bool isWritable() const
Returns False, as the ImageExpr is not writable.
virtual void tempClose()
Temporarily close the lattice.
~ImageExpr()
Destructor does nothing.
virtual String name(Bool stripPath=False) const
If the object is persistent, the file name is given.
virtual void resync()
Resynchronize the Lattice object with the lattice file.
virtual void save(const String &fileName) const
Save the image in an AipsIO file with the given name.
Hold mathematical expressions involving ImageInterface objects.
A base class for Lattice iterators.
Define the shape and tile shape.
A base class for astronomical images.
virtual Bool hasLock(FileLocker::LockType) const
Class to hold a collection of JSON key:value pairs.
virtual const LatticeRegion * getRegionPtr() const
Get the region used.
The letter class for image coordinates.
ImageExpr< T > & operator=(const ImageExpr< T > &other)
Assignment (reference semantics)
virtual Bool setMiscInfo(const RecordInterface &newInfo)
Replace the miscinfo in the ImageExpr, which writes the image.expr file.
virtual Bool ok() const
Check class invariants.
bool Bool
Define the standard types used by Casacore.
virtual IPosition shape() const
return the shape of the ImageExpr
virtual Bool isPersistent() const
Is the lattice persistent and can it be loaded by other processes as well?
ImageExpr()
The default constructor.
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual get of the mask data.
LatticeExpr< T > latticeExpr_p
Specify which elements to extract from an n-dimensional array.
const LatticeExpr< T > & expression() const
Get the lattice expression.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
putSlice is not possible on an expression, so it throws an exception.
virtual String imageType() const
Get the image type (returns name of derived class).
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Help the user pick a cursor for most efficient access if they only want pixel values and don't care a...
String: the storage and methods of handling collections of characters.
An optionally strided region in a Lattice.
void setFileName(const String &name)
Set the file name.
Abstract base class for Record classes.
LockType
Define the possible lock types.
virtual void resize(const TiledShape &newShape)
Function which changes the shape of the ImageExpr.
Class to allow C++ expressions involving lattices.
this file contains all the compiler specific defines
virtual void reopen()
Explicitly reopen the temporarily closed lattice.
Abstract base class to steer lattice iterators.
virtual LatticeIterInterface< T > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
These are the implementations of the LatticeIterator letters.