Working with latest cornerstone and cornerstoneTools versions.
This commit is contained in:
parent
1887df2dc5
commit
7bf059ad05
@ -7,7 +7,7 @@ Package.describe({
|
||||
Npm.depends({
|
||||
hammerjs: '2.0.8',
|
||||
'cornerstone-core': '2.2.6',
|
||||
'cornerstone-tools': '3.0.0-b.959',
|
||||
'cornerstone-tools': '3.0.0-b.969',
|
||||
'cornerstone-math': '0.1.6',
|
||||
'dicom-parser': '1.8.0',
|
||||
'cornerstone-wado-image-loader': '2.1.4',
|
||||
|
||||
@ -267,9 +267,7 @@ const loadDisplaySetIntoViewport = (data, templateData) => {
|
||||
cornerstoneTools.playClip(element);
|
||||
}
|
||||
|
||||
// Enabling new eventDispatches form cornerstoneTools v3
|
||||
//cornerstoneTools.addEnabledElement(element); NOTE: This should be done by cTools internally now, no?
|
||||
console.log('====imageViewerViewport, instantiateTools');
|
||||
// InstantiateTools on the new element.
|
||||
toolManager.instantiateTools(element);
|
||||
|
||||
// Use the tool manager to enable the currently active tool for this
|
||||
|
||||
@ -107,20 +107,20 @@ Meteor.startup(function() {
|
||||
|
||||
// Register the tool switching commands
|
||||
registerToolCommands({
|
||||
wwwc: 'W/L',
|
||||
zoom: 'Zoom',
|
||||
angle: 'Angle Measurement',
|
||||
probe: 'Pixel Probe',
|
||||
stackScroll: 'Stack Scroll',
|
||||
ellipticalRoi: 'Elliptical ROI',
|
||||
rectangleRoi: 'Rectangle ROI',
|
||||
magnify: 'Magnify',
|
||||
arrowAnnotate: 'Annotate',
|
||||
Wwwc: 'W/L',
|
||||
Zoom: 'Zoom',
|
||||
Angle: 'Angle Measurement',
|
||||
DragProbe: 'Pixel Probe',
|
||||
StackScroll: 'Stack Scroll',
|
||||
EllipticalRoi: 'Elliptical ROI',
|
||||
RectangleRoi: 'Rectangle ROI',
|
||||
Magnify: 'Magnify',
|
||||
ArrowAnnotate: 'Annotate',
|
||||
stackScrollMouseWheel: 'Scroll Stack Mouse Wheel',
|
||||
pan: 'Pan',
|
||||
length: 'Length Measurement',
|
||||
wwwcRegion: 'W/L by Region',
|
||||
crosshairs: 'Crosshairs'
|
||||
Pan: 'Pan',
|
||||
Length: 'Length Measurement',
|
||||
WwwcRegion: 'W/L by Region',
|
||||
Crosshairs: 'Crosshairs'
|
||||
});
|
||||
|
||||
// Functions to register the viewport commands
|
||||
|
||||
@ -27,12 +27,8 @@ export const toolManager = {
|
||||
toolManager.setDefaultTool(OHIF.viewer.defaultTool);
|
||||
}
|
||||
|
||||
console.log('======INITIALIZING CORNERSTONETOOLS======');
|
||||
|
||||
cornerstoneTools.init();
|
||||
|
||||
console.log('======CORNERSTONETOOLS INITIALIZED======');
|
||||
|
||||
tools = [
|
||||
'Length',
|
||||
'Angle',
|
||||
@ -139,8 +135,6 @@ export const toolManager = {
|
||||
toolManager.init();
|
||||
}
|
||||
|
||||
console.log("toolManager.getActiveTool");
|
||||
|
||||
// If activeTool is not defined, we should set as defaultTool
|
||||
if (!activeTool) {
|
||||
activeTool = defaultTool;
|
||||
|
||||
@ -32,7 +32,7 @@ ohif:measurement-table
|
||||
|
||||
aldeed:template-extension
|
||||
aldeed:simple-schema@1.5.3
|
||||
stylus@2.513.9
|
||||
stylus@=2.513.14
|
||||
clinical:router
|
||||
session@1.1.7
|
||||
cultofcoders:persistent-session
|
||||
|
||||
@ -126,7 +126,7 @@ Template.toolbarSection.helpers({
|
||||
const buttonData = [];
|
||||
|
||||
buttonData.push({
|
||||
id: 'stackScroll',
|
||||
id: 'StackScroll',
|
||||
title: 'Stack Scroll',
|
||||
classes: 'imageViewerTool',
|
||||
iconClasses: 'fa fa-bars'
|
||||
@ -260,9 +260,9 @@ Template.toolbarSection.onRendered(function() {
|
||||
|
||||
instance.$('#layout').dropdown();
|
||||
|
||||
// TODO: Figure out a way to disable/enable the buttons with each status from
|
||||
// TODO: Figure out a way to disable/enable the buttons with each status from
|
||||
// New API
|
||||
|
||||
|
||||
// const states = OHIF.viewerbase.toolManager.getToolDefaultStates();
|
||||
// const disabledToolButtons = states.disabledToolButtons;
|
||||
// const allToolbarButtons = $('#toolbar').find('button');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user