poIImagePlane SetAlignmentPoint
Defines an alignment point with a model node and image x,y pixel location.
Syntax
Imageplane_handle SetAlignmentPoint idx mloc imgx imgy
Application
HyperView Tcl Modify
Description
This command edits the alignment point of an image plane.
Inputs
- idx
- The index of the alignment point to be deleted. Index starts at 0.
- mloc
- The node locator string for the model node.
- imgx
- The x pixel location of the image.
- imgy
- The y pixel location of the image.
Example
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetImagePlaneCtrlHandle ipc_handle
set ipid1 [ipc_handle AddImagePlane Logo1]
ipc_handle GetImagePlaneHandle imageplane_handle $ipid1
# Add 3 alignment points
imageplane_handle AddAlignmentPoint
imageplane_handle AddAlignmentPoint
imageplane_handle AddAlignmentPoint
# Define the first alignment point
# Please load an appropriate model and image before assigning a node id and
# image locations
imageplane_handle SetAlignmentPoint 0 “55678” 234 450
hwi CloseStack
Errors
None.