diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-01-10 22:53:31 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-01-10 22:53:31 (GMT) |
commit | 88aa6a1e8e649c0fb5381ebcd06fb88b6fee254c (patch) | |
tree | 399b5da6948a8ca506de5c42f67d64fc7df36449 | |
parent | cc2c18b32b1bc607034b5e0cbaeee20c29a3f166 (diff) | |
download | blt-88aa6a1e8e649c0fb5381ebcd06fb88b6fee254c.zip blt-88aa6a1e8e649c0fb5381ebcd06fb88b6fee254c.tar.gz blt-88aa6a1e8e649c0fb5381ebcd06fb88b6fee254c.tar.bz2 |
clean up marker code
-rw-r--r-- | tksao/frame/polygon.C | 47 |
1 files changed, 12 insertions, 35 deletions
diff --git a/tksao/frame/polygon.C b/tksao/frame/polygon.C index 07b1eee..650bd83 100644 --- a/tksao/frame/polygon.C +++ b/tksao/frame/polygon.C @@ -546,42 +546,19 @@ void Polygon::listSAOtng(ostream& str, Coord::CoordSystem sys, break; default: if (ptr->hasWCSCel(sys)) { - switch (format) { - case Coord::DEGREES: - { - str << type_ << '('; - int first=1; - vertex.head(); - do { - if (!first) - str << ','; - first=0; - - Vector vv = ptr->mapFromRef(vertex.current()->vector*mm,sys,sky); - str << setprecision(10) << vv; - } - while (vertex.next()); - str << ')'; - } - break; - case Coord::SEXAGESIMAL: - { - str << type_ << '('; - int first=1; - vertex.head(); - do { - if (!first) - str << ','; - first=0; - - listRADEC(ptr,vertex.current()->vector*mm,sys,sky,format); - str << ra << ',' << dec; - } - while (vertex.next()); - str << ')'; - } - break; + str << type_ << '('; + int first=1; + vertex.head(); + do { + if (!first) + str << ','; + first=0; + + listRADEC(ptr,vertex.current()->vector*mm,sys,sky,format); + str << ra << ',' << dec; } + while (vertex.next()); + str << ')'; } } |