Source
Vector<Double> coords = getConvertedDirections()[0].getAngle("rad").getValue();
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
//# License for more details.
//#
//# You should have received a copy of the GNU Library General Public License
//# along with this library; if not, write to the Free Software Foundation,
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
using namespace casacore;
namespace casa {
AnnCircle::AnnCircle(
const Quantity& xcenter,
const Quantity& ycenter,
const Quantity& radius,
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,
const Bool requireImageRegion
) : AnnRegion(
CIRCLE, dirRefFrameString, csys, imShape, beginFreq,
endFreq, freqRefFrameString, dopplerString,
restfreq, stokes, annotationOnly, requireImageRegion
), _inputCenter(AnnotationBase::Direction(1)), _inputRadius(radius) {
_init(xcenter, ycenter);
}
AnnCircle::AnnCircle(
const Quantity& xcenter,
const Quantity& ycenter,
const Quantity& radius,
const CoordinateSystem& csys,
const IPosition& imShape,
const Vector<Stokes::StokesTypes>& stokes,
const Bool requireImageRegion
) : AnnRegion(CIRCLE, csys, imShape, stokes, requireImageRegion),
_inputCenter(AnnotationBase::Direction(1)), _inputRadius(radius) {
_init(xcenter, ycenter);
}
AnnCircle& AnnCircle::operator= (