GRASS GIS 8 Programmer's Manual 8.3.2(2024)-exported
|
GIS Library - Color tables management subroutines. More...
#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
char * | G_color_rules_options (void) |
Get list of color rules for Option->options. | |
char * | G_color_rules_descriptions (void) |
Get color rules description for Option->descriptions. | |
char * | G_color_rules_description_type (void) |
Get color rules description for Option->descriptions. | |
void | G_list_color_rules (FILE *out) |
Print color rules. | |
void | G_list_color_rules_description_type (FILE *out, char *name) |
Print color rules with description and type. | |
int | G_find_color_rule (const char *name) |
Check if color rule is defined. | |
GIS Library - Color tables management subroutines.
Taken from r.colors module.
(C) 2001-2011 by the GRASS Development Team
Definition in file color_rules.c.
char * G_color_rules_description_type | ( | void | ) |
Get color rules description for Option->descriptions.
The type of color rule including range is appended to the description
Definition at line 123 of file color_rules.c.
References name.
Referenced by G_define_standard_option().
char * G_color_rules_descriptions | ( | void | ) |
Get color rules description for Option->descriptions.
Definition at line 78 of file color_rules.c.
References name.
char * G_color_rules_options | ( | void | ) |
Get list of color rules for Option->options.
Definition at line 39 of file color_rules.c.
References list, name, and NULL.
Referenced by G_define_standard_option().
int G_find_color_rule | ( | const char * | name | ) |
Check if color rule is defined.
name | color rule name |
Definition at line 245 of file color_rules.c.
void G_list_color_rules | ( | FILE * | out | ) |
Print color rules.
out | file where to print |
Definition at line 174 of file color_rules.c.
References name.
void G_list_color_rules_description_type | ( | FILE * | out, |
char * | name | ||
) |
Print color rules with description and type.
The type of color rule including range is appended to the description. If a color rule name is given, color info is printed only for this rule.
name | optional color rule name, or NULL |
out | file where to print |
Definition at line 197 of file color_rules.c.