summaryrefslogtreecommitdiffstats
path: root/tksao/frame/vect.h
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/frame/vect.h')
-rw-r--r--tksao/frame/vect.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/tksao/frame/vect.h b/tksao/frame/vect.h
new file mode 100644
index 0000000..294fe5b
--- /dev/null
+++ b/tksao/frame/vect.h
@@ -0,0 +1,44 @@
+// Copyright (C) 1999-2016
+// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
+// For conditions of distribution and use, see copyright notice in "copyright"
+
+#ifndef __vect_h__
+#define __vect_h__
+
+#include "line.h"
+
+class Vect : public Line {
+ protected:
+ void listNonCel(FitsImage*, ostream&, Coord::CoordSystem);
+
+public:
+ Vect(Base* p, const Vector& pt,
+ double mag, double ang);
+ Vect(Base* p, const Vector& pt,
+ double mag, double ang,
+ int arr,
+ const char* clr, int* dsh,
+ int wth, const char* fnt, const char* txt,
+ unsigned short prop, const char* cmt,
+ const List<Tag>& tg, const List<CallBack>& cb);
+ Vect(Base* p, const Vector& ptr1,
+ const Vector& ptr2,
+ int arr,
+ const char* clr, int* dsh,
+ int wth, const char* fnt, const char* txt,
+ unsigned short prop, const char* cmt,
+ const List<Tag>& tg, const List<CallBack>& cb);
+
+ virtual Marker* dup() {return new Vect(*this);}
+
+ int getArrow() {return p2Arrow;}
+ void setArrow(int w) {p2Arrow = w ? 1 : 0;}
+
+ void setPoints(const Vector& pt, double mag, double ang);
+
+ void list(ostream&, Coord::CoordSystem, Coord::SkyFrame, Coord::SkyFormat, int, int);
+ void listXML(ostream&, Coord::CoordSystem, Coord::SkyFrame, Coord::SkyFormat);
+ void listSAOtng(ostream&, Coord::CoordSystem, Coord::SkyFrame, Coord::SkyFormat, int) {}
+};
+
+#endif