|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|

Go to the source code of this file.
Functions | |
| int | D_set_overlay_mode (int n) |
| Configure raster overlay mode. | |
| int | D_color (CELL cat, struct Colors *colors) |
| this routine modifies the hardware colormap provided that we are not using fixed mode colors. | |
| int | D_c_color (CELL cat, struct Colors *colors) |
| int | D_d_color (DCELL val, struct Colors *colors) |
| select color for line drawing | |
| int | D_f_color (FCELL val, struct Colors *colors) |
| select color for line drawing | |
| int | D_color_of_type (const void *raster, struct Colors *colors, RASTER_MAP_TYPE data_type) |
| If the data_type is CELL_TYPE, calls D_color((CELL *value, colors); If the data_type is FCELL_TYPE, calls D_f_color((FCELL *value, colors); If the data_type is DCELL_TYPE, calls D_d_color((DCELL *value, colors);. | |
Variables | |
| int | D__overlay_mode = 0 |
Definition at line 71 of file raster2.c.
References CELL_TYPE, and D_color_of_type().
Referenced by D_color().
this routine modifies the hardware colormap provided that we are not using fixed mode colors.
For use by programs such as d.colors.
| cat | |
| colors |
Definition at line 65 of file raster2.c.
References D_c_color().
If the data_type is CELL_TYPE, calls D_color((CELL *value, colors); If the data_type is FCELL_TYPE, calls D_f_color((FCELL *value, colors); If the data_type is DCELL_TYPE, calls D_d_color((DCELL *value, colors);.
| raster | |
| colors | |
| data_type |
Definition at line 124 of file raster2.c.
References b, D_RGB_color(), g, r, and Rast_get_color().
Referenced by D_c_color(), D_d_color(), and D_f_color().
select color for line drawing
Same functionality as D_color() except that the value is type DCELL. This implies that the floating-point interfaces to the colors are used by this routine.
| val | Value |
| colors |
Definition at line 87 of file raster2.c.
References D_color_of_type(), and DCELL_TYPE.
select color for line drawing
Same functionality as D_color() except that the value is type FCELL. This implies that the floating-point interfaces to the colors are used by this routine.
| val | |
| colors |
Definition at line 104 of file raster2.c.
References D_color_of_type(), and FCELL_TYPE.
Configure raster overlay mode.
This routine determines if D_draw_raster() draws in overlay mode (locations with category 0 are left untouched) or not (colored with the color for category 0).
| n | 1 (TRUE) for overlay mode; 0 (FALSE) otherwise |
Definition at line 48 of file raster2.c.
References D__overlay_mode.
| int D__overlay_mode = 0 |
Definition at line 35 of file raster2.c.
Referenced by D_draw_raster_RGB(), D_raster_draw_begin(), and D_set_overlay_mode().