This class represents an annotation of an elliptical (in position coordinates) region specified in an ascii region file as proposed in CAS-2285. It is specified by its center position semi-major and semi-minor axes, and position angle. <author>Dave Mehringer</author>. More...
#include <AnnEllipse.h>
Public Member Functions | |
AnnEllipse (const Quantity &xcenter, const Quantity &ycenter, const Quantity &semiMajorAxis, const Quantity &semiMinorAxis, const Quantity &positionAngle, 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) | |
positionAngle is defined as the angle between north and the ellipse major axis. | |
AnnEllipse (const Quantity &xcenter, const Quantity &ycenter, const Quantity &semiMajorAxis, const Quantity &semiMinorAxis, const Quantity &positionAngle, const CoordinateSystem &csys, const IPosition &imShape, const Vector< Stokes::StokesTypes > &stokes) | |
Simplified constructor. | |
AnnEllipse & | operator= (const AnnEllipse &other) |
implicit copy constructor and destructor are fine | |
Bool | operator== (const AnnEllipse &other) const |
MDirection | getCenter () const |
Get the center position, tranformed to the reference from of the coordinate system if necessary. | |
Quantity | getSemiMajorAxis () const |
get semi-major axis. | |
Quantity | getSemiMinorAxis () const |
get semi-minor axis. | |
Quantity | getPositionAngle () const |
get position angle. | |
virtual ostream & | print (ostream &os) const |
Private Member Functions | |
void | _init (const Quantity &xcenter, const Quantity &ycenter) |
Private Attributes | |
AnnotationBase::Direction | _inputCenter |
Quantity | _inputSemiMajorAxis |
Quantity | _inputSemiMinorAxis |
Quantity | _inputPositionAngle |
Quantity | _convertedSemiMajorAxis |
Quantity | _convertedSemiMinorAxis |
Quantity | _convertedPositionAngle |
This class represents an annotation of an elliptical (in position coordinates) region specified in an ascii region file as proposed in CAS-2285. It is specified by its center position semi-major and semi-minor axes, and position angle. <author>Dave Mehringer</author>.
Public interface
Holds the specification of a an annotation of an elliptical region as specified in ASCII format. Specified by center position, semi-major and semi-minor axes, and position angle.
This class represents an annotation of an elliptical region in coordinate space specified by center, semi-major and semi-minor axes, and position angle
Definition at line 50 of file AnnEllipse.h.
casa::AnnEllipse::AnnEllipse | ( | const Quantity & | xcenter, | |
const Quantity & | ycenter, | |||
const Quantity & | semiMajorAxis, | |||
const Quantity & | semiMinorAxis, | |||
const Quantity & | positionAngle, | |||
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 | |||
) |
positionAngle
is defined as the angle between north and the ellipse major axis.
Note the lengths are for the semi-major and semi-minor axes, not the major and minor axes
casa::AnnEllipse::AnnEllipse | ( | const Quantity & | xcenter, | |
const Quantity & | ycenter, | |||
const Quantity & | semiMajorAxis, | |||
const Quantity & | semiMinorAxis, | |||
const Quantity & | positionAngle, | |||
const CoordinateSystem & | csys, | |||
const IPosition & | imShape, | |||
const Vector< Stokes::StokesTypes > & | stokes | |||
) |
Simplified constructor.
all frequencies 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::AnnEllipse::_init | ( | const Quantity & | xcenter, | |
const Quantity & | ycenter | |||
) | [private] |
MDirection casa::AnnEllipse::getCenter | ( | ) | const |
Get the center position, tranformed to the reference from of the coordinate system if necessary.
Quantity casa::AnnEllipse::getPositionAngle | ( | ) | const |
get position angle.
The quantity will have units of angular measure and will be measured from north through east, using the normal astronomical convention.
Quantity casa::AnnEllipse::getSemiMajorAxis | ( | ) | const |
get semi-major axis.
The quantity will have units of angular measure
Quantity casa::AnnEllipse::getSemiMinorAxis | ( | ) | const |
get semi-minor axis.
The quantity will have units of angular measure
AnnEllipse& casa::AnnEllipse::operator= | ( | const AnnEllipse & | other | ) |
implicit copy constructor and destructor are fine
Reimplemented from casa::AnnRegion.
Bool casa::AnnEllipse::operator== | ( | const AnnEllipse & | other | ) | const |
Reimplemented from casa::AnnRegion.
virtual ostream& casa::AnnEllipse::print | ( | ostream & | os | ) | const [virtual] |
Implements casa::AnnotationBase.
Quantity casa::AnnEllipse::_convertedPositionAngle [private] |
Definition at line 120 of file AnnEllipse.h.
Quantity casa::AnnEllipse::_convertedSemiMajorAxis [private] |
Definition at line 120 of file AnnEllipse.h.
Quantity casa::AnnEllipse::_convertedSemiMinorAxis [private] |
Definition at line 120 of file AnnEllipse.h.
AnnotationBase::Direction casa::AnnEllipse::_inputCenter [private] |
Definition at line 119 of file AnnEllipse.h.
Quantity casa::AnnEllipse::_inputPositionAngle [private] |
Definition at line 120 of file AnnEllipse.h.
Quantity casa::AnnEllipse::_inputSemiMajorAxis [private] |
Definition at line 120 of file AnnEllipse.h.
Quantity casa::AnnEllipse::_inputSemiMinorAxis [private] |
Definition at line 120 of file AnnEllipse.h.