disp_polygon ( : : Row, Column : )

Displays a polyline.

disp_polygon displays a polyline with the row coordinates Row and the column coordinates Column in the current output window. The parameters Row and Column have to be provided as tuples. Straight lines are drawn between the given points. The start and the end of the polyline are not connected

The procedures used to control the display of regions (e.g. set_color, set_grey, set_draw, set_line_width) can also be used with polylines. The output window is set with the procedure set_window.


Attention

The given coordinates must lie within the window.


Parameters

Row (input_control)
polygon.y-array -> integer / real
row index
Default value: '[16,80,80]'
Suggested values: 0, 64, 128, 256, 511
Range of values: 0 <= Row <= 511 (lin)
Minimum increment: 1
Recommended increment: 10

Column (input_control)
polygon.x-array -> integer / real
column index
Default value: '[48,16,80]'
Suggested values: 0, 64, 128, 256, 511
Range of values: 0 <= Column <= 511 (lin)
Minimum increment: 1
Recommended increment: 10


Example
/* display a rectangle */ 

disp_rectangle1_margin1(Row1,Column1,Row2,Column2)
{
  int Row1,Column1,Row2,Column2 ;
  create_tuple(&Row,4) ;
  create_tuple(&Col,4) ;
  
  set_i(Row,Row1,0) ;
  set_i(Col,Column1,0) ;
  
  set_i(Row,Row1,1) ;
  set_i(Col,Column2,1) ;
  
  set_i(Row,Row2,2) ;
  set_i(Col,Column2,2) ;
  
  set_i(Row,Row2,3) ;
  set_i(Col,Column1,3) ;
  
  set_i(Row,Row1,4) ;
  set_i(Col,Column1,4) ;
   
  T_disp_polygon(Row,Col) ;

}
  

Result

disp_polygon returns TRUE, if a window is activated and the parameters are correct. Otherwise an exception is raised.


Possible Predecessors

open_window, set_rgb, set_lut, set_hsi, set_window, set_draw, set_color, set_colored, set_line_width


Alternatives

disp_line, store_polygon, disp_region


See also

open_window, open_textwindow, set_color, set_rgb, set_hsi, set_insert, set_line_width, set_window



Copyright © 1996-1997 MVTec Software GmbH