diff options
Diffstat (limited to 'tksao/frame/grid.h')
-rw-r--r-- | tksao/frame/grid.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tksao/frame/grid.h b/tksao/frame/grid.h new file mode 100644 index 0000000..8c2c235 --- /dev/null +++ b/tksao/frame/grid.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 __grid_h__ +#define __grid_h__ + +#include "coord.h" + +class Grid { + public: + enum GridType {ANALYSIS,PUBLICATION}; + + protected: + GridType type_; + Coord::CoordSystem system_; + Coord::SkyFrame sky_; + Coord::SkyFormat skyFormat_; + char* vars_; + + public: + Grid(Coord::CoordSystem, Coord::SkyFrame, Coord::SkyFormat, + GridType, const char*); + virtual ~Grid(); + + virtual const char* option() =0; + + virtual void x11() =0; + virtual void ps(int) =0; +#ifdef MAC_OSX_TK + virtual void macosx() =0; +#endif +#ifdef __WIN32 + virtual void win32() =0; +#endif + + GridType type() {return type_;} + Coord::CoordSystem system() {return system_;} + Coord::SkyFrame sky() {return sky_;} + Coord::SkyFormat skyFormat() {return skyFormat_;} + const char* vars() {return vars_;} +}; + +#endif |