00001
#ifndef DEF_COLOUR_CODING
00002
#define DEF_COLOUR_CODING
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
#include <bicpl/objects.h>
00020
00021 typedef enum {
GRAY_SCALE,
00022
HOT_METAL,
00023
SPECTRAL,
00024
RED_COLOUR_MAP,
00025
GREEN_COLOUR_MAP,
00026
BLUE_COLOUR_MAP,
00027
CONTOUR_COLOUR_MAP,
00028
SINGLE_COLOUR_SCALE,
00029
USER_DEFINED_COLOUR_MAP }
00030
Colour_coding_types;
00031
00032 typedef struct {
00033 Real position;
00034 Real r, g, b, a;
00035 Colour_spaces interpolation_space;
00036 }
colour_point;
00037
00038 typedef struct
00039
{
00040 Colour_coding_types type;
00041
00042 Colour under_colour;
00043 Colour over_colour;
00044
00045 Real min_value;
00046 Real max_value;
00047
00048 int n_colour_points;
00049 colour_point *colour_points;
00050
00051 int user_defined_n_colour_points;
00052 colour_point *user_defined_colour_points;
00053
00054 }
colour_coding_struct;
00055
00056
#endif