|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
|
OGSF library - loading volumes (lower level functions) More...
#include <grass/gis.h>#include <grass/raster.h>#include <grass/raster3d.h>#include <grass/ogsf.h>#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
| int | Gvl_load_colors_data (void **color_data, const char *name) |
| Load color table. | |
| int | Gvl_unload_colors_data (void *color_data) |
| Unload color table. | |
| int | Gvl_get_color_for_value (void *color_data, float *value) |
| Get color for value. | |
OGSF library - loading volumes (lower level functions)
GRASS OpenGL gsurf OGSF Library
SPDX-FileCopyrightText: 1999-2008 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
Definition in file gvl3.c.
Get color for value.
| color_data | color data value |
| value | data value |
Definition at line 78 of file gvl3.c.
References b, g, r, and Rast_get_f_color().
Referenced by iso_calc_cube(), and slice_calc().
Load color table.
| [out] | color_data | color data buffer |
| name | 3D raster map name |
Definition at line 30 of file gvl3.c.
References _, G_find_raster3d(), G_free(), G_malloc, G_warning(), name, NULL, and Rast3d_read_colors().
Referenced by gvl_isosurf_set_att_map(), and gvl_slices_calc().
Unload color table.
| color_data | color data buffer |
Definition at line 61 of file gvl3.c.
References G_free(), and Rast_free_colors().
Referenced by gvl_isosurf_set_att_src(), and gvl_slices_calc().