GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
display/raster.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/display.h>
Include dependency graph for display/raster.c:

Go to the source code of this file.

Functions

int D_draw_raster (int A_row, const void *array, struct Colors *colors, RASTER_MAP_TYPE data_type)
 
int D_draw_d_raster (int A_row, const DCELL *darray, struct Colors *colors)
 
int D_draw_f_raster (int A_row, const FCELL *farray, struct Colors *colors)
 
int D_draw_c_raster (int A_row, const CELL *carray, struct Colors *colors)
 
int D_draw_cell (int A_row, const CELL *carray, struct Colors *colors)
 render a raster row More...
 
int D_cell_draw_setup (int t, int b, int l, int r)
 prepare for raster graphic More...
 
int D_draw_raster_RGB (int A_row, const void *r_raster, const void *g_raster, const void *b_raster, struct Colors *r_colors, struct Colors *g_colors, struct Colors *b_colors, RASTER_MAP_TYPE r_type, RASTER_MAP_TYPE g_type, RASTER_MAP_TYPE b_type)
 
void D_cell_draw_end (void)
 

Variables

int D__overlay_mode
 

Function Documentation

void D_cell_draw_end ( void  )

Definition at line 202 of file display/raster.c.

References R_end_scaled_raster().

int D_cell_draw_setup ( int  t,
int  b,
int  l,
int  r 
)

prepare for raster graphic

The raster display subsystem establishes conversion parameters based on the screen extent defined by top, bottom, left, and right, all of which are obtainable from D_get_screen_window for the current frame.

Parameters
top
bottom
left
right
Returns
int

Definition at line 132 of file display/raster.c.

References D__overlay_mode, D_do_conversions(), D_get_a(), D_get_d(), G_fatal_error(), G_get_set_window(), and R_begin_scaled_raster().

int D_draw_c_raster ( int  A_row,
const CELL *  carray,
struct Colors *  colors 
)

Definition at line 55 of file display/raster.c.

int D_draw_cell ( int  A_row,
const CELL *  carray,
struct Colors *  colors 
)

render a raster row

The row gives the map array row. The raster array provides the categories for each raster value in that row. This routine is called consecutively with the information necessary to draw a raster image from north to south. No rows can be skipped. All screen pixel rows which represent the current map array row are rendered. The routine returns the map array row which is needed to draw the next screen pixel row.

Parameters
row
raster
colors
Returns
int

Definition at line 77 of file display/raster.c.

int D_draw_d_raster ( int  A_row,
const DCELL *  darray,
struct Colors *  colors 
)

Definition at line 45 of file display/raster.c.

int D_draw_f_raster ( int  A_row,
const FCELL *  farray,
struct Colors *  colors 
)

Definition at line 50 of file display/raster.c.

int D_draw_raster ( int  A_row,
const void *  array,
struct Colors *  colors,
RASTER_MAP_TYPE  data_type 
)

Definition at line 38 of file display/raster.c.

int D_draw_raster_RGB ( int  A_row,
const void *  r_raster,
const void *  g_raster,
const void *  b_raster,
struct Colors *  r_colors,
struct Colors *  g_colors,
struct Colors *  b_colors,
RASTER_MAP_TYPE  r_type,
RASTER_MAP_TYPE  g_type,
RASTER_MAP_TYPE  b_type 
)

Variable Documentation

int D__overlay_mode

Definition at line 35 of file raster2.c.

Referenced by D_cell_draw_setup(), D_draw_raster_RGB(), and D_set_overlay_mode().