casa
$Rev:20696$
|
This class represents an annotation for an annular (in position coordinates) region specified in an ascii region file as proposed in CAS-2285. It is specified by its center position and inner and outer radii. <author>Dave Mehringer</author> More...
#include <AnnAnnulus.h>
Public Member Functions | |
AnnAnnulus (const Quantity &xcenter, const Quantity &ycenter, const Quantity &innerRadius, const Quantity &outerRadius, 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) | |
AnnAnnulus (const Quantity &xcenter, const Quantity &ycenter, const Quantity &innerRadius, const Quantity &outerRadius, const CoordinateSystem &csys, const IPosition &imShape, const Vector< Stokes::StokesTypes > &stokes) | |
Simplified constructor. | |
AnnAnnulus & | operator= (const AnnAnnulus &other) |
the default copy constructor and destructor are fine | |
MDirection | getCenter () const |
get the center position, converted to the frame of the input coordinate system if necessary | |
Vector< Quantity > | getRadii () const |
get the radii in angular units. | |
virtual ostream & | print (ostream &os) const |
Private Member Functions | |
void | _init () |
Private Attributes | |
Vector< Quantity > | _convertedRadii |
Quantity | _xcenter |
Quantity | _ycenter |
Quantity | _innerRadius |
Quantity | _outerRadius |
This class represents an annotation for an annular (in position coordinates) region specified in an ascii region file as proposed in CAS-2285. It is specified by its center position and inner and outer radii. <author>Dave Mehringer</author>
Public interface
Holds the specification of a annotation for an annular region as specified in ASCII format. Specified by center position and inner and outer radii.
This class represents a annotation for an annular region in specified by center and inner and outer radii.
Definition at line 49 of file AnnAnnulus.h.
casa::AnnAnnulus::AnnAnnulus | ( | const Quantity & | xcenter, |
const Quantity & | ycenter, | ||
const Quantity & | innerRadius, | ||
const Quantity & | outerRadius, | ||
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::AnnAnnulus::AnnAnnulus | ( | const Quantity & | xcenter, |
const Quantity & | ycenter, | ||
const Quantity & | innerRadius, | ||
const Quantity & | outerRadius, | ||
const CoordinateSystem & | csys, | ||
const IPosition & | imShape, | ||
const Vector< Stokes::StokesTypes > & | stokes | ||
) |
Simplified constructor.
all frequencies and all polarizations are used (these can be set after construction). xcenter and ycenter 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::AnnAnnulus::_init | ( | ) | [private] |
Reimplemented from casa::AnnRegion.
MDirection casa::AnnAnnulus::getCenter | ( | ) | const |
get the center position, converted to the frame of the input coordinate system if necessary
Vector<Quantity> casa::AnnAnnulus::getRadii | ( | ) | const |
get the radii in angular units.
The first value will be the inner radius, the second the outer
AnnAnnulus& casa::AnnAnnulus::operator= | ( | const AnnAnnulus & | other | ) |
the default copy constructor and destructor are fine
virtual ostream& casa::AnnAnnulus::print | ( | ostream & | os | ) | const [virtual] |
Implements casa::AnnotationBase.
Vector<Quantity> casa::AnnAnnulus::_convertedRadii [private] |
Definition at line 102 of file AnnAnnulus.h.
Quantity casa::AnnAnnulus::_innerRadius [private] |
Definition at line 103 of file AnnAnnulus.h.
Quantity casa::AnnAnnulus::_outerRadius [private] |
Definition at line 103 of file AnnAnnulus.h.
Quantity casa::AnnAnnulus::_xcenter [private] |
Definition at line 103 of file AnnAnnulus.h.
Quantity casa::AnnAnnulus::_ycenter [private] |
Definition at line 103 of file AnnAnnulus.h.