summaryrefslogtreecommitdiffstats
path: root/tksao/frame/grid2d.h
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 18:59:29 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2016-10-27 18:59:29 (GMT)
commitd4d595fa7fb12903db9227d33d48b2b00120dbd1 (patch)
tree7d18365de0d6d1b29399b6a17c7eb01c2eb3ed49 /tksao/frame/grid2d.h
parent949f96e29bfe0bd8710d775ce220e597064e2589 (diff)
downloadblt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.zip
blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.tar.gz
blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.tar.bz2
Initial commit
Diffstat (limited to 'tksao/frame/grid2d.h')
-rw-r--r--tksao/frame/grid2d.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/tksao/frame/grid2d.h b/tksao/frame/grid2d.h
new file mode 100644
index 0000000..396d498
--- /dev/null
+++ b/tksao/frame/grid2d.h
@@ -0,0 +1,35 @@
+// Copyright (C) 1999-2016
+// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
+// For conditions of distribution and use, see copyright notice in "copyright"
+
+#ifndef __grid2d_h__
+#define __grid2d_h__
+
+#include "grid.h"
+#include "grid2dbase.h"
+#include "coord.h"
+
+class Grid2d : public Grid, public Grid2dBase {
+ private:
+ int matrixMap(void*, Matrix&, const char*);
+ int doit(RenderMode);
+
+ public:
+ Grid2d(Widget*, Coord::CoordSystem, Coord::SkyFrame,
+ Coord::SkyFormat, GridType,
+ const char*, const char*);
+ ~Grid2d();
+
+ const char* option() {return GridBase::option();}
+
+ void x11() {doit(X11);}
+ void ps(int mode) {mode_=mode; doit(PS);}
+#ifdef MAC_OSX_TK
+ void macosx() {doit(MACOSX);}
+#endif
+#ifdef __WIN32
+ void win32() {doit(GWIN32);}
+#endif
+};
+
+#endif