5.0

5.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 5.48 KB File ID: #39558
image thumbnail

Figure Rotator

by Tucker McClure

 

08 Jan 2013

Allows a user to easily navigate around a target point in a 3D figure using a mouse.

| Watch this File

File Information
Description

The FigureRotator is a light and fast tool allowing a user to easily navigate around a target point in a 3D figure using a mouse. The camera will "orbit" a target point, move in and out, and zoom.

While these types of motion are available in MATLAB's built-in Camera Toolbar, the FigureRotator provides a combined interface allowing rotation, movement, and zooming to happen all at once by using the left mouse button for rotation, the scroll wheel for movement in and out, and the right mouse button for zooming, allowing a user to explore a 3D object more quickly. Further, the FigureRotator appears to work more quickly than the Camera Toolbar tools if the figure is also being animated.

Example:

peaks;
f = FigureRotator(gca());

Try 'help FigureRotator' for more examples or see example_figure_rotator.m for an example involving smooth motion during animation.

Acknowledgements

This file inspired Figure Control Widget.

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File  
Everyone's Tags
aa2dcm, camera, orbit, rotate figure, rotation
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
10 Jan 2013 Oliver Woodford

I like that it uses the scroll wheel.
Here's yet another:
http://www.mathworks.co.uk/matlabcentral/fileexchange/38019-figure-control-widget

Contact us