source: Sophya/branches/EA_Juin98/SophyaPI/PI/picmapx.h@ 1036

Last change on this file since 1036 was 64, checked in by aubourg, 28 years ago

Portage Mac, 22/12/97

File size: 747 bytes
Line 
1#ifndef PICMAPX_H_SEEN
2#define PICMAPX_H_SEEN
3
4#include "picmapgen.h"
5
6typedef unsigned long PIXColor ;
7
8
9class PIColorMapX : public PIColorMapGen {
10public:
11 PIColorMapX();
12 PIColorMapX(int id, int nc, string const& nom);
13 virtual ~PIColorMapX();
14
15 inline PIXColor Color(int index)
16 { return ((index < mNCol) ? mColors[index] : 0); } ;
17
18 virtual PIColor GetColor(int n);
19 virtual bool AllocColor(PIColor const& col, int index);
20 virtual void FreeColors();
21
22 virtual long TotNbColors();
23 virtual int NbAllocColors();
24
25protected:
26 virtual void CopyFrom(PIColorMapGen*);
27
28 PIXColor * mColors; // La table des couleurs ...
29 PIColor * mColRGB; // Composantes RGB
30};
31
32typedef PIColorMapX PIColorMapNative;
33
34#endif
Note: See TracBrowser for help on using the repository browser.