casa
$Rev:20696$
|
This class represents a annotation for rectangular (in position coordinates) region specified in an ascii region file as proposed in CAS-2285. It is specified by its center position and side widths. <author>Dave Mehringer</author> More...
#include <AnnCenterBox.h>
Public Member Functions | |
AnnCenterBox (const Quantity ¢erx, const Quantity ¢ery, const Quantity &xwidth, const Quantity &ywidth, const String &dirRefFrameString, const CoordinateSystem &csys, const IPosition &imShape, const Quantity &beginFreq, const Quantity &endFreq, const String &freqRefFrameString, const String &dopplerString, const Quantity &restfreq, const Vector< Stokes::StokesTypes > stokes, const Bool annotationOnly) | |
AnnCenterBox (const Quantity ¢erx, const Quantity ¢ery, const Quantity &xwidth, const Quantity &ywidth, const CoordinateSystem &csys, const IPosition &imShape, const Vector< Stokes::StokesTypes > &stokes) | |
Simplified constructor. | |
AnnCenterBox & | operator= (const AnnCenterBox &other) |
implicit copy constructor and destructor are fine | |
MDirection | getCenter () const |
Vector< Quantity > | getWidths () const |
Vector< MDirection > | getCorners () const |
get the blc and trc direction coords for the box which have been converted to the coordinate frame specified when the object was constructed. | |
virtual ostream & | print (ostream &os) const |
Private Member Functions | |
void | _init () |
void | _doCorners () |
Private Attributes | |
Vector< Quantity > | _widths |
Vector< MDirection > | _corners |
Quantity | _inpXCenter |
Quantity | _inpYCenter |
Quantity | _inpXWidth |
Quantity | _inpYWidth |
This class represents a annotation for rectangular (in position coordinates) region specified in an ascii region file as proposed in CAS-2285. It is specified by its center position and side widths. <author>Dave Mehringer</author>
Public interface
Holds the specification of an annotation of a rectangular region as specified in ASCII format. Specified by center position and widths of sides.
This class represents an annotation of rectangular region in coordinate space specified by center and widths of sides.
Definition at line 49 of file AnnCenterBox.h.
casa::AnnCenterBox::AnnCenterBox | ( | const Quantity & | centerx, |
const Quantity & | centery, | ||
const Quantity & | xwidth, | ||
const Quantity & | ywidth, | ||
const String & | dirRefFrameString, | ||
const CoordinateSystem & | csys, | ||
const IPosition & | imShape, | ||
const Quantity & | beginFreq, | ||
const Quantity & | endFreq, | ||
const String & | freqRefFrameString, | ||
const String & | dopplerString, | ||
const Quantity & | restfreq, | ||
const Vector< Stokes::StokesTypes > | stokes, | ||
const Bool | annotationOnly | ||
) |
casa::AnnCenterBox::AnnCenterBox | ( | const Quantity & | centerx, |
const Quantity & | centery, | ||
const Quantity & | xwidth, | ||
const Quantity & | ywidth, | ||
const CoordinateSystem & | csys, | ||
const IPosition & | imShape, | ||
const Vector< Stokes::StokesTypes > & | stokes | ||
) |
Simplified constructor.
all frequencies are used (these can be set after construction). centerx and centery must be in the same frame as the csys direction coordinate. is a region (not just an annotation), although this value can be changed after construction.
void casa::AnnCenterBox::_doCorners | ( | ) | [private] |
void casa::AnnCenterBox::_init | ( | ) | [private] |
Reimplemented from casa::AnnRegion.
MDirection casa::AnnCenterBox::getCenter | ( | ) | const |
Vector<MDirection> casa::AnnCenterBox::getCorners | ( | ) | const |
get the blc and trc direction coords for the box which have been converted to the coordinate frame specified when the object was constructed.
Vector<Quantity> casa::AnnCenterBox::getWidths | ( | ) | const |
AnnCenterBox& casa::AnnCenterBox::operator= | ( | const AnnCenterBox & | other | ) |
implicit copy constructor and destructor are fine
virtual ostream& casa::AnnCenterBox::print | ( | ostream & | os | ) | const [virtual] |
Implements casa::AnnotationBase.
Vector<MDirection> casa::AnnCenterBox::_corners [private] |
Definition at line 103 of file AnnCenterBox.h.
Quantity casa::AnnCenterBox::_inpXCenter [private] |
Definition at line 104 of file AnnCenterBox.h.
Quantity casa::AnnCenterBox::_inpXWidth [private] |
Definition at line 104 of file AnnCenterBox.h.
Quantity casa::AnnCenterBox::_inpYCenter [private] |
Definition at line 104 of file AnnCenterBox.h.
Quantity casa::AnnCenterBox::_inpYWidth [private] |
Definition at line 104 of file AnnCenterBox.h.
Vector<Quantity> casa::AnnCenterBox::_widths [private] |
Definition at line 102 of file AnnCenterBox.h.