poI3DViewCtrl GetViewMatrix

Gets a 4x4 view matrix orientation of the active window.

Syntax

poI3DViewCtrl_handle GetViewMatrix

Application

HyperView Tcl Query

Description

This command retrieves sixteen float values that represent the current view orientation of the active window.

Example

To get the current view matrix:
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 view_matrix [viewctrl_handle GetViewMatrix]
puts "View Matrix: $view_matrix"

hwi CloseStack

Errors

Returns an error if the view control handle is invalid.