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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
| #pragma once
|
|
| #include "akGraph/akGraphLinker.h"
|
| #include <iostream>
| #include <vector>
|
|
|
|
|
|
|
|
| class AFX_EXT_CLASS CakColorTable
| {
| public:
| CakColorTable(void);
| ~CakColorTable(void);
|
| public:
| struct AFX_EXT_CLASS _COLOR_TABLE
| {
| char name[255];
| unsigned char R[64];
| unsigned char G[64];
| unsigned char B[64];
| };
|
|
|
|
| void setFile(char *file);
| void setColorTable(int index , int level , float min , float max , float value , unsigned char &R , unsigned char &G , unsigned char &B , bool inverse);
| void setColorTableSmooth(int index , int level , float min , float max , float value , unsigned char &R , unsigned char &G , unsigned char &B , bool inverse);
|
| int getTotalColorTable(void);
| char *getColorName(int index);
|
| void rendColorTableBar(CDC *dc , int x , int y , int width , int height , int index , int level , bool inverse , bool vertical);
|
|
|
| protected:
|
| private:
|
|
| public:
| std::vector<_COLOR_TABLE> m_vecColorTable;
|
| protected:
|
|
| private:
|
| };
|
|