GRASS Programmer's Manual
6.4.2(2012)
|
00001 00002 /**************************************************************************** 00003 * 00004 * MODULE: gis library 00005 * AUTHOR(S): Glynn Clements <glynn@gclements.plus.com> 00006 * COPYRIGHT: (C) 2007 Glynn Clements and the GRASS Development Team 00007 * 00008 * NOTE: Compatibility wrappers for G_make_*[_fp]_colors() 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 *****************************************************************************/ 00021 00022 #include <grass/gis.h> 00023 00024 00038 int G_make_wave_colors(struct Colors *colors, CELL min, CELL max) 00039 { 00040 return G_make_colors(colors, "wave", min, max); 00041 } 00042 00043 int G_make_wave_fp_colors(struct Colors *colors, DCELL min, DCELL max) 00044 { 00045 return G_make_fp_colors(colors, "wave", min, max); 00046 } 00047 00048 00049 int G_make_ryg_colors(struct Colors *colors, CELL min, CELL max) 00050 { 00051 return G_make_colors(colors, "ryg", min, max); 00052 } 00053 00054 int G_make_ryg_fp_colors(struct Colors *colors, DCELL min, DCELL max) 00055 { 00056 return G_make_fp_colors(colors, "ryg", min, max); 00057 } 00058 00072 int G_make_ramp_colors(struct Colors *colors, CELL min, CELL max) 00073 { 00074 return G_make_colors(colors, "ramp", min, max); 00075 } 00076 00077 int G_make_ramp_fp_colors(struct Colors *colors, DCELL min, DCELL max) 00078 { 00079 return G_make_fp_colors(colors, "ramp", min, max); 00080 } 00081 00097 int G_make_rainbow_colors(struct Colors *colors, CELL min, CELL max) 00098 { 00099 return G_make_colors(colors, "rainbow", min, max); 00100 } 00101 00102 int G_make_rainbow_fp_colors(struct Colors *colors, DCELL min, DCELL max) 00103 { 00104 return G_make_fp_colors(colors, "rainbow", min, max); 00105 } 00106 00107 00108 int G_make_gyr_colors(struct Colors *colors, CELL min, CELL max) 00109 { 00110 return G_make_colors(colors, "gyr", min, max); 00111 } 00112 00113 int G_make_gyr_fp_colors(struct Colors *colors, DCELL min, DCELL max) 00114 { 00115 return G_make_fp_colors(colors, "gyr", min, max); 00116 } 00117 00130 int G_make_grey_scale_colors(struct Colors *colors, CELL min, CELL max) 00131 { 00132 return G_make_colors(colors, "grey", min, max); 00133 } 00134 00135 int G_make_grey_scale_fp_colors(struct Colors *colors, DCELL min, DCELL max) 00136 { 00137 return G_make_fp_colors(colors, "grey", min, max); 00138 } 00139 00140 int G_make_byr_colors(struct Colors *colors, CELL min, CELL max) 00141 { 00142 return G_make_colors(colors, "byr", min, max); 00143 } 00144 00145 int G_make_byr_fp_colors(struct Colors *colors, DCELL min, DCELL max) 00146 { 00147 return G_make_fp_colors(colors, "byr", min, max); 00148 } 00149 00150 int G_make_bgyr_colors(struct Colors *colors, CELL min, CELL max) 00151 { 00152 return G_make_colors(colors, "bgyr", min, max); 00153 } 00154 00155 int G_make_bgyr_fp_colors(struct Colors *colors, DCELL min, DCELL max) 00156 { 00157 return G_make_fp_colors(colors, "bgyr", min, max); 00158 } 00159 00160 int G_make_byg_colors(struct Colors *colors, CELL min, CELL max) 00161 { 00162 return G_make_colors(colors, "byg", min, max); 00163 } 00164 00165 int G_make_byg_fp_colors(struct Colors *colors, DCELL min, DCELL max) 00166 { 00167 return G_make_fp_colors(colors, "byg", min, max); 00168 } 00169 00181 int G_make_aspect_colors(struct Colors *colors, CELL min, CELL max) 00182 { 00183 return G_make_colors(colors, "aspect", min, max); 00184 } 00185 00186 int G_make_aspect_fp_colors(struct Colors *colors, DCELL min, DCELL max) 00187 { 00188 return G_make_fp_colors(colors, "aspect", min, max); 00189 }