set_drawing_object_xldT_set_drawing_object_xldSetDrawingObjectXldSetDrawingObjectXldset_drawing_object_xld (算子)

名称

set_drawing_object_xldT_set_drawing_object_xldSetDrawingObjectXldSetDrawingObjectXldset_drawing_object_xld — 设置交互式画 XLD 的轮廓。

签名

set_drawing_object_xld(Contour : : DrawID : )

Herror T_set_drawing_object_xld(const Hobject Contour, const Htuple DrawID)

void SetDrawingObjectXld(const HObject& Contour, const HTuple& DrawID)

void HDrawingObject::SetDrawingObjectXld(const HXLDCont& Contour) const

static void HOperatorSet.SetDrawingObjectXld(HObject contour, HTuple drawID)

void HDrawingObject.SetDrawingObjectXld(HXLDCont contour)

def set_drawing_object_xld(contour: HObject, draw_id: HHandle) -> None

描述

set_drawing_object_xldset_drawing_object_xldSetDrawingObjectXldSetDrawingObjectXldSetDrawingObjectXldset_drawing_object_xld substitutes the XLD currently contained in the draw object by the new ContourContourContourContourcontourcontour. The contour must contain at least two points, so that the interaction as described in create_drawing_object_xldcreate_drawing_object_xldCreateDrawingObjectXldCreateDrawingObjectXldCreateDrawingObjectXldcreate_drawing_object_xld is possible.

In addition, if the drawing object DrawIDDrawIDDrawIDDrawIDdrawIDdraw_id is currently attached to a HALCON window, the window will be redrawn with each call of set_drawing_object_xldset_drawing_object_xldSetDrawingObjectXldSetDrawingObjectXldSetDrawingObjectXldset_drawing_object_xld.

执行信息

参数

ContourContourContourContourcontourcontour (输入对象)  xld_cont objectHXLDContHObjectHXLDContHobject

XLD contour.

DrawIDDrawIDDrawIDDrawIDdrawIDdraw_id (输入控制)  drawing_object HDrawingObject, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

绘图对象的句柄。

结果

set_drawing_object_xldset_drawing_object_xldSetDrawingObjectXldSetDrawingObjectXldSetDrawingObjectXldset_drawing_object_xld returns 2 ( H_MSG_TRUE) , if the DrawIDDrawIDDrawIDDrawIDdrawIDdraw_id is valid and ContourContourContourContourcontourcontour is a contour consisting of at least two points。如有必要,则抛出异常。

可能的前趋

create_drawing_object_xldcreate_drawing_object_xldCreateDrawingObjectXldCreateDrawingObjectXldCreateDrawingObjectXldcreate_drawing_object_xld

可能的后继

attach_drawing_object_to_windowattach_drawing_object_to_windowAttachDrawingObjectToWindowAttachDrawingObjectToWindowAttachDrawingObjectToWindowattach_drawing_object_to_window, clear_drawing_objectclear_drawing_objectClearDrawingObjectClearDrawingObjectClearDrawingObjectclear_drawing_object

替代

create_drawing_object_xldcreate_drawing_object_xldCreateDrawingObjectXldCreateDrawingObjectXldCreateDrawingObjectXldcreate_drawing_object_xld

另见

attach_drawing_object_to_windowattach_drawing_object_to_windowAttachDrawingObjectToWindowAttachDrawingObjectToWindowAttachDrawingObjectToWindowattach_drawing_object_to_window

模块

基础