WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Enhance.h
1#ifndef _WINC_ENHANCE
2#define _WINC_ENHANCE
3
4#include <WXP/ColorMap.h>
5
6namespace WXP {
7 class Enhance {
8 char name[20];
9 int *index;
10 float *value;
11 int type;
12 int ind;
13 int num;
14 int max;
15
16 int initClass();
17 public:
18
19 Enhance();
20 Enhance( const Enhance &enh );
21 Enhance( ColorMap &colormap, const char *str );
22 ~Enhance();
23 Enhance operator=( const Enhance &enh );
24 int init();
25 int getNum();
26 int set( const Enhance &enh );
27 int set( ColorMap &colormap, const char *str );
28 int readFile( ColorMap &colormap, const char *file );
29 int validateValues();
30 int decode( ColorMap &colormap, const char *str );
31 int setIndex( int ind, int rindex );
32 int getIndex( int ind );
33 float getValue( int ind );
34 int getIndex( float rvalue );
35 int getColor( float rvalue );
37 inline bool isIndex(){ return type == INDEX; };
39 inline bool isValue(){ return type == VALUE; };
41 inline const char *getName(){ return name; };
42 int print();
43
44 enum Type { INDEX, VALUE };
45 };
46}
47#endif
This class defines a specific color map. This is a mapping between color indices, color names and RGB...
Definition: ColorMap.h:8
This class creates and accesses satellite enhancement files.
Definition: Enhance.h:7
bool isValue()
Definition: Enhance.h:39
Enhance operator=(const Enhance &enh)
Definition: Enhance.cc:57
bool isIndex()
Definition: Enhance.h:37
const char * getName()
Definition: Enhance.h:41
All WXP classes fall under the WXP namespace.
Definition: Angle.h:4