29 #ifndef IMAGES_WCBOX_H
30 #define IMAGES_WCBOX_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/coordinates/Coordinates/CoordinateSystem.h>
35 #include <casacore/images/Regions/WCRegion.h>
36 #include <casacore/lattices/LRegions/RegionType.h>
37 #include <casacore/casa/Arrays/Vector.h>
38 #include <casacore/casa/Quanta/Quantum.h>
387 const Bool isBlc)
const;
String: the storage and methods of handling collections of characters.
WCBox & operator=(const WCBox &other)
Assignment (copy semantics)
virtual Bool canExtend() const
WCBox can extend a region.
WCBox splitBox(const IPosition &axes) const
Make a new box from the given axesin this box.
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.
virtual TableRecord toRecord(const String &tableName) const
Convert the WCBox object to a record.
Vector< Quantum< Double > > itsBlc
void checkUnits(const IPosition &pixelAxes, const Vector< Quantum< Double > > &values, const CoordinateSystem &cSys)
Check units of quanta are consistent with CoordinateSystem.
WCBox(const LCRegion ®ion, const CoordinateSystem &cSys)
Construct from the bounding box of an LCRegion.
virtual WCRegion * cloneRegion() const
Clone a WCBox object.
WCBox(const Vector< Quantum< Double > > &blc, const Vector< Quantum< Double > > &trc, const CoordinateSystem &cSys, const Vector< Int > &absRel)
Construct from vectors of world coordinates defining the box corners.
static WCBox * fromRecord(const TableRecord &rec, const String &tableName)
Convert to a WCBox from a record.
virtual ~WCBox()
Destructor.
WCBox(const WCBox &other)
Copy constructor (reference semantics [except for CoordinateSystem])
WCBox(const Vector< Quantum< Double > > &blc, const Vector< Quantum< Double > > &trc, const IPosition &pixelAxes, const CoordinateSystem &cSys, const Vector< Int > &absRel)
Construct from vectors of world coordinates defining the box corners.
virtual String type() const
Return region type.
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.
Vector< Quantum< Double > > itsTrc
static String className()
Returns WCBox.
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.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.