casa
$Rev:20696$
|
#include <QtWCBox.h>
Public Member Functions | |
QtWCBox () | |
QtWCBox (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. | |
QtWCBox (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. | |
QtWCBox (const LCRegion ®ion, const CoordinateSystem &cSys) | |
Construct from the bounding box of an LCRegion . | |
QtWCBox (const QtWCBox &other) | |
Copy constructor (reference semantics [except for CoordinateSystem ]) | |
virtual | ~QtWCBox () |
Destructor. | |
QtWCBox & | operator= (const QtWCBox &other) |
Assignment (copy semantics) | |
virtual Bool | operator== (const WCRegion &other) const |
Comparison. | |
virtual WCRegion * | cloneRegion () const |
Clone a QtWCBox object. | |
virtual Bool | canExtend () const |
QtWCBox can extend a region. | |
QtWCBox | 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 TableRecord | toRecord (const String &tableName) const |
Convert the QtWCBox object to a record. | |
virtual String | type () const |
Return region type. | |
String | toBoxString () const |
Convert from/to boxit format string. | |
void | setChanExt (const Double, const Double) |
FIXME: refactor to someplace more appropriate get/set chan extension. | |
Bool | getChanExt (Double &, Double &) |
void | setPolExt (const Double, const Double) |
FIXME: refactor to someplace more appropriate get/set pol extension. | |
Bool | getPolExt (Double &, Double &) |
Static Public Member Functions | |
static QtWCBox * | fromRecord (const TableRecord &rec, const String &tableName) |
Convert to a QtWCBox from a record. | |
static String | className () |
Returns QtWCBox. | |
static QtWCBox * | fromBoxString (const String &, const CoordinateSystem &cSys, String &err) |
static void | unitInit () |
Private Member Functions | |
void | checkUnits (const IPosition &pixelAxes, const Vector< Quantum< Double > > &values, const CoordinateSystem &cSys) |
Check units of quanta are consistent with CoordinateSystem. | |
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. | |
Private Attributes | |
Vector< Quantum< Double > > | itsBlc |
Vector< Quantum< Double > > | itsTrc |
IPosition | itsPixelAxes |
CoordinateSystem | itsCSys |
Vector< Int > | itsAbsRel |
Bool | itsNull |
casa::QtWCBox::QtWCBox | ( | 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.
It is assumed that the order of the values is in the order of the pixel axes in the given coordinate system.
casa::QtWCBox::QtWCBox | ( | 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.
You specify the pixel axis order of the world values.
casa::QtWCBox::QtWCBox | ( | const LCRegion & | region, |
const CoordinateSystem & | cSys | ||
) |
Construct from the bounding box of an LCRegion
.
casa::QtWCBox::QtWCBox | ( | const QtWCBox & | other | ) |
Copy constructor (reference semantics [except for CoordinateSystem
])
virtual casa::QtWCBox::~QtWCBox | ( | ) | [virtual] |
Destructor.
virtual Bool casa::QtWCBox::canExtend | ( | ) | const [virtual] |
QtWCBox can extend a region.
Reimplemented from casa::WCRegion.
void casa::QtWCBox::checkUnits | ( | const IPosition & | pixelAxes, |
const Vector< Quantum< Double > > & | values, | ||
const CoordinateSystem & | cSys | ||
) | [private] |
Check units of quanta are consistent with CoordinateSystem.
static String casa::QtWCBox::className | ( | ) | [static] |
Returns QtWCBox.
virtual WCRegion* casa::QtWCBox::cloneRegion | ( | ) | const [virtual] |
Clone a QtWCBox object.
Implements casa::WCRegion.
void casa::QtWCBox::convertPixel | ( | Double & | pixel, |
const Quantum< Double > & | value, | ||
const Int | absRel, | ||
const Double | refPix, | ||
const Int | shape, | ||
const Bool | isBlc | ||
) | const [private] |
Convert relative pixels to absolute or fill in defaults.
virtual LCRegion* casa::QtWCBox::doToLCRegion | ( | const CoordinateSystem & | cSys, |
const IPosition & | latticeShape, | ||
const IPosition & | pixelAxesMap, | ||
const IPosition & | outOrder | ||
) | const [virtual] |
Convert to an LCRegion using the supplied CoordinateSystem
and shape.
Implements casa::WCRegion.
static QtWCBox* casa::QtWCBox::fromBoxString | ( | const String & | , |
const CoordinateSystem & | cSys, | ||
String & | err | ||
) | [static] |
static QtWCBox* casa::QtWCBox::fromRecord | ( | const TableRecord & | rec, |
const String & | tableName | ||
) | [static] |
Convert to a QtWCBox from a record.
Reimplemented from casa::WCRegion.
Bool casa::QtWCBox::getChanExt | ( | Double & | , |
Double & | |||
) |
Bool casa::QtWCBox::getPolExt | ( | Double & | , |
Double & | |||
) |
Comparison.
Reimplemented from casa::WCRegion.
void casa::QtWCBox::setChanExt | ( | const Double | , |
const Double | |||
) |
FIXME: refactor to someplace more appropriate get/set chan extension.
void casa::QtWCBox::setPolExt | ( | const Double | , |
const Double | |||
) |
FIXME: refactor to someplace more appropriate get/set pol extension.
QtWCBox casa::QtWCBox::splitBox | ( | const IPosition & | axes | ) | const |
Make a new box from the given axesin this box.
String casa::QtWCBox::toBoxString | ( | ) | const |
Convert from/to boxit format string.
virtual TableRecord casa::QtWCBox::toRecord | ( | const String & | tableName | ) | const [virtual] |
Convert the QtWCBox object to a record.
The record can be used to make the object persistent. The tableName
argument can be used by derived classes (e.g. LCPagedMask) to put very large objects.
Implements casa::WCRegion.
virtual String casa::QtWCBox::type | ( | ) | const [virtual] |
static void casa::QtWCBox::unitInit | ( | ) | [static] |
Reimplemented from casa::WCRegion.
Vector<Int> casa::QtWCBox::itsAbsRel [private] |
CoordinateSystem casa::QtWCBox::itsCSys [private] |
Bool casa::QtWCBox::itsNull [private] |
IPosition casa::QtWCBox::itsPixelAxes [private] |