diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-10-09 17:29:08 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-10-09 17:29:08 (GMT) |
commit | 781cf9a1763da5328c28465f0ba553045f11e91e (patch) | |
tree | e10f887966e4ebe082cb17f89f9da18bbf922935 /tksao/frame/basecommand.C | |
parent | 4af8a409a3f59f580c6e39783818bde639e7d128 (diff) | |
download | blt-781cf9a1763da5328c28465f0ba553045f11e91e.zip blt-781cf9a1763da5328c28465f0ba553045f11e91e.tar.gz blt-781cf9a1763da5328c28465f0ba553045f11e91e.tar.bz2 |
support higher dims
Diffstat (limited to 'tksao/frame/basecommand.C')
-rw-r--r-- | tksao/frame/basecommand.C | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tksao/frame/basecommand.C b/tksao/frame/basecommand.C index dd592a3..b50115a 100644 --- a/tksao/frame/basecommand.C +++ b/tksao/frame/basecommand.C @@ -1743,9 +1743,9 @@ void Base::getFitsSizeCmd(Coord::CoordSystem sys, Coord::SkyFrame sky, Tcl_AppendResult(interp, "0 0", NULL); } -void Base::getFitsSliceCmd() +void Base::getFitsSliceCmd(int ii) { - printInteger(currentContext->slice(2)); + printInteger(currentContext->slice(ii)); } void Base::getFitsSliceFromImageCmd(Coord::CoordSystem sys, Coord::SkyFrame sky) @@ -2794,14 +2794,15 @@ void Base::saveENVIFileCmd(const char* hdr, const char* fn, saveENVI(str, str2, endian); } -void Base::sliceCmd(int ss) +void Base::sliceCmd(int ii, int ss) { // IMAGE (ranges 1-n) - setSlice(2,ss); + setSlice(ii,ss); updateMagnifier(); } -void Base::sliceCmd(double dd, Coord::CoordSystem sys, Coord::SkyFrame sky) +void Base::sliceCmd(int ii, double dd, + Coord::CoordSystem sys, Coord::SkyFrame sky) { if (!currentContext->fits) return; @@ -2814,7 +2815,7 @@ void Base::sliceCmd(double dd, Coord::CoordSystem sys, Coord::SkyFrame sky) // IMAGE (ranges 1-n) // be sure to round properly - setSlice(2,int(out[2]+.5)); + setSlice(ii,int(out[2]+.5)); updateMagnifier(); } |