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

#ifndef __frame3dtruecolor8_h__
#define __frame3dtruecolor8_h__

#include "frame3d.h"
#include "truecolor8.h"

class Frame3dTrueColor8 : public Frame3d, public TrueColor8 {

private:
  void encodeTrueColor(XColor* src, char* dest) 
  {TrueColor8::encodeTrueColor(src,dest,baseXImage);}
  void encodeTrueColor(unsigned char* src, XImage* ximage) 
  {TrueColor8::encodeTrueColor(src, ximage);}
  void updateColorScale();

public:
  Frame3dTrueColor8(Tcl_Interp*, Tk_Canvas, Tk_Item*);
  ~Frame3dTrueColor8();
};

#endif