poILegend GetBoundingBox
Gets the bounding box of the legend.
Syntax
legend_handle GetBoundingBox
Application
HyperView Tcl Query
Description
This command retrieves the bounding box of contour/vector/tensor legend. This command returns four values: xmin, ymin, xmax, and ymax.
Example
To get the bounding box of the contour
legend:
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 GetModelHandle model_handle [client_handle GetActiveModel]
model_handle GetResultCtrlHandle result_handle
result_handle GetContourCtrlHandle contour_handle
contour_handle GetLegendHandle leg_handle
set bbox [leg_handle GetBoundingBox]
hwi CloseStack
Errors
None.