diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-01-12 18:23:23 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-01-12 18:23:23 (GMT) |
commit | 8142cb4cc65d4501fdcd8c948986cff3e9d45036 (patch) | |
tree | bf0ff25aa9975b5c0d58567caa5c5fbcab600d5d /tksao/frame/basecommand.C | |
parent | 10e68f58b7f7d74c4ba02cb0561e2c1d59f6d92b (diff) | |
download | blt-8142cb4cc65d4501fdcd8c948986cff3e9d45036.zip blt-8142cb4cc65d4501fdcd8c948986cff3e9d45036.tar.gz blt-8142cb4cc65d4501fdcd8c948986cff3e9d45036.tar.bz2 |
add precision command tests
Diffstat (limited to 'tksao/frame/basecommand.C')
-rw-r--r-- | tksao/frame/basecommand.C | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tksao/frame/basecommand.C b/tksao/frame/basecommand.C index a745d14..bccc815 100644 --- a/tksao/frame/basecommand.C +++ b/tksao/frame/basecommand.C @@ -1762,14 +1762,14 @@ void Base::getFitsSizeCmd(Coord::CoordSystem sys, Coord::SkyFrame sky, ostringstream str; switch (dist) { case Coord::DEGREE: - str << setprecision(precDeg); + str << setprecision(precDeg_); break; case Coord::ARCMIN: - str << setprecision(precArcmin) << fixed; + str << setprecision(precArcmin_) << fixed; ss *= 60; break; case Coord::ARCSEC: - str << setprecision(precArcsec) << fixed; + str << setprecision(precArcsec_) << fixed; ss *= 60*60; break; } @@ -2624,6 +2624,17 @@ void Base::pannerCmd(char* n, int w, int h) update(MATRIX); } +void Base::precCmd(int linear, int deg, int hms, int dms, + int arcmin, int arcsec) +{ + precLinear_ = linear; + precDeg_ = deg; + precHMS_ = hms; + precDMS_ = dms; + precArcmin_ = arcmin; + precArcsec_ = arcsec; +} + void Base::rotateCmd(double r) { rotation += r; |