summaryrefslogtreecommitdiffstats
path: root/tksao/frame/grid.h
blob: 0a4f0a63a52fd9ac659ca12bd7a0a84555a8b4c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (C) 1999-2018
// 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