set_drawing_object_params( : :DrawID,ParamNames,ParamValues: ) Description Depending on the type of the drawing object the following parameters can be set for the different types of drawing object: circle: 'row': Row coordinate of the center of the circle. ...
set_drawing_object_params— Set the parameters of a drawing object.Signatureset_drawing_object_params( : : DrawID, GenParamName, GenParamValue : ) Descriptionset_drawing_object_params is used to set the parameters GenParamName of the drawing object DrawID to the values specified in GenParam...
GetDrawingObjectParams(selected_drawing_object,(HTuple("row1").Append("column1")),&position); switch (iType) { case 1: { SetDrawingObjectParams(selected_drawing_object,"color","green"); QMessageBox::about(this, "tip", pEven->text()); break; } case 2: { SetDrawingObjectParams(selecte...
create_drawing_object_rectangle2 create_drawing_object_text create_drawing_object_xld attach_drawing_object_to_window detach_drawing_object_from_window get_drawing_object_iconic set_drawing_object_params get_drawing_object_params set_drawing_object_xld clear_drawing_object set_content_update_callback s...
绘图对象将不再显示在窗口中。然而,除非调用clear_drawing_object,不然绘图对象仍然存在。 如果通过set_drawing_object_callback传递 'on_detach' ,调用回调函数绘制对象,也要进行清除工作 148. clear_drawing_object( : : DrawID : ) 删除绘制对象 149. get_drawing_object_params( : : DrawID, ParamNames :...
hDrawingObject.SetDrawingObjectParams("color", "green");} 复制代码 为什么单击ROI进行拖拽时不会调用...
create_drawing_object_xxx To change the display style, e.g., color or line width, in which the drawing object is displayed, you could use: set_drawing_object_params Then you need to attach the drawing object to a specific HALCON window, so that the drawing object will be displayed and ...
; param=drawingObject.GetDrawingObjectParams(paramName); //保存参数 rectangle2.SetValue(param.ToDArr()); paramName.Dispose(); param.Dispose(); //清除绘图内容 drawingObject.ClearDrawingObject(); } 上面的paramName可以取以下值,里面包含了Line、Rectangle2类属性名:...
param=drawingObject.GetDrawingObjectParams(paramName); //保存参数 rectangle2.SetValue(param.ToDArr()); paramName.Dispose(); param.Dispose(); //清除绘图内容 drawingObject.ClearDrawingObject(); } 上面的paramName可以取以下值,里面包含了Line、Rectangle2类属性名: ...
set_drawing_object_params()23版 应该可以 我现在用的20版没有marker_size这个key 'marker_size':...