poI3DViewCtrl GetOrientation
Returns the orientation of the model within the view.
Syntax
viewControl_handle GetOrientation
Application
HyperView Tcl Query
Description
Returns the orientation of the model within the view. Six floats are returned describing the translation of the model as Tx, Ty, and Tz, and three Euler angles representing the rotation about the Z, X, and Z axes, respectively.
This command is valid for both the orthographic projection and perspective projection modes.
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
window_handle GetViewControlHandle viewctrl_handle
set orientation [viewctrl_handle GetOrientation]
puts "Orientation: $orientation"
hwi CloseStack
Errors
This command should not return any errors.