poI3DViewCtrl SetSensorHeight

Sets the sensor height of a stored view.

Syntax

poI3DViewCtrl_handle SetSensorHeight height name

Application

HyperView Tcl Modify

Description

This command sets the sensor height of a stored view. This value simulates the sensor height of a camera lens.

Inputs

height
Value in mm of simulated lens sensor height. This value must be greater than 0.
name
String specifying the name of the view to be modified. If a name is not specified, the current view will be modified.

Example

To set the sensor height of a view named "View 1" to 15.6:
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 GetViewControlHandle view_handle
view_handle SetSensorHeight 15.6 "View 1"
hwi CloseStack

Error

Returns HW_InvalidHandle if the view handle is invalid.

Returns HW_InvalidArgs if the named view does not exist or if the height is less than or equal to 0.