Working with latest cornerstone and cornerstoneTools versions.

This commit is contained in:
James Petts authored and Evren Ozkan committed 2018-11-09 13:24:48 -05:00
1 parent 05085b452d
commit 6fedea1653
6 files changed
+19 -27

No files matched your search

@@ -277,9 +277,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;