GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-a2d9ad8523
gvl3.c File Reference

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>
Include dependency graph for gvl3.c:

Go to the source code of this file.


int Gvl_load_colors_data (void **color_data, const char *name)
 Load color table. More...
int Gvl_unload_colors_data (void *color_data)
 Unload color table. More...
int Gvl_get_color_for_value (void *color_data, float *value)
 Get color for value. More...

Detailed Description

OGSF library - loading volumes (lower level functions)

GRASS OpenGL gsurf OGSF Library

(C) 1999-2008 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.

Tomas Paudits (December 2003)
Doxygenized by Martin Landa <landa.martin> (May 2008)

Definition in file gvl3.c.

Function Documentation

◆ Gvl_get_color_for_value()

int Gvl_get_color_for_value ( void *  color_data,
float *  value 

Get color for value.

color_datacolor data value
valuedata value
color value

Definition at line 82 of file gvl3.c.

References b, g, r, and Rast_get_f_color().

◆ Gvl_load_colors_data()

int Gvl_load_colors_data ( void **  color_data,
const char *  name 

Load color table.

[out]color_datacolor data buffer
name3D raster map name
-1 on failure
1 on success

Definition at line 34 of file gvl3.c.

◆ Gvl_unload_colors_data()

int Gvl_unload_colors_data ( void *  color_data)

Unload color table.

color_datacolor data buffer
-1 on failure
1 on success

Definition at line 65 of file gvl3.c.

References G_free(), and Rast_free_colors().