28 #ifndef IMAGES_IMAGEREGION_H
29 #define IMAGES_IMAGEREGION_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/lattices/LRegions/LattRegionHolder.h>
38 class CoordinateSystem;
136 const Record& regionRecord);
virtual LattRegionHolder * makeIntersection(const LattRegionHolder &other) const
const LCRegion & asLCRegion() const
Get the region as an LCSlicer or WCRegion.
static ImageRegion * fromLatticeExpression(const String &latticeExpression)
Create an ImageRegion from a lattice expression.
LCRegion * toLCRegion(const CoordinateSystem &cSys, const IPosition &shape) const
Convert to an LCRegion using the given coordinate system (with reference pixel) and shape.
ImageRegion(const LCSlicer &)
Construct from a slicer based on lattice coordinates.
TableRecord toRecord(const String &tableName) const
Convert the (derived) object to a record.
virtual ImageRegion * clone() const
Clone the object.
ImageRegion()
Default constructor (has no region at all).
ImageRegion(const LCRegion &)
Construct from a region based on lattice coordinates.
virtual LattRegionHolder * makeDifference(const LattRegionHolder &other) const
ImageRegion(LCRegion *)
Similar constructors as above, but using a pointer.
static ImageRegion * fromRecord(LogIO *logger, const CoordinateSystem &coords, const IPosition &imShape, const Record ®ionRecord)
Create an ImageRegion from a record.
ImageRegion(const ImageRegion &other)
Copy constructor (copy semantics).
const WCRegion & asWCRegion() const
virtual LattRegionHolder * makeComplement() const
virtual LatticeRegion toLatticeRegion(const CoordinateSystem &cSys, const IPosition &shape) const
Convert to a LatticeRegion using the given coordinate system (with reference pixel) and shape.
virtual Bool operator==(const LattRegionHolder &other) const
Comparison.
const LCSlicer & asLCSlicer() const
ImageRegion & operator=(const ImageRegion &other)
Assignment (copy semantics).
virtual const WCRegion * asWCRegionPtr() const
Get the region as a pointer to WCRegion.
ImageRegion(const WCRegion &)
Construct from a region based on world coordinates.
LCRegion & asMask()
Get the region as a writable mask.
virtual LattRegionHolder * makeUnion(const LattRegionHolder &other) const
Form a compound from this and the other region.
virtual Bool isWCRegion() const
Test if the underlying region is an WCRegion.
static ImageRegion * fromRecord(const TableRecord &, const String &tableName)
Convert correct object from a record.
const LCSlicer * asLCSlicerPtr() const
const LCRegion * asLCRegionPtr() const
Get the region as a pointer to a LCRegion, LCSlicer, or WCRegion.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.
bool Bool
Define the standard types used by Casacore.