|
@@ -1,17 +1,14 @@
|
|
|
-
|
|
|
-/**
|
|
|
- * \file color_rule_get.c
|
|
|
+/*!
|
|
|
+ * \file raster/color_rule_get.c
|
|
|
*
|
|
|
* \brief Raster Library - Get color rules.
|
|
|
*
|
|
|
- * (C) 2001-2008 by the GRASS Development Team
|
|
|
+ * (C) 2001-2009 by the GRASS Development Team
|
|
|
*
|
|
|
- * This program is free software under the GNU General Public License
|
|
|
+ * This program is free software under the GNU General Public License
|
|
|
* (>=v2). Read the file COPYING that comes with GRASS for details.
|
|
|
*
|
|
|
- * \author GRASS GIS Development Team
|
|
|
- *
|
|
|
- * \date 1999-2008
|
|
|
+ * \author Original author CERL
|
|
|
*/
|
|
|
|
|
|
#include <grass/gis.h>
|
|
@@ -52,7 +49,8 @@ int Rast_colors_count(const struct Colors *colors)
|
|
|
/*!
|
|
|
\brief Get color rule from both modular and fixed rules
|
|
|
|
|
|
- Rules are returned in the order as stored in the table (i.e. unexpected, high values first)
|
|
|
+ Rules are returned in the order as stored in the table
|
|
|
+ (i.e. unexpected, high values first)
|
|
|
|
|
|
\param val1 color value
|
|
|
\param[out] r1,g1,b1 color value
|
|
@@ -64,10 +62,10 @@ int Rast_colors_count(const struct Colors *colors)
|
|
|
\return 0 success
|
|
|
\return 1 index out of range
|
|
|
*/
|
|
|
-int Rast_get_f_color_rule(DCELL * val1, unsigned char *r1, unsigned char *g1,
|
|
|
- unsigned char *b1, DCELL * val2, unsigned char *r2,
|
|
|
- unsigned char *g2, unsigned char *b2,
|
|
|
- const struct Colors *colors, int rule)
|
|
|
+int Rast_get_fp_color_rule(DCELL * val1, unsigned char *r1, unsigned char *g1,
|
|
|
+ unsigned char *b1, DCELL * val2, unsigned char *r2,
|
|
|
+ unsigned char *g2, unsigned char *b2,
|
|
|
+ const struct Colors *colors, int rule)
|
|
|
{
|
|
|
int index = -1;
|
|
|
int found = 0;
|