ohif-viewer/extensions/ohif-cornerstone-extension
David Wire c455253c0e fix(ConnectedCornerstoneViewport): Fix definition of function map so it happens less frequently (#740)
`onMeasurementsChanged` currently defines a function map every time it is called. This function map includes a throttle on the `modified` function which is not being used because the function is called at most once per time it is instantiated. These changes elevate the map definition to the file level, since what it is defining does not change based on the other executed code.
2019-07-31 09:46:41 +03:00
..
src fix(ConnectedCornerstoneViewport): Fix definition of function map so it happens less frequently (#740) 2019-07-31 09:46:41 +03:00
.babelrc Re-add extensions as top level dir 2019-04-16 12:00:06 -04:00
.editorconfig Re-add extensions as top level dir 2019-04-16 12:00:06 -04:00
.eslintrc Re-add extensions as top level dir 2019-04-16 12:00:06 -04:00
.gitignore Re-add extensions as top level dir 2019-04-16 12:00:06 -04:00
.prettierrc Some sane prettier defaults 2019-06-20 22:56:26 -04:00
.travis.yml Re-add extensions as top level dir 2019-04-16 12:00:06 -04:00
LICENSE Re-add extensions as top level dir 2019-04-16 12:00:06 -04:00
package.json fix: support for next/previous image hotkeys via cornerstone extension update 2019-07-23 15:39:56 -04:00
README.md Add badge 2019-06-20 23:01:03 -04:00
rollup.config.js Re-add extensions as top level dir 2019-04-16 12:00:06 -04:00
yarn.lock fix(react-cornerstone-viewport): Viewport resizes on stack scroll (#709) 2019-07-23 13:00:02 -04:00

@ohif/extension-cornerstone

npm (scoped)

This extension adds support for viewing and manipulating 2D medical images via a viewport. The underlying implementation wraps the cornerstonejs/react-cornerstone-viewport, and provides basic commands and toolbar buttons for common actions.

Index

Extension Id: cornerstone

Commands Module

This extensions includes the following Commands and Command Definitions. These can be registered with @ohif/core's CommandManager. After registering the commands, they can be bound to hotkeys using the HotkeysManager and listed in the UserPreferences modal.

You can read more about Commands, Hotkeys, and the UserPreferences Modal in their respective locations in the OHIF Viewer's documentation.

Command Name Description Store Contexts
rotateViewportCW viewports
rotateViewportCCW viewports
invertViewport viewports
flipViewportVertical viewports
flipViewportHorizontal viewports
scaleUpViewport viewports
scaleDownViewport viewports
fitViewportToWindow viewports
resetViewport viewports
clearAnnotations TODO
next/previous Image TODO
first/last Image TODO
nextViewportDisplaySet
previousViewportDisplaySet
setToolActive Activates tool for primary button/touch

Toolbar Module

Our toolbar module contains definitions for:

  • StackScroll
  • Zoom
  • Wwwc
  • Pan
  • Length
  • Angle
  • Reset
  • Cine

All use the ACTIVE_VIEWPORT::CORNERSTONE context.

Viewport Module

Our Viewport wraps cornerstonejs/react-cornerstone-viewport and is connected the redux store. This module is the most prone to change as we hammer out our Viewport interface.

Resources

Repositories