29 #ifndef IMAGES_WCBOX_H
30 #define IMAGES_WCBOX_H
387 const Bool isBlc)
const;
A Vector of integers, for indexing into Array<T> objects.
A 1-D Specialization of the Array class.
virtual LCRegion * doToLCRegion(const CoordinateSystem &cSys, const IPosition &latticeShape, const IPosition &pixelAxesMap, const IPosition &outOrder) const
Convert to an LCRegion using the supplied CoordinateSystem and shape.
virtual Bool operator==(const WCRegion &other) const
Comparison.
static WCBox * fromRecord(const TableRecord &rec, const String &tableName)
Convert to a WCBox from a record.
virtual WCRegion * cloneRegion() const
Clone a WCBox object.
WCBox & operator=(const WCBox &other)
Assignment (copy semantics)
virtual String type() const
Return region type.
virtual TableRecord toRecord(const String &tableName) const
Convert the WCBox object to a record.
Vector< Quantum< Double > > itsBlc
WCBox splitBox(const IPosition &axes) const
Make a new box from the given axesin this box.
void convertPixel(Double &pixel, const Quantum< Double > &value, const Int absRel, const Double refPix, const Int shape, const Bool isBlc) const
Convert relative pixels to absolute or fill in defaults.
bool Bool
Define the standard types used by Casacore.
virtual ~WCBox()
Destructor.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
A hierarchical collection of named fields of various types.
Vector< Quantum< Double > > itsTrc
Base class to define world coordinate regions of interest in an image.
String: the storage and methods of handling collections of characters.
Class to define a world coordinate box region of interest in an image.
static String className()
Returns WCBox.
Interconvert pixel and world coordinates.
virtual Bool canExtend() const
WCBox can extend a region.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void checkUnits(const IPosition &pixelAxes, const Vector< Quantum< Double > > &values, const CoordinateSystem &cSys)
Check units of quanta are consistent with CoordinateSystem.
Abstract base class to define a region of interest in lattice coordinates.