summaryrefslogtreecommitdiffstats
path: root/tksao/frame/segment.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-03-11 21:17:59 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-03-11 21:17:59 (GMT)
commiteef1b4e01cc3c5307188e1497e6b095081eef378 (patch)
treeb27c812b352c9024fe4a5b9dbab6f6102a581156 /tksao/frame/segment.C
parentf7a9669c931c4da48dbc39d3f90b17ea2314ab9c (diff)
downloadblt-eef1b4e01cc3c5307188e1497e6b095081eef378.zip
blt-eef1b4e01cc3c5307188e1497e6b095081eef378.tar.gz
blt-eef1b4e01cc3c5307188e1497e6b095081eef378.tar.bz2
add region fill
Diffstat (limited to 'tksao/frame/segment.C')
-rw-r--r--tksao/frame/segment.C23
1 files changed, 23 insertions, 0 deletions
diff --git a/tksao/frame/segment.C b/tksao/frame/segment.C
index ce99203..059ca4b 100644
--- a/tksao/frame/segment.C
+++ b/tksao/frame/segment.C
@@ -171,3 +171,26 @@ void Segment::list(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky,
listProperties(str, 0);
}
}
+
+void Segment::listXML(ostream& str, Coord::CoordSystem sys,
+ Coord::SkyFrame sky, Coord::SkyFormat format)
+{
+ FitsImage* ptr = parent->findFits(sys,center);
+ Matrix mm = fwdMatrix();
+ Vector* vv = new Vector[vertex.count()];
+
+ XMLRowInit();
+ XMLRow(XMLSHAPE,type_);
+
+ vertex.head();
+ int cnt =0;
+ do
+ vv[cnt++] =vertex.current()->vector*mm;
+ while (vertex.next());
+ XMLRowPoint(ptr,sys,sky,format,vv,vertex.count());
+ delete [] vv;
+
+ XMLRowProps(ptr,sys);
+ XMLRowEnd(str);
+}
+