adds mouse callbacks to swplot figure
Syntax
swplot.mouse
swplot.mouse(hFigure, perspective)
Description
swplot.mouse adds rotation and zoom functionality to the active swplot
figure. The following mouse actions are supported:
mouse-dragRotation of objects.ctrl+mouse-dragShift of objects (pan).mouse-wheelZoom of objects.ctrl+mouse-wheelChange perspective and switch to perspective projection.
Input Arguments
hFigure- Handle of the swplot figure. Default is the active figure.
perspective- String determines whether camera projection mode is changed
automatically between orthographic (zooming withouth ctrl
key pressed) and perspective (zooming with ctrl key
pressed):
'auto'Automatic switching (default).'fix'No switching.