Go to the documentation of this file.
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;
47 template <
class T>
class LatticeIterInterface;
241 #ifndef CASACORE_NO_AUTO_TEMPLATES
242 #include <casacore/images/Images/ImageExpr.tcc>
243 #endif //# CASACORE_NO_AUTO_TEMPLATES
void init(const LatticeExpr< T > &latticeExpr, const String &expr, const String &fileName, const JsonKVMap &)
virtual const LatticeRegion * getRegionPtr() const
Get the region used.
const LatticeExpr< T > & expression() const
Get the lattice expression.
virtual Bool isWritable() const
Returns False, as the ImageExpr is not writable.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle the (un)locking and syncing.
virtual void save(const String &fileName) const
Save the image in an AipsIO file with the given name.
virtual LatticeIterInterface< T > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
These are the implementations of the LatticeIterator letters.
virtual IPosition shape() const
return the shape of the ImageExpr
ImageExpr(const LatticeExpr< T > &latticeExpr, const String &expr, const String &fileName=String())
Construct an ImageExpr from a LatticeExpr.
ImageExpr(const LatticeExpr< T > &latticeExpr, const String &expr, const String &fileName, const LELImageCoord &imCoord)
Same as previous constructor, but the coordinates are taken from the given LELImageCoord object.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer &theSlice)
Do the actual get of the data.
virtual Bool isMasked() const
Has the object really a mask?
LockType
Define the possible lock types.
ImageExpr< T > & operator=(const ImageExpr< T > &other)
Assignment (reference semantics)
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...
virtual Bool hasLock(FileLocker::LockType) const
virtual String name(Bool stripPath=False) const
If the object is persistent, the file name is given.
virtual Bool isPersistent() const
Is the lattice persistent and can it be loaded by other processes as well?
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual get of the mask data.
ImageExpr(const LatticeExpr< T > &latticeExpr, const String &expr, const String &fileName, const JsonKVMap &)
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).
void setFileName(const String &name)
Set the file name.
this file contains all the compiler specific defines
LatticeExpr< T > latticeExpr_p
ImageExpr(const ImageExpr< T > &other)
Copy constructor (reference semantics)
~ImageExpr()
Destructor does nothing.
virtual ImageInterface< T > * cloneII() const
Make a copy of the object (reference semantics).
ImageExpr()
The default constructor.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
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.
virtual void resize(const TiledShape &newShape)
Function which changes the shape of the ImageExpr.