summaryrefslogtreecommitdiffstats
path: root/tksao/frame/polygon.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-08-12 19:23:03 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-08-12 19:23:03 (GMT)
commit7274b43008e9bbb37d6e9986114c1a9fbf14bf35 (patch)
treeff7094f8bd065a54fbfce5427ac7f534b32152e8 /tksao/frame/polygon.C
parentb527a7105f8bfc2734fc61e36b3ade7fc963ec82 (diff)
downloadblt-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.C59
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);
}