set_drawing_object_xldT_set_drawing_object_xldSetDrawingObjectXldSetDrawingObjectXldset_drawing_object_xld (算子名称)
名称
set_drawing_object_xldT_set_drawing_object_xldSetDrawingObjectXldSetDrawingObjectXldset_drawing_object_xld — Set the contour of an interactive draw XLD.
参数签名
Herror T_set_drawing_object_xld(const Hobject Contour, const Htuple DrawID)
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 (input_object) xld_cont → objectHXLDContHObjectHXLDContHobject
XLD contour.
DrawIDDrawIDDrawIDDrawIDdrawIDdraw_id (input_control) drawing_object → HDrawingObject, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the drawing object.
结果
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
模块
Foundation