poI3DViewCtrl SetViewMatrix

Sets a 4x4 view matrix orientation for the active window.

Syntax

poI3DViewCtrl_handle SetViewMatrixview_matrix

Application

HyperView Tcl Modify

Description

This command updates the view orientation matrix of the current active window with the given sixteen float values.

Inputs

view_matrix
The sixteen float values (a 4x4 matrix of space separated float values) which determine the view of the current active model.

Example

To set 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
viewctrl_handle SetViewMatrix “1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1“
puts "View Matrix: [viewctrl_handle GetViewMatrix]"

hwi CloseStack

Error

Returns an error if the view control handle is invalid.