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 *);
void D_get_dst(double *, double *, double *, double *)
returns frame bounds in destination coordinate system
void D_setup_unity(int)
Graphics frame setup.
int D_parse_color(const char *, int)
color option text to usable color number
void D_line_rel(double, double, double, double)
int D_open_driver(void)
Open display driver.
double D_get_a_south(void)
void D_set_dst(double, double, double, double)
void D_raster_draw_end(void)
Finish raster rendering.
double D_get_d_to_u_yconv(void)
int D_draw_c_raster(int, const CELL *, struct Colors *)
Draw raster row (CELL)
double D_d_to_u_col(double)
screen to earth (x)
double D_u_to_d_row(double)
earth to screen (north)
void D_text_rotation(double)
Set text rotation.
double D_get_d_to_a_xconv(void)
double D_get_a_north(void)
void D_get_grid(int *, int *, int *, int *)
void D_cont_abs(double, double)
void D_cont_rel(double, double)
double D_get_u_to_d_yconv(void)
void D_polydots_abs(const double *, const double *, int)
void D_line_abs(double, double, double, double)
void D_move_rel(double, double)
void D_symbol2(const SYMBOL *, double, double, const RGBA_Color *, const RGBA_Color *)
draw a symbol at pixel coordinates (alternate)
void D_polygon_rel(const double *, const double *, int)
int D_draw_f_raster(int, const FCELL *, struct Colors *)
Draw raster row (FCELL)
void D_set_clip_window_to_screen_window(void)
set clipping window to screen window
void D_set_clip(double, double, double, double)
set clipping window
void D_set_clip_window_to_map_window(void)
set graphical clipping window to map window
int D_c_color(CELL, struct Colors *)
void D_box_rel(double, double)
double D_get_u_south(void)
double D_get_d_south(void)
double D_get_u_to_a_yconv(void)
void D_polyline_abs(const double *, const double *, int)
int D_save_command(const char *)
double D_get_ns_resolution(void)
void D__erase(void)
Erase display (internal use only)
double D_get_a_west(void)
void D_erase(const char *)
double D_a_to_u_col(double)
array to earth (column)
double D_get_d_west(void)
void D_raster_draw_begin(void)
Prepare for raster graphic.
double D_get_a_to_d_xconv(void)
double D_u_to_a_col(double)
earth to array (east
void D_text_size(double, double)
Set text size (width and height)
void D_polydots_rel(const double *, const double *, int)
int D_color_number_to_RGB(int, int *, int *, int *)
get RGB values from color number
void D_set_clip_window(double, double, double, double)
set graphical clipping window
int D_draw_raster(int, const void *, struct Colors *, RASTER_MAP_TYPE)
Draw raster row.
void D_font_info(char ***, int *)
Get font info.
double D_get_ew_resolution(void)
void D_show_conversions(void)
void D_set_clip_mode(int)
double D_u_to_d_col(double)
earth to screen (east)
double D_get_d_north(void)
void D_font_list(char ***, int *)
Get font list.
double D_get_u_east(void)
void D_pos_rel(double, double)
double D_a_to_u_row(double)
array to earth (row)
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...
void D_set_grid(int, int, int, int)
void D_polygon_abs(const double *, const double *, int)
void D_update_conversions(void)
double D_get_a_east(void)
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_font(const char *)
Choose font.
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.
int D_set_overlay_mode(int)
Configure raster overlay mode.
double D_a_to_d_col(double)
array to screen (column)
void D_text(const char *)
Draw text.
double D_get_a_to_u_yconv(void)
double D_d_to_u_row(double)
screen to earth (y)
double D_get_u_to_a_xconv(void)
double D_get_u_north(void)
void D_symbol(const SYMBOL *, double, double, const RGBA_Color *, const RGBA_Color *)
draw a symbol at pixel coordinates
double D_get_u_to_d_xconv(void)
int D_use_color(int)
draw with a color from D_parse_color
double D_get_d_east(void)
void D_pos_abs(double, double)
void D_box_abs(double, double, double, double)
void D_close_driver(void)
Close display driver.
void D_clip_to_map(void)
set clipping window to map window
void D_RGB_color(int, int, int)
double D_get_a_to_u_xconv(void)
double D_get_a_to_d_yconv(void)
int D_translate_color(const char *)
color name to number
void D_do_conversions(const struct Cell_head *, double, double, double, double)
initialize conversions
void D_setup(int)
Graphics frame setup.
void D_polyline_rel(const double *, const double *, int)
double D_u_to_a_row(double)
earth to array (north)
void D_move_abs(double, double)
void D_get_screen(double *, double *, double *, double *)
get screen bounds
void D_setup2(int, int, double, double, double, double)
Sets source coordinate system.
const char * D_get_file(void)
Get driver output file.
int D_draw_d_raster(int, const DCELL *, struct Colors *)
Draw raster row (DCELL)
double D_get_u_west(void)
void D_get_clip_window(double *, double *, double *, double *)
get graphical clipping window
void D_set_region(const struct Cell_head *)
void D_set_src(double, double, double, double)
double D_d_to_a_col(double)
screen to array (x)
void D_get_u(double[2][2])
double D_get_d_to_a_yconv(void)
void D_set_reduction(double)
int D_color(CELL, struct Colors *)
double D_a_to_d_row(double)
array to screen (row)
void D_get_text_box(const char *, double *, double *, double *, double *)
void D_get_d(double[2][2])
void D_plot_icon(double, double, int, double, double)
Plot icon.
double D_d_to_a_row(double)
screen to array (y)
void D_get_src(double *, double *, double *, double *)
returns frame bounds in source coordinate system
void D_get_frame(double *, double *, double *, double *)
get graphical window (frame)
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_encoding(const char *)
Set encoding.
void D_line_width(double)
double D_get_d_to_u_xconv(void)
2D/3D raster map header (used also for region)