addNewPositionCallback
添加新位置调ROI object
addNewPositionCallback
is not recommended. With the new ROIs, use theaddlistener
object function instead. For more information, seeCompatibility Considerations.
Description
adds the function handleid
= addNewPositionCallback(h
,fcn
)fcn
to the list of new-position callback functions of the ROI objecth
. Whenever the ROI object changes its position, each function in the list is called with the syntax:
fcn(pos)
pos
is of the form returned by the object'sgetPosition
method. The return value,id
, is used only withremoveNewPositionCallback
.