poI3DViewCtrl SetProjectionType

Sets the type of projection used by a view entity.

Syntax

poI3DViewCtrl_handle SetProjectionType type name

Application

HyperView Tcl Modify

Description

Orthographic and Perspective are the traditional HyperView modes. The Lens type simulates a camera lens. Different modes will apply the view volume/clipping region differently.

Inputs

type
Set the projection type as Orthographic, Perspective, or Lens.
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 projection type of a view named "View 1" to Lens:
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 SetProjectionType “Lens” “View 1”
hwi CloseStack

Error

Returns HW_InvalidHandle if the view handle is invalid.

Returns HW_InvalidArgs if the named view is an invalid type or if it does not exist.