fix: Remove Eraser and ROI Window
This commit is contained in:
parent
06075ecb51
commit
6c950a9669
@ -81,7 +81,6 @@ export default function init({ servicesManager, configuration }) {
|
|||||||
touch: [csTools.PanMultiTouchTool, csTools.ZoomTouchPinchTool],
|
touch: [csTools.PanMultiTouchTool, csTools.ZoomTouchPinchTool],
|
||||||
annotations: [
|
annotations: [
|
||||||
csTools.ArrowAnnotateTool,
|
csTools.ArrowAnnotateTool,
|
||||||
csTools.EraserTool,
|
|
||||||
csTools.BidirectionalTool,
|
csTools.BidirectionalTool,
|
||||||
csTools.LengthTool,
|
csTools.LengthTool,
|
||||||
csTools.AngleTool,
|
csTools.AngleTool,
|
||||||
@ -95,7 +94,6 @@ export default function init({ servicesManager, configuration }) {
|
|||||||
csTools.PanTool,
|
csTools.PanTool,
|
||||||
csTools.ZoomTool,
|
csTools.ZoomTool,
|
||||||
csTools.WwwcTool,
|
csTools.WwwcTool,
|
||||||
csTools.WwwcRegionTool,
|
|
||||||
csTools.MagnifyTool,
|
csTools.MagnifyTool,
|
||||||
csTools.StackScrollTool,
|
csTools.StackScrollTool,
|
||||||
csTools.StackScrollMouseWheelTool,
|
csTools.StackScrollMouseWheelTool,
|
||||||
@ -189,7 +187,9 @@ export default function init({ servicesManager, configuration }) {
|
|||||||
|
|
||||||
const _initMeasurementService = measurementService => {
|
const _initMeasurementService = measurementService => {
|
||||||
/* Initialization */
|
/* Initialization */
|
||||||
const { toAnnotation, toMeasurement } = measurementServiceMappingsFactory(measurementService);
|
const { toAnnotation, toMeasurement } = measurementServiceMappingsFactory(
|
||||||
|
measurementService
|
||||||
|
);
|
||||||
const csToolsVer4MeasurementSource = measurementService.createSource(
|
const csToolsVer4MeasurementSource = measurementService.createSource(
|
||||||
'CornerstoneTools',
|
'CornerstoneTools',
|
||||||
'4'
|
'4'
|
||||||
@ -214,7 +214,9 @@ const _initMeasurementService = measurementService => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const _connectToolsToMeasurementService = measurementService => {
|
const _connectToolsToMeasurementService = measurementService => {
|
||||||
const csToolsVer4MeasurementSource = _initMeasurementService(measurementService);
|
const csToolsVer4MeasurementSource = _initMeasurementService(
|
||||||
|
measurementService
|
||||||
|
);
|
||||||
const {
|
const {
|
||||||
id: sourceId,
|
id: sourceId,
|
||||||
addOrUpdate,
|
addOrUpdate,
|
||||||
@ -242,7 +244,8 @@ const _connectToolsToMeasurementService = measurementService => {
|
|||||||
);
|
);
|
||||||
console.log('Mapped annotation:', annotation);
|
console.log('Mapped annotation:', annotation);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
measurementService.subscribe(
|
measurementService.subscribe(
|
||||||
MEASUREMENT_UPDATED,
|
MEASUREMENT_UPDATED,
|
||||||
|
|||||||
@ -130,15 +130,6 @@ const definitions = [
|
|||||||
commandName: 'setToolActive',
|
commandName: 'setToolActive',
|
||||||
commandOptions: { toolName: 'Magnify' },
|
commandOptions: { toolName: 'Magnify' },
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'WwwcRegion',
|
|
||||||
label: 'ROI Window',
|
|
||||||
icon: 'stop',
|
|
||||||
//
|
|
||||||
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
|
||||||
commandName: 'setToolActive',
|
|
||||||
commandOptions: { toolName: 'WwwcRegion' },
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: 'DragProbe',
|
id: 'DragProbe',
|
||||||
label: 'Probe',
|
label: 'Probe',
|
||||||
@ -215,15 +206,6 @@ const definitions = [
|
|||||||
commandName: 'setToolActive',
|
commandName: 'setToolActive',
|
||||||
commandOptions: { toolName: 'Bidirectional' },
|
commandOptions: { toolName: 'Bidirectional' },
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'Eraser',
|
|
||||||
label: 'Eraser',
|
|
||||||
icon: 'eraser',
|
|
||||||
//
|
|
||||||
type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE,
|
|
||||||
commandName: 'setToolActive',
|
|
||||||
commandOptions: { toolName: 'Eraser' },
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: 'Download',
|
id: 'Download',
|
||||||
label: 'Download',
|
label: 'Download',
|
||||||
@ -245,7 +227,7 @@ const definitions = [
|
|||||||
type: TOOLBAR_BUTTON_TYPES.COMMAND,
|
type: TOOLBAR_BUTTON_TYPES.COMMAND,
|
||||||
commandName: 'setCornerstoneLayout',
|
commandName: 'setCornerstoneLayout',
|
||||||
context: 'ACTIVE_VIEWPORT::VTK',
|
context: 'ACTIVE_VIEWPORT::VTK',
|
||||||
}
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@ -30,7 +30,6 @@ import edit from './icons/edit.svg';
|
|||||||
import ellipseCircle from './icons/ellipse-circle.svg';
|
import ellipseCircle from './icons/ellipse-circle.svg';
|
||||||
import ellipseH from './icons/ellipse-h.svg';
|
import ellipseH from './icons/ellipse-h.svg';
|
||||||
import ellipseV from './icons/ellipse-v.svg';
|
import ellipseV from './icons/ellipse-v.svg';
|
||||||
import eraser from './icons/eraser.svg';
|
|
||||||
import exclamationCircle from './icons/exclamation-circle.svg';
|
import exclamationCircle from './icons/exclamation-circle.svg';
|
||||||
import exclamationTriangle from './icons/exclamation-triangle.svg';
|
import exclamationTriangle from './icons/exclamation-triangle.svg';
|
||||||
import fastBackward from './icons/fast-backward.svg';
|
import fastBackward from './icons/fast-backward.svg';
|
||||||
@ -73,7 +72,6 @@ import squareO from './icons/square-o.svg';
|
|||||||
import star from './icons/star.svg';
|
import star from './icons/star.svg';
|
||||||
import stepBackward from './icons/step-backward.svg';
|
import stepBackward from './icons/step-backward.svg';
|
||||||
import stepForward from './icons/step-forward.svg';
|
import stepForward from './icons/step-forward.svg';
|
||||||
import stop from './icons/stop.svg';
|
|
||||||
import sun from './icons/sun.svg';
|
import sun from './icons/sun.svg';
|
||||||
import th from './icons/th.svg';
|
import th from './icons/th.svg';
|
||||||
import thLarge from './icons/th-large.svg';
|
import thLarge from './icons/th-large.svg';
|
||||||
@ -114,7 +112,6 @@ const ICONS = {
|
|||||||
'create-comment': createComment,
|
'create-comment': createComment,
|
||||||
'create-screen-capture': createScreenCapture,
|
'create-screen-capture': createScreenCapture,
|
||||||
edit,
|
edit,
|
||||||
eraser,
|
|
||||||
'fast-backward': fastBackward,
|
'fast-backward': fastBackward,
|
||||||
'fast-forward': fastForward,
|
'fast-forward': fastForward,
|
||||||
'object-group': objectGroup,
|
'object-group': objectGroup,
|
||||||
@ -134,7 +131,6 @@ const ICONS = {
|
|||||||
'lock-alt': lockAlt,
|
'lock-alt': lockAlt,
|
||||||
'step-backward': stepBackward,
|
'step-backward': stepBackward,
|
||||||
'step-forward': stepForward,
|
'step-forward': stepForward,
|
||||||
stop,
|
|
||||||
'th-large': thLarge,
|
'th-large': thLarge,
|
||||||
'th-list': thList,
|
'th-list': thList,
|
||||||
sun,
|
sun,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user