Difference between revisions of "3d mouse"

From Dynamo
Jump to navigation Jump to search
(Created page with "Matlab options for navigating 3d scenes include: * rotation of viewing perspective * dragging the scene (''pan'' action) * zooming in and out. The native system to switch am...")
 
 
Line 24: Line 24:
 
== 3d mouse in <tt>tomoslice</tt> ==
 
== 3d mouse in <tt>tomoslice</tt> ==
  
Inside [[dtmslice]] the controls of the 3d mouse are slightly different, to avoid interference with <tt>dtmslice</tt> controls.
+
Inside [[dtmslice]] the controls of the 3d mouse are slightly different to the default controls, in order to avoid interference with native <tt>dtmslice</tt> controls.
 
* rotation:  keep <tt>[control]</tt> key pressed, main click on the scene and move the mouse.   
 
* rotation:  keep <tt>[control]</tt> key pressed, main click on the scene and move the mouse.   
 
* dragging:  keep <tt>[shift]</tt> key pressed, main click on the scene and move the mouse.   
 
* dragging:  keep <tt>[shift]</tt> key pressed, main click on the scene and move the mouse.   
 
* zooming: scroll mouse wheel while  keeping <tt>[control]</tt> or <tt>[shift]</tt> key pressed.
 
* zooming: scroll mouse wheel while  keeping <tt>[control]</tt> or <tt>[shift]</tt> key pressed.
 
In <tt>dtmslice</tt> the 3d mouse gets activated also when the click is not performed on an empty region of the axis.
 
In <tt>dtmslice</tt> the 3d mouse gets activated also when the click is not performed on an empty region of the axis.

Latest revision as of 08:25, 13 March 2017

Matlab options for navigating 3d scenes include:

  • rotation of viewing perspective
  • dragging the scene (pan action)
  • zooming in and out.

The native system to switch among them is however limited, as they force the user to move the cursor to the toolbar to select a different icon. Dynamo extends the native system, associating the viewing actions to different combinations of keys and mouse actions.

Activating the 3d mouse

The 3d mouse can be activated in any Matlab axis.

mbgraph.cursors.setMouse3d([]);

or

mbgraph.cursors.setMouse3d(haxis);

for a handle haxis. Once the order is launched, the axis will recognize the controls:

  • rotation: main click on the scene and move the mouse.
  • dragging: middle click on the scene and move the mouse keeping mouse button pressed.
  • zooming: scroll mouse wheel.

3d mouse in tomoslice

Inside dtmslice the controls of the 3d mouse are slightly different to the default controls, in order to avoid interference with native dtmslice controls.

  • rotation: keep [control] key pressed, main click on the scene and move the mouse.
  • dragging: keep [shift] key pressed, main click on the scene and move the mouse.
  • zooming: scroll mouse wheel while keeping [control] or [shift] key pressed.

In dtmslice the 3d mouse gets activated also when the click is not performed on an empty region of the axis.