CMeasurePoints:Attach
The Attach method attaches a CImageView object to the CMeasurePoints object. Usually, the CImageView object is specified when the CMeasurePoints object is created. Use this method to switch the target image window without creating a new CMeasurePoints object. Alternatively, you may need to create the CMeasurePoints object by passing a PointParams table, then attach it to the CImageView at a later itme.
bSuccess = CMeasurePoints:Attach( CImageView_obj ) Where CImageView_obj is a CImageView object connected to an image window. On success, true is returned. |
Suppose two image windows exist and are connected to the script through two CImageView objects, V1 and V2. The following script directs the CMeasurePoints object to work with a new CImageView object.
|
-- create a new CMeasurePoints object attached to V1 |
|
-- do something with the CMeasurePoints object. |
|
-- attach the CMeasurePoints to a different CImageView object |
CMeasurePoints class, new_measurepoints
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.