casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
casa::QtWCBox Class Reference

#include <QtWCBox.h>

Inheritance diagram for casa::QtWCBox:
casa::WCRegion

List of all members.

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 &region, 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.
QtWCBoxoperator= (const QtWCBox &other)
 Assignment (copy semantics)
virtual Bool operator== (const WCRegion &other) const
 Comparison.
virtual WCRegioncloneRegion () 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 LCRegiondoToLCRegion (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 QtWCBoxfromRecord (const TableRecord &rec, const String &tableName)
 Convert to a QtWCBox from a record.
static String className ()
 Returns QtWCBox.
static QtWCBoxfromBoxString (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< IntitsAbsRel
Bool itsNull

Detailed Description

Definition at line 48 of file QtWCBox.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

QtWCBox& casa::QtWCBox::operator= ( const QtWCBox other)

Assignment (copy semantics)

virtual Bool casa::QtWCBox::operator== ( const WCRegion other) const [virtual]

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.

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]

Return region type.

Returns the class name

Implements casa::WCRegion.

static void casa::QtWCBox::unitInit ( ) [static]

Reimplemented from casa::WCRegion.


Member Data Documentation

Definition at line 145 of file QtWCBox.h.

Definition at line 141 of file QtWCBox.h.

Definition at line 144 of file QtWCBox.h.

Definition at line 146 of file QtWCBox.h.

Definition at line 143 of file QtWCBox.h.

Definition at line 142 of file QtWCBox.h.


The documentation for this class was generated from the following file: