|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-b43c9b8403
|
Raster Library - Free Colors structure. More...

Go to the source code of this file.
Functions | |
| void | Rast_free_colors (struct Colors *colors) |
| Free color structure memory. | |
| void | Rast__color_free_rules (struct _Color_Info_ *cp) |
| Free color rules structure. | |
| void | Rast__color_free_lookup (struct _Color_Info_ *cp) |
| Free color rules structure. | |
| void | Rast__color_free_fp_lookup (struct _Color_Info_ *cp) |
| Free color rules structure. | |
| void | Rast__color_reset (struct Colors *colors) |
| Reset colors structure. | |
Raster Library - Free Colors structure.
SPDX-FileCopyrightText: 2001-2009 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
Definition in file color_free.c.
| void Rast__color_free_fp_lookup | ( | struct _Color_Info_ * | cp | ) |
Free color rules structure.
Note: Only for internal use.
| cp | pointer to _Color_Info structure |
Definition at line 77 of file color_free.c.
References G_free().
| void Rast__color_free_lookup | ( | struct _Color_Info_ * | cp | ) |
Free color rules structure.
Note: Only for internal use.
| cp | pointer to _Color_Info structure |
Definition at line 59 of file color_free.c.
References G_free().
Referenced by Rast__color_reset().
| void Rast__color_free_rules | ( | struct _Color_Info_ * | cp | ) |
Free color rules structure.
Note: Only for internal use.
| cp | pointer to _Color_Info structure |
Definition at line 41 of file color_free.c.
References G_free(), _Color_Rule_::next, and NULL.
Referenced by Rast__color_reset().
Reset colors structure.
Note: Only for internal use.
This routine should NOT init the colors.
| colors | pointer to Colors structure |
Definition at line 96 of file color_free.c.
References Colors::fixed, Colors::modular, Rast__color_free_lookup(), Rast__color_free_rules(), and Colors::version.
Referenced by Rast_free_colors().
Free color structure memory.
The dynamically allocated memory associated with the colors structure is freed.
Note: This routine may be used after Rast_read_colors() as well as after Rast_init_colors().
| colors | pointer to Colors structure |
Definition at line 28 of file color_free.c.
References Rast__color_reset(), and Rast_init_colors().
Referenced by Gs_pack_colors(), Gs_pack_colors_float(), gsd_put_legend(), Gvl_unload_colors_data(), and Rast_map_to_img_str().