GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-8cbe8fef7c
color_range.c File Reference

Raster Library - Color range functions. More...

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

Go to the source code of this file.

Functions

void Rast_set_c_color_range (CELL min, CELL max, struct Colors *colors)
 Set color range (CELL version) More...
 
void Rast_set_d_color_range (DCELL min, DCELL max, struct Colors *colors)
 Set color range (DCELL version) More...
 
void Rast_get_c_color_range (CELL *min, CELL *max, const struct Colors *colors)
 Get color range values (CELL) More...
 
void Rast_get_d_color_range (DCELL *min, DCELL *max, const struct Colors *colors)
 Get color range values (DCELL) More...
 

Detailed Description

Raster Library - Color range functions.

(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_range.c.

Function Documentation

◆ Rast_get_c_color_range()

void Rast_get_c_color_range ( CELL min,
CELL max,
const struct Colors colors 
)

Get color range values (CELL)

Returns min and max category in the range or huge numbers if the color table is defined on floating cell values and not on categories.

Parameters
[out]min,maxminimum and maximum value
colorspointer to Colors structure which holds color info

Definition at line 64 of file color_range.c.

◆ Rast_get_d_color_range()

void Rast_get_d_color_range ( DCELL min,
DCELL max,
const struct Colors colors 
)

Get color range values (DCELL)

Returns min and max category in the range or huge numbers if the color table is defined on floating cell values and not on categories.

Parameters
[out]min,maxminimum and maximum value
colorspointer to Colors structure which holds color info

Definition at line 86 of file color_range.c.

◆ Rast_set_c_color_range()

void Rast_set_c_color_range ( CELL  min,
CELL  max,
struct Colors colors 
)

Set color range (CELL version)

Parameters
min,maxminimum and maximum value
colorspointer to Colors structure which holds color info

Definition at line 24 of file color_range.c.

◆ Rast_set_d_color_range()

void Rast_set_d_color_range ( DCELL  min,
DCELL  max,
struct Colors colors 
)

Set color range (DCELL version)

Parameters
min,maxminimum and maximum value
colorspointer to Colors structure which holds color info

Definition at line 42 of file color_range.c.