diff options
Diffstat (limited to 'tksao/frame/text.h')
-rw-r--r-- | tksao/frame/text.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/tksao/frame/text.h b/tksao/frame/text.h new file mode 100644 index 0000000..dcb4d77 --- /dev/null +++ b/tksao/frame/text.h @@ -0,0 +1,66 @@ +// Copyright (C) 1999-2016 +// Smithsonian Astrophysical Observatory, Cambridge, MA, USA +// For conditions of distribution and use, see copyright notice in "copyright" + +#ifndef __text_h__ +#define __text_h__ + +#include "marker.h" + +class Text : public Marker { + private: + int rotate; + + private: + void renderX(Drawable, Coord::InternalSystem, RenderMode); + void renderXText(Drawable, Coord::InternalSystem, RenderMode) {} + void renderXInclude(Drawable, Coord::InternalSystem, RenderMode) {} + + void renderPS(int); + void renderPSText(int) {} + void renderPSInclude(int) {} + +#ifdef MAC_OSX_TK + void renderMACOSX(); + void renderMACOSXText() {} + void renderMACOSXInclude() {} +#endif + +#ifdef __WIN32 + void renderWIN32(); + void renderWIN32Text() {} + void renderWIN32Include() {} +#endif + + void updateHandles(); + void calcAllBBox(); + + protected: + void listNonCel(FitsImage*, ostream&, Coord::CoordSystem); + + public: + Text(const Text&); + Text(Base* p, const Vector& ctr, + double a, int r, + 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); + + Marker* dup() {return new Text(*this);} + + int isIn(const Vector&); + + void editBegin(int) {} + void edit(const Vector& v, int h) {} + void editEnd() {} + + void setRotate(int); + int getRotate() {return rotate;} + + 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 |