diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-08-12 19:23:03 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-08-12 19:23:03 (GMT) |
commit | 7274b43008e9bbb37d6e9986114c1a9fbf14bf35 (patch) | |
tree | ff7094f8bd065a54fbfce5427ac7f534b32152e8 /tksao/frame/polygon.C | |
parent | b527a7105f8bfc2734fc61e36b3ade7fc963ec82 (diff) | |
download | blt-7274b43008e9bbb37d6e9986114c1a9fbf14bf35.zip blt-7274b43008e9bbb37d6e9986114c1a9fbf14bf35.tar.gz blt-7274b43008e9bbb37d6e9986114c1a9fbf14bf35.tar.bz2 |
update marker precision
Diffstat (limited to 'tksao/frame/polygon.C')
-rw-r--r-- | tksao/frame/polygon.C | 59 |
1 files changed, 21 insertions, 38 deletions
diff --git a/tksao/frame/polygon.C b/tksao/frame/polygon.C index 442a160..c2d63ec 100644 --- a/tksao/frame/polygon.C +++ b/tksao/frame/polygon.C @@ -427,46 +427,29 @@ void Polygon::listCiao(ostream& str, Coord::CoordSystem sys, int strip) Matrix mm = fwdMatrix(); listCiaoPre(str); - switch (sys) { - case Coord::IMAGE: - case Coord::PHYSICAL: - case Coord::DETECTOR: - case Coord::AMPLIFIER: - { - str << type_ << '('; - int first=1; - vertex.head(); - do { - if (!first) - str << ','; - first=0; - - Vector vv = - ptr->mapFromRef(vertex.current()->vector*mm,Coord::PHYSICAL); - str << setprecision(parent->precLinear_) << vv; - } - while (vertex.next()); - str << ')'; - } - break; - default: - if (ptr->hasWCSCel(sys)) { - str << type_ << '('; - int first=1; - vertex.head(); - do { - if (!first) - str << ','; - first=0; + str << type_ << '('; + int first=1; + vertex.head(); + do { + if (!first) + str << ','; + first=0; - listWCS(ptr,vertex.current()->vector*mm,sys, - Coord::FK5,Coord::SEXAGESIMAL); - str << ra << ',' << dec; - } - while (vertex.next()); - str << ')'; + switch (sys) { + case Coord::IMAGE: + case Coord::PHYSICAL: + case Coord::DETECTOR: + case Coord::AMPLIFIER: + str << setprecision(parent->precLinear_) + << ptr->mapFromRef(vertex.current()->vector*mm,Coord::PHYSICAL); + break; + default: + listWCS(ptr,vertex.current()->vector*mm,sys,Coord::FK5,Coord::SEXAGESIMAL); + str << ra << ',' << dec; + break; } - } + } while (vertex.next()); + str << ')'; listCiaoPost(str, strip); } |