GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
color_free.c File Reference

Raster Library - Free Colors structure. More...

#include <stdlib.h>
#include <grass/gis.h>
#include <grass/raster.h>
Include dependency graph for color_free.c:

Go to the source code of this file.

Functions

void Rast_free_colors (struct Colors *colors)
 Free color structure memory. More...
 
void Rast__color_free_rules (struct _Color_Info_ *cp)
 Free color rules structure. More...
 
void Rast__color_free_lookup (struct _Color_Info_ *cp)
 Free color rules structure. More...
 
void Rast__color_free_fp_lookup (struct _Color_Info_ *cp)
 Free color rules structure. More...
 
void Rast__color_reset (struct Colors *colors)
 Reset colors structure. More...
 

Detailed Description

Raster Library - Free Colors structure.

(C) 2001-2009 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Original author CERL

Definition in file color_free.c.

Function Documentation

◆ Rast__color_free_fp_lookup()

void Rast__color_free_fp_lookup ( struct _Color_Info_ cp)

Free color rules structure.

Note: Only for internal use.

Parameters
cppointer to _Color_Info structure

Definition at line 79 of file color_free.c.

References _Color_Info_::active, _Color_Info_::fp_lookup, G_free(), _Color_Info_::nalloc, _Color_Info_::rules, and _Color_Info_::vals.

◆ Rast__color_free_lookup()

void Rast__color_free_lookup ( struct _Color_Info_ cp)

Free color rules structure.

Note: Only for internal use.

Parameters
cppointer to _Color_Info structure

Definition at line 61 of file color_free.c.

References _Color_Info_::active, _Color_Info_::blu, G_free(), _Color_Info_::grn, _Color_Info_::lookup, _Color_Info_::red, and _Color_Info_::set.

◆ Rast__color_free_rules()

void Rast__color_free_rules ( struct _Color_Info_ cp)

Free color rules structure.

Note: Only for internal use.

Parameters
cppointer to _Color_Info structure

Definition at line 43 of file color_free.c.

◆ Rast__color_reset()

void Rast__color_reset ( struct Colors colors)

Reset colors structure.

Note: Only for internal use.

This routine should NOT init the colors.

Parameters
colorspointer to Colors structure

Definition at line 98 of file color_free.c.

◆ Rast_free_colors()

void Rast_free_colors ( struct Colors 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().

Parameters
colorspointer to Colors structure

Definition at line 30 of file color_free.c.

Referenced by Gvl_unload_colors_data().