get_line_approxT_get_line_approxGetLineApproxGetLineApproxget_line_approx (算子)

名称

get_line_approxT_get_line_approxGetLineApproxGetLineApproxget_line_approx — 获取轮廓显示的当前近似误差。

警告

get_line_approxget_line_approxGetLineApproxGetLineApproxGetLineApproxget_line_approx 已过时,仅出于向后兼容性考虑而保留。

签名

get_line_approx( : : WindowHandle : Approximation)

Herror T_get_line_approx(const Htuple WindowHandle, Htuple* Approximation)

void GetLineApprox(const HTuple& WindowHandle, HTuple* Approximation)

Hlong HWindow::GetLineApprox() const

static void HOperatorSet.GetLineApprox(HTuple windowHandle, out HTuple approximation)

int HWindow.GetLineApprox()

def get_line_approx(window_handle: HHandle) -> int

描述

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

执行信息

参数

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

ApproximationApproximationApproximationApproximationapproximationapproximation (输出控制)  string HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Current approximation error for contour display.

结果

get_line_approxget_line_approxGetLineApproxGetLineApproxGetLineApproxget_line_approx returns 2 ( H_MSG_TRUE) if the window is valid.否则将抛出异常。

可能的后继

set_line_approxset_line_approxSetLineApproxSetLineApproxSetLineApproxset_line_approx, set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

另见

get_region_polygonget_region_polygonGetRegionPolygonGetRegionPolygonGetRegionPolygonget_region_polygon, set_line_approxset_line_approxSetLineApproxSetLineApproxSetLineApproxset_line_approx, set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

模块

基础