1 #ifndef GRASS_DISPLAYDEFS_H 2 #define GRASS_DISPLAYDEFS_H 44 void D_set_src(
double,
double,
double,
double);
45 void D_get_src(
double *,
double *,
double *,
double *);
48 void D_set_dst(
double,
double,
double,
double);
49 void D_get_dst(
double *,
double *,
double *,
double *);
70 void D_set_clip(
double,
double,
double,
double);
76 void D_get_text_box(
const char *,
double *,
double *,
double *,
double *);
84 void D_line_abs(
double,
double,
double,
double);
85 void D_line_rel(
double,
double,
double,
double);
92 void D_box_abs(
double,
double,
double,
double);
103 void D_plot_icon(
double,
double,
int,
double,
double);
127 void D_setup2(
int,
int,
double,
double,
double,
double);
155 void D_text(
const char *);
157 void D_font(
const char *);
164 void D_get_frame(
double *,
double *,
double *,
double *);
165 void D_get_screen(
double *,
double *,
double *,
double *);
double D_get_u_west(void)
void D_encoding(const char *)
Set encoding.
void D_font_info(char ***, int *)
Get font info.
double D_d_to_a_col(double)
screen to array (x)
void D_text(const char *)
Draw text.
void D_set_clip(double, double, double, double)
set clipping window
double D_get_d_to_a_xconv(void)
double D_get_a_to_u_yconv(void)
double D_d_to_u_row(double)
screen to earth (y)
int D_color_number_to_RGB(int, int *, int *, int *)
get RGB values from color number
double D_get_a_east(void)
double D_get_d_south(void)
void D_close_driver(void)
Close display driver.
void D_clip_to_map(void)
set clipping window to map window
int D_draw_c_raster(int, const CELL *, struct Colors *)
Draw raster row (CELL)
double D_get_d_to_u_xconv(void)
void D_move_rel(double, double)
int D_use_color(int)
draw with a color from D_parse_color
2D/3D raster map header (used also for region)
double D_a_to_d_col(double)
array to screen (column)
void D_polyline_rel(const double *, const double *, int)
void D_get_grid(int *, int *, int *, int *)
double D_u_to_a_col(double)
earth to array (east
void D_set_grid(int, int, int, int)
void D_get_screen(double *, double *, double *, double *)
get screen bounds
void D_line_rel(double, double, double, double)
int D_f_color(FCELL, struct Colors *)
Same functionality as D_color() except that the value is type FCELL. This implies that the floating-p...
void D_pos_rel(double, double)
int D_draw_f_raster(int, const FCELL *, struct Colors *)
Draw raster row (FCELL)
double D_d_to_a_row(double)
screen to array (y)
double D_get_u_south(void)
double D_u_to_a_row(double)
earth to array (north)
const char * D_get_file(void)
Get driver output file.
double D_get_d_east(void)
void D_setup(int)
Graphics frame setup.
void D_get_frame(double *, double *, double *, double *)
get graphical window (frame)
double D_get_u_to_d_yconv(void)
double D_get_a_south(void)
double D_get_a_to_d_yconv(void)
void D_font_list(char ***, int *)
Get font list.
void D_set_clip_window(double, double, double, double)
set graphical clipping window
double D_a_to_u_row(double)
array to earth (row)
int D_draw_raster_RGB(int, const void *, const void *, const void *, struct Colors *, struct Colors *, struct Colors *, RASTER_MAP_TYPE, RASTER_MAP_TYPE, RASTER_MAP_TYPE)
Draw raster row in RGB mode.
void D_update_conversions(void)
void D_set_clip_window_to_screen_window(void)
set clipping window to screen window
void D_cont_rel(double, double)
double D_get_a_north(void)
void D_get_clip_window(double *, double *, double *, double *)
get graphical clipping window
void D_line_width(double)
int D_color(CELL, struct Colors *)
int D_translate_color(const char *)
color name to number
int D_draw_d_raster(int, const DCELL *, struct Colors *)
Draw raster row (DCELL)
void D_setup_unity(int)
Graphics frame setup.
void D_raster_draw_begin(void)
Prepare for raster graphic.
double D_get_u_east(void)
double D_get_d_to_u_yconv(void)
void D_line_abs(double, double, double, double)
double D_get_ew_resolution(void)
double D_get_a_to_u_xconv(void)
void D_raster_draw_end(void)
Finish raster rendering.
double D_get_d_to_a_yconv(void)
void D_font(const char *)
Choose font.
void D_symbol2(const SYMBOL *, double, double, const RGBA_Color *, const RGBA_Color *)
draw a symbol at pixel coordinates (alternate)
void D_cont_abs(double, double)
double D_a_to_d_row(double)
array to screen (row)
int D_parse_color(const char *, int)
color option text to usable color number
int D_d_color(DCELL, struct Colors *)
Same functionality as D_color() except that the value is type DCELL. This implies that the floating-p...
double D_get_d_north(void)
void D_text_size(double, double)
Set text size (width and height)
void D_RGB_color(int, int, int)
double D_get_ns_resolution(void)
void D_get_text_box(const char *, double *, double *, double *, double *)
int D_save_command(const char *)
Append command to the cmd file (unused)
int D_set_overlay_mode(int)
Configure raster overlay mode.
int D_draw_raster(int, const void *, struct Colors *, RASTER_MAP_TYPE)
Draw raster row.
double D_u_to_d_row(double)
earth to screen (north)
void D_erase(const char *)
void D_plot_icon(double, double, int, double, double)
Plot icon.
void D_symbol(const SYMBOL *, double, double, const RGBA_Color *, const RGBA_Color *)
draw a symbol at pixel coordinates
double D_get_d_west(void)
void D_move_abs(double, double)
double D_get_a_west(void)
void D_get_d(double [2][2])
void D_show_conversions(void)
void D_get_dst(double *, double *, double *, double *)
returns frame bounds in destination coordinate system
double D_get_u_north(void)
void D_get_src(double *, double *, double *, double *)
returns frame bounds in source coordinate system
void D__erase(void)
Erase display (internal use only)
double D_get_a_to_d_xconv(void)
void D_polygon_rel(const double *, const double *, int)
void D_pos_abs(double, double)
void D_set_clip_window_to_map_window(void)
set graphical clipping window to map window
int D_color_of_type(const void *, struct Colors *, RASTER_MAP_TYPE)
If the data_type is CELL_TYPE, calls D_color((CELL *value, colors); If the data_type is FCELL_TYPE...
void D_polydots_abs(const double *, const double *, int)
double D_u_to_d_col(double)
earth to screen (east)
void D_set_reduction(double)
double D_a_to_u_col(double)
array to earth (column)
int D_c_color(CELL, struct Colors *)
void D_polygon_abs(const double *, const double *, int)
void D_box_abs(double, double, double, double)
void D_polydots_rel(const double *, const double *, int)
double D_get_u_to_a_xconv(void)
void D_get_u(double [2][2])
void D_polyline_abs(const double *, const double *, int)
void D_set_region(const struct Cell_head *)
double D_get_u_to_d_xconv(void)
void D_setup2(int, int, double, double, double, double)
Sets source coordinate system.
double D_d_to_u_col(double)
screen to earth (x)
double D_get_u_to_a_yconv(void)
void D_set_src(double, double, double, double)
void D_set_clip_mode(int)
int D_open_driver(void)
Open display driver.
void D_do_conversions(const struct Cell_head *, double, double, double, double)
initialize conversions
void D_set_dst(double, double, double, double)
void D_box_rel(double, double)
void D_text_rotation(double)
Set text rotation.