Re-add dicom microspy extension
This commit is contained in:
parent
a1bbc4e87a
commit
d1f7431af6
@ -1,19 +1,16 @@
|
||||
import DicomMicroscopySopClassHandler from './DicomMicroscopySopClassHandler.js';
|
||||
import DicomMicroscopyViewport from './DicomMicroscopyViewport.js';
|
||||
|
||||
export default class OHIFDicomMicroscopyExtension {
|
||||
export default {
|
||||
/**
|
||||
* Extension ID is a unique id, might be used for namespacing extension specific redux actions/reducers (?)
|
||||
* Only required property. Should be a unique value across all extensions.
|
||||
*/
|
||||
getExtensionId() {
|
||||
return 'microscopy';
|
||||
}
|
||||
id: 'microscopy',
|
||||
|
||||
getViewportModule() {
|
||||
return DicomMicroscopyViewport;
|
||||
}
|
||||
|
||||
},
|
||||
getSopClassHandlerModule() {
|
||||
return DicomMicroscopySopClassHandler;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -12,7 +12,6 @@ const definitions = [
|
||||
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
||||
commandName: 'enableCrosshairsTool',
|
||||
commandOptions: {}
|
||||
// window.commandsManager.runCommand('enableCrosshairsTool', {}, 'vtk');
|
||||
},
|
||||
{
|
||||
id: 'WWWC',
|
||||
@ -22,7 +21,6 @@ const definitions = [
|
||||
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
||||
commandName: 'enableLevelTool',
|
||||
commandOptions: {}
|
||||
// window.commandsManager.runCommand('enableLevelTool', {}, 'vtk');
|
||||
},
|
||||
{
|
||||
id: 'Rotate',
|
||||
@ -32,7 +30,6 @@ const definitions = [
|
||||
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
||||
commandName: 'enableRotateTool',
|
||||
commandOptions: {}
|
||||
// window.commandsManager.runCommand('enableRotateTool', {}, 'vtk');
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ import { I18nextProvider } from 'react-i18next';
|
||||
// import ConnectedToolContextMenu from './connectedComponents/ConnectedToolContextMenu';
|
||||
import OHIFCornerstoneExtension from '@ohif/extension-cornerstone';
|
||||
// import OHIFDicomHtmlExtension from 'ohif-dicom-html-extension';
|
||||
// import OHIFDicomMicroscopyExtension from '@ohif/extension-dicom-microscopy';
|
||||
import OHIFDicomMicroscopyExtension from '@ohif/extension-dicom-microscopy';
|
||||
import OHIFDicomPDFExtension from '@ohif/extension-dicom-pdf';
|
||||
import OHIFStandaloneViewer from './OHIFStandaloneViewer';
|
||||
import OHIFVTKExtension from '@ohif/extension-vtk';
|
||||
@ -41,9 +41,6 @@ const commandsManager = new CommandsManager(commandsManagerConfig);
|
||||
const hotkeysManager = new HotkeysManager(commandsManager);
|
||||
const extensionManager = new ExtensionManager({ commandsManager });
|
||||
|
||||
// TODO: @dannyrb will fix this
|
||||
window.commandsManager = commandsManager;
|
||||
|
||||
// TODO: Should be done in extensions w/ commandsModule
|
||||
// ~~ ADD COMMANDS
|
||||
appCommands.init(commandsManager);
|
||||
@ -65,7 +62,7 @@ extensionManager.registerExtensions([
|
||||
OHIFVTKExtension,
|
||||
OHIFDicomPDFExtension,
|
||||
// new OHIFDicomHtmlExtension(),
|
||||
// new OHIFDicomMicroscopyExtension(),
|
||||
OHIFDicomMicroscopyExtension,
|
||||
]);
|
||||
|
||||
// TODO[react] Use a provider when the whole tree is React
|
||||
|
||||
@ -61,7 +61,7 @@ const mergeProps = (propsFromState, propsFromDispatch, ownProps) => {
|
||||
icon: 'cube',
|
||||
active: false,
|
||||
onClick: () => {
|
||||
window.commandsManager.runCommand('axial', {}, 'vtk');
|
||||
commandsManager.runCommand('axial');
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -69,7 +69,7 @@ const mergeProps = (propsFromState, propsFromDispatch, ownProps) => {
|
||||
icon: 'cube',
|
||||
active: false,
|
||||
onClick: () => {
|
||||
window.commandsManager.runCommand('sagittal', {}, 'vtk');
|
||||
commandsManager.runCommand('sagittal');
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -77,7 +77,7 @@ const mergeProps = (propsFromState, propsFromDispatch, ownProps) => {
|
||||
icon: 'cube',
|
||||
active: false,
|
||||
onClick: () => {
|
||||
window.commandsManager.runCommand('coronal', {}, 'vtk');
|
||||
commandsManager.runCommand('coronal');
|
||||
},
|
||||
},*/
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user