Skip to main content
Version: 3.14 Beta (Latest)

3D viewport orientation menu

In 3.13, the orientation menu of a volume3d viewport showed the Axial, Sagittal, and Coronal items. A click on an item changed the 3D viewport to a 2D MPR viewport.

In 3.14, a volume3d viewport shows a compass in the orientation menu. The compass has these controls:

  • S, I, R, L, A, and P. A click moves the camera to that side of the patient. The distance and the focal point do not change.
  • A spin control. The spin turns the camera about the patient superior axis.

The compass does not change the viewport to a 2D viewport. To get a 2D view, select a different layout, for example MPR. Other viewports keep the Axial, Sagittal, and Coronal menu.

New commands​

The @ohif/extension-cornerstone commands module adds these commands:

  • setViewport3DViewDirection({ viewportId, direction }): direction is 'S', 'I', 'R', 'L', 'A', or 'P'.
  • rotateViewport3DBy({ viewportId, angle }): angle is in degrees.
  • setViewport3DSpin({ viewportId, speed }): each step of speed is 18 degrees per second. 0 stops the spin. A negative value reverses the direction.