poIImagePlane GetInvalidAlignmentPointList

Gets a subset of the input point list which includes all points that do not belong to the active model.

Syntax

Imageplane_handle GetInvalidAlignmentPointListpointList

Application

HyperView Tcl Query

Description

This command scans the input pointList, finds points that do not belong to the current active model, and returns them in a list.

Inputs

pointList
A string containing corresponding model and image points that would be used for an alignment.
The string is in the following format: # of points, model node locator strings, x y image points. This is the same format that is returned from GetAlignmentData when the alignment mode is set to IP_MULT_POINT.

Example

To get an invalid alignment point list from a 2D image plane:
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
ipc_handle GetImagePlaneHandle image_plane_handle 1 
image_plane_handle SetFileName “some file”
set err [image_plane_handle GetInvalidAlignmentPointList "9  1 420608 @ 1 225 1 608  2 420840 @ 1 225 1 840  1 420314 @ 1 225 1 314  2 409148 @ 1 160 1 1148  1 438182 @ 1 159 1 182  1 391833 @ 1 183 1 4833  2 429052 @ 1 134 1 52  1 349822 @ 1 186 1 2822  1 409119 @ 1 160 1 1119 186 164 55 215 315 255 476 266 558 380 637 344 339 380 578 297 475 170 "]
hwi CloseStack

Errors

Returns HW_InvalidArgs if the input is in the wrong format.

Returns HW_Error if the active model is invalid.