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