disp_region ( DispRegions : : : )

Displays regions in a window.

disp_region displays the regions in DispRegions in the current output window. The parameters for output can be set with the procedures set_color, set_grey, set_draw, set_line_width, etc. The output window is set with the procedure set_window.

The color(s) for the display of the regions are determined with set_color, set_rgb, set_grey or set_colored. If more than one region is displayed and more than one color is set, the colors are assigned in a cyclic way to the regions.

The form of the region for output can be modified by set_paint (e.g. encompassing circle, convex hull). The command set_draw determines if the region is filled or only the boundary is drawn. If only the boundary is drawn, the thickness of the boundary will be determined by set_line_width and the style by set_line_style.


Parameters

DispRegions (input_object)
region(-array) -> object
regions to display.


Example
/* Output with 12 colors: */
set_colored(::12:) >
disp_region(SomeSegments:::).

/* Symbolic representation: */
set_draw(::'margin':) >
set_color(::'red':) >
set_shape(::'ellipse':) >
disp_region(SomeSegments:::).

/* Representation of a margin with pattern: */
set_draw(::'margin':) >
set_color(::'blue':) >
set_line_style(::[12,3]:) >
disp_region(Segments:::).

Result

disp_region returns TRUE, if a window is activated. Otherwise an exception is raised.


Possible Predecessors

open_window, set_rgb, set_lut, set_hsi, set_window, set_shape, set_line_style, set_insert, set_fix, set_draw, set_color, set_colored, set_line_width


Alternatives

disp_arrow, disp_line, disp_circle, disp_rectangle1, disp_rectangle2, disp_ellipse


See also

open_window, open_textwindow, set_color, set_colored, set_draw, set_shape, set_paint, set_grey, set_rgb, set_hsi, set_pixel, set_line_width, set_line_style, set_insert, set_fix, set_window, paint_region__, dump_pwindow



Copyright © 1996-1997 MVTec Software GmbH