HALCON Reference Manual 10.0.2
Table of Contents / Graphics / Parameters ClassesClassesClasses | | | Operators

set_line_styleT_set_line_styleset_line_styleSetLineStyleSetLineStyle (Operator)

Name

set_line_styleT_set_line_styleset_line_styleSetLineStyleSetLineStyle — Define a contour output pattern.

Signature

set_line_style( : : WindowHandle, Style : )

Herror T_set_line_style(const Htuple WindowHandle, const Htuple Style)

Herror set_line_style(const HTuple& WindowHandle, const HTuple& Style)

void HWindow::SetLineStyle(const HTuple& Style) const

void HOperatorSetX.SetLineStyle(
[in] VARIANT WindowHandle, [in] VARIANT Style)

void HWindowX.SetLineStyle([in] VARIANT Style)

static void HOperatorSet.SetLineStyle(HTuple windowHandle, HTuple style)

void HWindow.SetLineStyle(HTuple style)

Description

set_line_styleset_line_styleset_line_styleSetLineStyleSetLineStyle defines the output pattern of region contours. The information is used by operators like disp_regiondisp_regiondisp_regionDispRegionDispRegion, disp_linedisp_linedisp_lineDispLineDispLine, disp_polygondisp_polygondisp_polygonDispPolygonDispPolygon etc. The current value can be queried with get_line_styleget_line_styleget_line_styleGetLineStyleGetLineStyle. StyleStyleStyleStylestyle contains up to five pairs of values. The first value is the length of the visible contour part, the second is the length of the invisible part. The value pairs are used cyclical for contour output.

Attention

set_line_styleset_line_styleset_line_styleSetLineStyleSetLineStyle does an implicit polygon approximation (see set_line_approx(::WindowHandle,3:)set_line_approx(WindowHandle,3)set_line_approx(WindowHandle,3)SetLineApprox(WindowHandle,3)SetLineApprox(WindowHandle,3)). It is only possible to enlarge it with set_line_approxset_line_approxset_line_approxSetLineApproxSetLineApprox.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Window_id.

StyleStyleStyleStylestyle (input_control)  integer-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Contour pattern.

Default value: []

Example (HDevelop)

* stroke line: X-Windows
set_line_style(WindowHandle,[20,7])
* point-stroke line: X-Windows
set_line_style(WindowHandle,[20,7,3,7])
* passing line (standard)
set_line_style(WindowHandle,[])

Example (C)

Htuple LineStyle ;

/* stroke line: X-Windows */
create_tuple(&LineStyle,2) ;
set_i(LineStyle,20,0) ;
set_i(LineStyle,7,1) ;
T_set_line_style(WindowHandle,LineStyle) ;
destroy_tuple(LineStyle) ;

/* point-stroke line: X-Windows */
create_tuple(&LineStyle,4) ;
set_i(LineStyle,20,0) ;
set_i(LineStyle,7,1) ;
set_i(LineStyle,3,2) ;
set_i(LineStyle,7,3) ;
T_set_line_style(WindowHandle,LineStyle) ;
destroy_tuple(LineStyle) ;

/* passing line (standard) */
create_tuple(&LineStyle,0) ;
T_set_line_style(WindowHandle,LineStyle) ;
destroy_tuple(LineStyle) ;

Example (HDevelop)

* stroke line: X-Windows
set_line_style(WindowHandle,[20,7])
* point-stroke line: X-Windows
set_line_style(WindowHandle,[20,7,3,7])
* passing line (standard)
set_line_style(WindowHandle,[])

Example (HDevelop)

* stroke line: X-Windows
set_line_style(WindowHandle,[20,7])
* point-stroke line: X-Windows
set_line_style(WindowHandle,[20,7,3,7])
* passing line (standard)
set_line_style(WindowHandle,[])

Example (HDevelop)

* stroke line: X-Windows
set_line_style(WindowHandle,[20,7])
* point-stroke line: X-Windows
set_line_style(WindowHandle,[20,7,3,7])
* passing line (standard)
set_line_style(WindowHandle,[])

Result

set_line_styleset_line_styleset_line_styleSetLineStyleSetLineStyle returns 2 (H_MSG_TRUE) if the parameter is correct and the window is valid. Otherwise an exception is raised.

Possible Predecessors

get_line_styleget_line_styleget_line_styleGetLineStyleGetLineStyle

Possible Successors

disp_regiondisp_regiondisp_regionDispRegionDispRegion

See also

get_line_styleget_line_styleget_line_styleGetLineStyleGetLineStyle, set_line_approxset_line_approxset_line_approxSetLineApproxSetLineApprox, disp_regiondisp_regiondisp_regionDispRegionDispRegion

Module

Foundation


Table of Contents / Graphics / Parameters ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH