Tags: blood, flow, gui, image, matlab, ofarterial, patch, plot, programming, rotate, run, simulation, torotate, user

Rotate 3D image in GUI

On Programmer » Matlab

1,546 words with 2 Comments; publish: Wed, 30 Apr 2008 16:58:00 GMT; (20093.75, « »)

I am using a GUI to run a simulation and plot a 3D patch image of

arterial blood flow. However, I would like the user to be able to

rotate the image to view it from all sides, like one can do using the

toolbars when it is plotted in a normal figure window. When it is

plotted in the GUI, these toolbars do not appear and the user cannot

manipulate the image. Hopefully this can be solved simply - any

suggestions? Thanks!!!

All Comments

Leave a comment...

  • 2 Comments
    • Nicole Kleinstreuer wrote:

      >

      > I am using a GUI to run a simulation and plot a 3D patch image of

      > arterial blood flow. However, I would like the user to be able to

      > rotate the image to view it from all sides, like one can do using

      > the

      > toolbars when it is plotted in a normal figure window. When it is

      > plotted in the GUI, these toolbars do not appear and the user

      > cannot

      > manipulate the image. Hopefully this can be solved simply - any

      > suggestions? Thanks!!!

      Are you talking about the standard figure toolbar? If so, you can

      get it to stay on with

      set(gcf, 'ToolBar', 'Figure').

      The default is 'auto', which makes the toolbar go away when controls

      are added. I don't like this behavior, so I put

      set(0, 'DefaultFigureToolBar', 'Figure')

      in my startup.m so that the toolbar stays on in every figure.

      #1; Wed, 30 Apr 2008 16:59:00 GMT
    • Cheers! I was actually wanting the camera toolbar, but the same

      command can be used for that as well. Thanks for your help.

      #2; Wed, 30 Apr 2008 17:00:00 GMT