poI3DViewCtrl GetProjectionType

Gets the type of projection used by a stored view.

Syntax

poI3DViewCtrl_handle GetProjectionTypename

Application

HyperView Tcl Query

Description

This command retrieves either Orthographic, Perspective, or Lens. Orthographic and Perspective are the traditional HyperView modes. The Lens type simulates a camera lens.

Inputs

name
If specified, the type of the view with that name will be returned. Otherwise, the current view’s type will be returned.

Example

Get the principal point offset of a view named “View 1”:
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 GetProjectionType “View 1”
hwi CloseStack

Errors

Returns HW_InvalidHandle if the view handle is invalid.

Returns HW_InvalidArgs if the named view does not exist.