Skip to content

get_line_approxGetLineApproxGetLineApproxget_line_approxT_get_line_approx🔗

Short description🔗

get_line_approxGetLineApproxGetLineApproxget_line_approxT_get_line_approx — Get the current approximation error for contour display.

Warning🔗

get_line_approxGetLineApprox is obsolete and is only provided for reasons of backward compatibility.

Signature🔗

get_line_approx( window WindowHandle, out string Approximation )void GetLineApprox( const HTuple& WindowHandle, HTuple* Approximation )static void HOperatorSet.GetLineApprox( HTuple windowHandle, out HTuple approximation )def get_line_approx( window_handle: HHandle ) -> int

Herror T_get_line_approx( const Htuple WindowHandle, Htuple* Approximation )

Hlong HWindow::GetLineApprox( ) const

int HWindow.GetLineApprox( )

Description🔗

get_line_approxGetLineApprox returns a parameter that controls the approximation error for region contour display in the window. It is used by the operator disp_regionDispRegion. Approximationapproximationapproximation controls the polygon approximation for contour display (0 <=> no approximation). Approximationapproximationapproximation is only important for displaying the contour of objects, especially if a line style was set with set_line_styleSetLineStyle.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

Approximationapproximationapproximation (output_control) string → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Current approximation error for contour display.

Result🔗

get_line_approxGetLineApprox returns 2 (H_MSG_TRUE) if the window is valid. Otherwise an exception is raised.

Combinations with other operators🔗

Combinations

Possible successors

set_line_approxSetLineApprox, set_line_styleSetLineStyle, disp_regionDispRegion

See also

get_region_polygonGetRegionPolygon, set_line_approxSetLineApprox, set_line_styleSetLineStyle, disp_regionDispRegion

Module🔗

Foundation