grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

icon.c File Reference

Display Library - Plot icon. More...

#include <stdlib.h>
#include <math.h>
#include <grass/gis.h>
#include <grass/display.h>
#include <grass/glocale.h>
Include dependency graph for icon.c:

Go to the source code of this file.

Functions

static void line (double m[2][3], double x0, double y0, double x1, double y1)
 
void D_plot_icon (double xc, double yc, int type, double angle, double scale)
 Plot icon. More...
 

Detailed Description

Display Library - Plot icon.

(C) 2001-2008, 2012 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
USA-CERL

Definition in file icon.c.

Function Documentation

◆ D_plot_icon()

void D_plot_icon ( double  xc,
double  yc,
int  type,
double  angle,
double  scale 
)

Plot icon.

Supported types:

  • G_ICON_CROSS
  • G_ICON_BOX
  • G_ICON_ARROW
Parameters
xc,ycicon coordinates
typeicon type
anglerotation angle [rad]
scalescale factor

Definition at line 43 of file icon.c.

References _, G_debug(), G_ICON_ARROW, G_ICON_BOX, G_ICON_CROSS, G_warning(), line(), scale(), and type.

◆ line()

static void line ( double  m[2][3],
double  x0,
double  y0,
double  x1,
double  y1 
)
static

Definition at line 20 of file icon.c.

References D_line_abs(), x0, and x1.

Referenced by add_geometry_ogr(), add_line(), cache_feature(), convert_dgl_shortest_path_result(), D_plot_icon(), dangles(), db_read_dbmscap(), dig_add_area(), dig_add_isle(), dig_angle_next_line(), dig_cidx_add_cat(), dig_cidx_add_cat_sorted(), dig_cidx_del_cat(), dig_del_area(), dig_del_isle(), dig_del_line(), dig_find_line_box(), dig_line_add_updated(), dig_line_get_area(), dig_line_set_area(), dig_node_angle_check(), dig_spidx_add_line(), dig_spidx_del_line(), draw_arrow(), draw_line(), draw_line_dir(), draw_line_nodes(), find_shortest_path_coor(), format_error(), G__calloc(), G__malloc(), G__read_Cell_head_array(), G__realloc(), G_chop(), G_read_datum_table(), G_read_ellipsoid_table(), G_squeeze(), GPJ_get_datum_transform_by_name(), I_get_to_eol(), IL_vector_input_data_2d(), is_isle(), M_read_list(), plot_line(), Rast_history_line(), Rast_put_cell_title(), read_datum_table(), read_ellipsoid_table(), read_line(), read_png(), read_polygon_points(), remove_bridges(), select_by_query(), V1_restore_line_nat(), V2__add_line_to_topo_nat(), V2__add_line_to_topo_sfa(), V2__delete_line_from_topo_nat(), V2_delete_line_nat(), V2_delete_line_pg(), V2_delete_line_sfa(), V2_read_line_geos(), V2_read_line_nat(), V2_read_line_pg(), V2_read_line_sfa(), V2_read_next_line_nat(), V2_read_next_line_ogr(), V2_read_next_line_pg(), V2_restore_line_nat(), V2_rewrite_line_nat(), V2_rewrite_line_pg(), V2_rewrite_line_sfa(), V2_write_line_sfa(), Vect__build_downgrade(), Vect__get_area_points_nat(), Vect_build_nat(), Vect_build_partial(), Vect_cidx_find_all(), Vect_delete_line(), Vect_find_line(), Vect_find_line_list(), Vect_get_area_boundaries(), Vect_get_isle_boundaries(), Vect_get_line_areas(), Vect_get_line_box(), Vect_get_line_cat(), Vect_get_line_nodes(), Vect_get_line_offset(), Vect_get_line_type(), Vect_get_node_line(), Vect_get_node_line_angle(), Vect_graph_shortest_path(), Vect_isle_find_area(), Vect_line_alive(), Vect_merge_lines(), Vect_net_build_graph(), Vect_net_get_line_cost(), Vect_net_nearest_nodes(), Vect_net_ttb_build_graph(), Vect_net_ttb_shortest_path(), Vect_overlay_and(), Vect_point_in_area_outer_ring(), Vect_point_in_island(), Vect_read_line(), Vect_read_line_geos(), Vect_read_line_to_wkb(), Vect_remove_small_areas_ext(), Vect_remove_small_areas_nat(), Vect_restore_line(), Vect_rewrite_line(), Vect_select_areas_by_polygon(), Vect_select_lines_by_box(), Vect_select_lines_by_polygon(), Vect_snap_line(), Vect_snap_lines(), Vect_snap_lines_list_kdtree(), Vect_snap_lines_list_rtree(), Vect_topo_check(), Vect_topo_dump(), Vect_write_ascii(), Vedit_add_vertex(), Vedit_bulk_labeling(), Vedit_chtype_lines(), Vedit_connect_lines(), Vedit_copy_lines(), Vedit_delete_area(), Vedit_delete_lines(), Vedit_extend_lines(), Vedit_flip_lines(), Vedit_merge_lines(), Vedit_modify_cats(), Vedit_move_lines(), Vedit_move_vertex(), Vedit_remove_vertex(), Vedit_select_by_query(), Vedit_snap_line(), Vedit_snap_lines(), Vedit_snap_point(), Vedit_split_lines(), and write_png().