cameratoolbar
Control camera toolbar programmatically
Syntax
Description
Display Camera Toolbar
cameratoolbar displays a camera toolbar in the current figure
that enables interactive manipulation of the camera axes and light. If no figure is
available, then MATLAB® calls the figure function to create one. Interacting
with the camera toolbar disables the default set of interactions built into axes in the
figure.
Showing the camera toolbar automatically changes the aspect ratio of the axes in the
figure to avoid distortion as you move the camera around the scene. Hiding the toolbar
does not revert the impacted Axes properties.
Set Camera Toolbar Parameters
cameratoolbar( sets the visibility of
the camera toolbar.state)
cameratoolbar( resets the current
camera, scene light, or target to the state before interactions began.reset)
cameratoolbar("SetCoordSys", sets
the principal axis of camera motion.coordsys)
cameratoolbar( sets
parameters for the camera toolbar in the specified figure. Specify the figure before any
of the input argument combinations in the previous syntaxes.fig,___)
returns
the tb = cameratoolbar(___)Toolbar object.
Get Camera Toolbar Parameters
returns the
visibility of the camera toolbar in the current figure (tf = cameratoolbar("GetVisible")1 if visible,
0 if not visible).
returns the
current camera motion control mode.m = cameratoolbar("GetMode")
returns the
current principal axis of camera motion.p = cameratoolbar("GetCoordSys")
___ = cameratoolbar(
gets parameters for the camera toolbar in the specified figure.fig,___)

