GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-602118adcc
raster3d/color.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/glocale.h>
#include "raster3d_intern.h"
Include dependency graph for raster3d/color.c:

Go to the source code of this file.

Functions

int Rast3d_remove_color (const char *name)
 Removes the primary and/or secondary color file. More...
 
int Rast3d_read_colors (const char *name, const char *mapset, struct Colors *colors)
 Reads color file for map name in mapset into the Colors structure. More...
 
int Rast3d_write_colors (const char *name, const char *mapset, struct Colors *colors)
 Writes the colors for map name in mapset into a color file. More...
 

Function Documentation

◆ Rast3d_read_colors()

int Rast3d_read_colors ( const char *  name,
const char *  mapset,
struct Colors colors 
)

Reads color file for map name in mapset into the Colors structure.

Parameters
name3D raster map name
mapsetmapset name
colorscolors to be associated with a map
See also
Rast3d_write_colors, Rast_read_colors

Definition at line 44 of file raster3d/color.c.

◆ Rast3d_remove_color()

int Rast3d_remove_color ( const char *  name)

Removes the primary and/or secondary color file.

Todo:
Is primary and/or secondary color file still valid for 7?
See also
G_remove_colr

Definition at line 26 of file raster3d/color.c.

References G_remove_misc(), name, RASTER3D_COLOR_ELEMENT, and RASTER3D_DIRECTORY.

◆ Rast3d_write_colors()

int Rast3d_write_colors ( const char *  name,
const char *  mapset,
struct Colors colors 
)

Writes the colors for map name in mapset into a color file.

Parameters
name3D raster map name
mapsetmapset name
colorscolors to be associated with a map
See also
Rast3d_read_colors, Rast3d_remove_color, Rast_write_colors

Definition at line 351 of file raster3d/color.c.