summaryrefslogtreecommitdiffstats
path: root/tksao/colorbar/cbgrid.h
blob: bffc6e8c44063d22571dd084de0ca21345181e7b (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
// Copyright (C) 1999-2016
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"

#ifndef __cbgrid_h__
#define __cbgrid_h__

#include <tk.h>

#include "grid2dbase.h"
#include "vector.h"

class CBGrid : public Grid2dBase {
 private:
  int cnt_;
  double* lut_;

  int doit(RenderMode);

 public:
  CBGrid(Widget*, int, double*);

  int render();
  int ps(int, int, int);
#ifdef MAC_OSX_TK
  int macosx(int, int);
#endif
#ifdef __WIN32
  int win32(int, int);
#endif
};

#endif