|
GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
#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"
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... | |
| 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.
| name | 3D raster map name |
| mapset | mapset name |
| colors | colors to be associated with a map |
Definition at line 44 of file raster3d/color.c.
| int Rast3d_remove_color | ( | const char * | name | ) |
Removes the primary and/or secondary color file.
Definition at line 27 of file raster3d/color.c.
References G_remove_misc(), RASTER3D_COLOR_ELEMENT, and RASTER3D_DIRECTORY.
| 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.
| name | 3D raster map name |
| mapset | mapset name |
| colors | colors to be associated with a map |
Definition at line 348 of file raster3d/color.c.
References _, G_fopen_new_misc(), G_mapset(), G_warning(), Rast__write_colors(), RASTER3D_COLOR_ELEMENT, and RASTER3D_DIRECTORY.