color_init.c

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

Generated on Fri Nov 21 11:02:17 2008 for GRASS by  doxygen 1.5.1