| Line | |
|---|
| 1 | #ifndef PICMAPX_H_SEEN
|
|---|
| 2 | #define PICMAPX_H_SEEN
|
|---|
| 3 |
|
|---|
| 4 | #include "picmapgen.h"
|
|---|
| 5 |
|
|---|
| 6 | typedef unsigned long PIXColor ;
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | class PIColorMapX : public PIColorMapGen {
|
|---|
| 10 | public:
|
|---|
| 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 |
|
|---|
| 25 | protected:
|
|---|
| 26 | virtual void CopyFrom(PIColorMapGen*);
|
|---|
| 27 |
|
|---|
| 28 | PIXColor * mColors; // La table des couleurs ...
|
|---|
| 29 | PIColor * mColRGB; // Composantes RGB
|
|---|
| 30 | };
|
|---|
| 31 |
|
|---|
| 32 | typedef PIColorMapX PIColorMapNative;
|
|---|
| 33 |
|
|---|
| 34 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.