favSetCameraPosition

AVVIEWER Subroutine: Sets the camera position.

Module: USE AVVIEWER

Syntax

favSetCameraPosition (hv, xpos, ypos, zpos, status)

hv
A handle that references an instance of Array Viewer created by favStartViewer.

xpos
An input argument of type REAL(4). It specifies the X position.

ypos
An input argument of type REAL(4). It specifies the Y position.

zpos
An input argument of type REAL(4). It specifies the Z position.

status
An output argument of type INTEGER(4). It returns a status code for the success of this call. The value 0 indicates success.

Remarks

This subroutine can be used to adjust the virtual camera position for 3D graphs (that is, Height Plot and Vector Graphs with 3 or 4 components). The graph is defined as existing within a volume defined by (0, 0, 0) and (1, 1, 1).

For example, if the camera position is set to (0.5, 0.5, 2.0), and the center of interest (the position which the camera is pointed toward is (0.5, 0.5, 0.0), the viewpoint will appear to be directly over the graph.

See Also

favGetCameraPosition, favSetCameraCoi