GRASS Programmer's Manual
6.4.3(2013)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
color_compat.c
Go to the documentation of this file.
1
2
/****************************************************************************
3
*
4
* MODULE: gis library
5
* AUTHOR(S): Glynn Clements <glynn@gclements.plus.com>
6
* COPYRIGHT: (C) 2007 Glynn Clements and the GRASS Development Team
7
*
8
* NOTE: Compatibility wrappers for G_make_*[_fp]_colors()
9
*
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
*****************************************************************************/
21
22
#include <grass/gis.h>
23
24
38
int
G_make_wave_colors
(
struct
Colors *colors, CELL
min
, CELL
max
)
39
{
40
return
G_make_colors
(colors,
"wave"
, min, max);
41
}
42
43
int
G_make_wave_fp_colors
(
struct
Colors *colors, DCELL
min
, DCELL
max
)
44
{
45
return
G_make_fp_colors
(colors,
"wave"
, min, max);
46
}
47
48
49
int
G_make_ryg_colors
(
struct
Colors *colors, CELL
min
, CELL
max
)
50
{
51
return
G_make_colors
(colors,
"ryg"
, min, max);
52
}
53
54
int
G_make_ryg_fp_colors
(
struct
Colors *colors, DCELL
min
, DCELL
max
)
55
{
56
return
G_make_fp_colors
(colors,
"ryg"
, min, max);
57
}
58
72
int
G_make_ramp_colors
(
struct
Colors *colors, CELL
min
, CELL
max
)
73
{
74
return
G_make_colors
(colors,
"ramp"
, min, max);
75
}
76
77
int
G_make_ramp_fp_colors
(
struct
Colors *colors, DCELL
min
, DCELL
max
)
78
{
79
return
G_make_fp_colors
(colors,
"ramp"
, min, max);
80
}
81
97
int
G_make_rainbow_colors
(
struct
Colors *colors, CELL
min
, CELL
max
)
98
{
99
return
G_make_colors
(colors,
"rainbow"
, min, max);
100
}
101
102
int
G_make_rainbow_fp_colors
(
struct
Colors *colors, DCELL
min
, DCELL
max
)
103
{
104
return
G_make_fp_colors
(colors,
"rainbow"
, min, max);
105
}
106
107
108
int
G_make_gyr_colors
(
struct
Colors *colors, CELL
min
, CELL
max
)
109
{
110
return
G_make_colors
(colors,
"gyr"
, min, max);
111
}
112
113
int
G_make_gyr_fp_colors
(
struct
Colors *colors, DCELL
min
, DCELL
max
)
114
{
115
return
G_make_fp_colors
(colors,
"gyr"
, min, max);
116
}
117
130
int
G_make_grey_scale_colors
(
struct
Colors *colors, CELL
min
, CELL
max
)
131
{
132
return
G_make_colors
(colors,
"grey"
, min, max);
133
}
134
135
int
G_make_grey_scale_fp_colors
(
struct
Colors *colors, DCELL
min
, DCELL
max
)
136
{
137
return
G_make_fp_colors
(colors,
"grey"
, min, max);
138
}
139
140
int
G_make_byr_colors
(
struct
Colors *colors, CELL
min
, CELL
max
)
141
{
142
return
G_make_colors
(colors,
"byr"
, min, max);
143
}
144
145
int
G_make_byr_fp_colors
(
struct
Colors *colors, DCELL
min
, DCELL
max
)
146
{
147
return
G_make_fp_colors
(colors,
"byr"
, min, max);
148
}
149
150
int
G_make_bgyr_colors
(
struct
Colors *colors, CELL
min
, CELL
max
)
151
{
152
return
G_make_colors
(colors,
"bgyr"
, min, max);
153
}
154
155
int
G_make_bgyr_fp_colors
(
struct
Colors *colors, DCELL
min
, DCELL
max
)
156
{
157
return
G_make_fp_colors
(colors,
"bgyr"
, min, max);
158
}
159
160
int
G_make_byg_colors
(
struct
Colors *colors, CELL
min
, CELL
max
)
161
{
162
return
G_make_colors
(colors,
"byg"
, min, max);
163
}
164
165
int
G_make_byg_fp_colors
(
struct
Colors *colors, DCELL
min
, DCELL
max
)
166
{
167
return
G_make_fp_colors
(colors,
"byg"
, min, max);
168
}
169
181
int
G_make_aspect_colors
(
struct
Colors *colors, CELL
min
, CELL
max
)
182
{
183
return
G_make_colors
(colors,
"aspect"
, min, max);
184
}
185
186
int
G_make_aspect_fp_colors
(
struct
Colors *colors, DCELL
min
, DCELL
max
)
187
{
188
return
G_make_fp_colors
(colors,
"aspect"
, min, max);
189
}
lib
gis
color_compat.c
Generated on Sat Oct 5 2013 12:11:06 for GRASS Programmer's Manual by
1.8.4