WIP
This commit is contained in:
parent
289d3f5703
commit
a8340b9b69
@ -25,7 +25,7 @@ class OHIFCornerstoneViewport extends Component {
|
||||
customProps: PropTypes.object,
|
||||
};
|
||||
|
||||
static id = 'OHIFCornerstoneViewport';
|
||||
static name = 'OHIFCornerstoneViewport';
|
||||
|
||||
static init() {
|
||||
console.log('OHIFCornerstoneViewport init()');
|
||||
|
||||
@ -15,6 +15,8 @@ import measurementServiceMappingsFactory from './utils/measurementServiceMapping
|
||||
export default function init({ servicesManager, configuration }) {
|
||||
const { UIDialogService, MeasurementService } = servicesManager.services;
|
||||
|
||||
debugger;
|
||||
|
||||
const callInputDialog = (data, event, callback) => {
|
||||
if (UIDialogService) {
|
||||
let dialogId = UIDialogService.create({
|
||||
|
||||
@ -26,6 +26,15 @@ export default function mode({ modeConfiguration }) {
|
||||
// named slots
|
||||
leftPanels: ['org.ohif.default.panelModule.seriesList'],
|
||||
rightPanels: ['org.ohif.default.panelModule.measure'],
|
||||
viewports: [
|
||||
{
|
||||
namespace:
|
||||
'org.ohif.cornerstone.viewportModule.OHIFCornerstoneViewport',
|
||||
displaySetsToDisplay: [
|
||||
'org.ohif.default.sopClassHandlerModule.stack',
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
@ -101,6 +101,8 @@ export default class ExtensionManager {
|
||||
module: extensionModule,
|
||||
});
|
||||
|
||||
// TODO -> deal with command modules.
|
||||
|
||||
extensionModule.forEach(element => {
|
||||
this.modulesMap[
|
||||
`${extensionId}.${moduleType}.${element.name}`
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
window.config = {
|
||||
routerBasename: '/',
|
||||
// whiteLabelling: {},
|
||||
extensions: ['org.ohif.default'],
|
||||
extensions: [],
|
||||
modes: [],
|
||||
showStudyList: true,
|
||||
// filterQueryParam: false,
|
||||
|
||||
@ -6,7 +6,7 @@ import {
|
||||
UINotificationService,
|
||||
UIModalService,
|
||||
UIDialogService,
|
||||
// MeasurementService,
|
||||
MeasurementService,
|
||||
// utils,
|
||||
// redux as reduxOHIF,
|
||||
} from '@ohif/core';
|
||||
@ -44,8 +44,11 @@ function appInit(appConfigOrFunc, defaultExtensions) {
|
||||
UINotificationService,
|
||||
UIModalService,
|
||||
UIDialogService,
|
||||
MeasurementService,
|
||||
]);
|
||||
|
||||
debugger;
|
||||
|
||||
/**
|
||||
* Example: [ext1, ext2, ext3]
|
||||
* Example2: [[ext1, config], ext2, [ext3, config]]
|
||||
|
||||
@ -22,11 +22,12 @@ import ReactDOM from 'react-dom';
|
||||
* the defaultExtensions property.
|
||||
*/
|
||||
import OHIFDefaultExtension from '@ohif/extension-default';
|
||||
import OHIFCornerstoneExtension from '@ohif/extension-cornerstone';
|
||||
|
||||
/** Combine our appConfiguration and "baked-in" extensions */
|
||||
const appProps = {
|
||||
config: window ? window.config : {},
|
||||
defaultExtensions: [OHIFDefaultExtension],
|
||||
defaultExtensions: [OHIFDefaultExtension, OHIFCornerstoneExtension],
|
||||
};
|
||||
|
||||
/** Create App */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user