2019-05-30 18:28:20 +02:00
|
|
|
# @ohif/extension-vtk
|
2019-06-21 05:10:17 +02:00
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
<!-- TODO: Simple image or GIF? -->
|
|
|
|
|
|
|
|
|
|
#### Index
|
|
|
|
|
|
|
|
|
|
Extension Id: `vtk`
|
|
|
|
|
|
|
|
|
|
- [Commands Module](#commands-module)
|
|
|
|
|
- [Toolbar Module](#toolbar-module)
|
|
|
|
|
- [Viewport Module](#viewport-module)
|
|
|
|
|
|
|
|
|
|
## Commands Module
|
|
|
|
|
|
|
|
|
|
| Command Name | Description | Store Contexts |
|
|
|
|
|
| ---------------------- | ----------- | -------------- |
|
|
|
|
|
| `axial` | | viewports |
|
|
|
|
|
| `coronal` | | viewports |
|
|
|
|
|
| `sagittal` | | viewports |
|
|
|
|
|
| `enableRotateTool` | | viewports |
|
|
|
|
|
| `enableCrosshairsTool` | | viewports |
|
|
|
|
|
| `enableLevelTool` | | viewports |
|
|
|
|
|
| `mpr2d` | | viewports |
|
|
|
|
|
|
|
|
|
|
## Toolbar Module
|
|
|
|
|
|
|
|
|
|
Our toolbar module contains definitions for:
|
|
|
|
|
|
|
|
|
|
- `Crosshairs`
|
|
|
|
|
- `WWWC`
|
|
|
|
|
- `Rotate`
|
|
|
|
|
|
|
|
|
|
All use the `ACTIVE_VIEWPORT::VTK` context.
|
|
|
|
|
|
|
|
|
|
## Viewport Module
|
|
|
|
|
|
|
|
|
|
Our Viewport wraps [OHIF/react-vtkjs-viewport][react-viewport] and is connected
|
|
|
|
|
the redux store. This module is the most prone to change as we hammer out our
|
|
|
|
|
Viewport interface.
|
|
|
|
|
|
|
|
|
|
## Resources
|
|
|
|
|
|
|
|
|
|
### Repositories
|
|
|
|
|
|
|
|
|
|
- [OHIF/react-vtkjs-viewport][react-viewport]
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Links
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
|
[react-viewport]: https://github.com/OHIF/react-vtkjs-viewport
|
|
|
|
|
<!-- prettier-ignore-end -->
|