imat_vtkplot/view (+FEA)


Purpose

Set the model view.

Syntax

hplot.view(v)
hplot(azel)
hplot(v,azel)

Description

This method changes the view of the model. The view is specified by V, which can be 'xy', 'xy-', 'yz', 'yz-', 'xz', 'xz-', 'iso', or a 1x2 numeric vector containing [AZ EL], the azimuth and elevation. Setting V to 'reset' will reset the zoom so that the model fits in the panel.

You may also pass in the view string V followed by the [AZ EL] vector in AZEL. In this case the azimuth and elevation will be based on the initial orientation specified in V. If the initial orientation is not supplied, the default is 'xz'.

Other valid inputs for the view option specify whether the view is a parallel or perspective projection. This can be controlled by passing in 'parallel' or 'perspective', respectively.