GRASS Programmer's Manual  6.4.1(2011)
color_init.c
Go to the documentation of this file.
00001 
00002 /**********************************************************************
00003  *
00004  * G_init_colors (colors)
00005  *      struct Colors *colors         structure to hold color info
00006  *
00007  * Initializes the color structure for subsequent calls to G_add_color_rule()
00008  *********************************************************************/
00009 
00010 #include <grass/gis.h>
00011 
00012 
00023 int G_init_colors(struct Colors *colors)
00024 {
00025     colors->version = 0;
00026     colors->null_set = 0;
00027     colors->undef_set = 0;
00028     colors->shift = 0.0;
00029     colors->invert = 0;
00030     colors->cmin = 0;
00031     colors->is_float = 0;
00032     colors->cmax = -1;
00033     colors->fixed.min = 0;
00034     colors->fixed.max = -1;
00035     colors->fixed.rules = NULL;
00036     colors->fixed.n_rules = 0;
00037     colors->fixed.lookup.active = 0;
00038     colors->fixed.fp_lookup.active = 0;
00039     colors->fixed.fp_lookup.nalloc = 0;
00040     colors->modular.min = 0;
00041     colors->modular.max = -1;
00042     colors->modular.rules = NULL;
00043     colors->modular.n_rules = 0;
00044     colors->modular.lookup.active = 0;
00045     colors->modular.fp_lookup.active = 0;
00046     colors->modular.fp_lookup.nalloc = 0;
00047 
00048     return 0;
00049 }
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines