diff --git a/src/components/Dicom/DicomCanvas.vue b/src/components/Dicom/DicomCanvas.vue index 752aea7f..3f693524 100644 --- a/src/components/Dicom/DicomCanvas.vue +++ b/src/components/Dicom/DicomCanvas.vue @@ -872,192 +872,192 @@ export default { this.setAllToolsPassive() }, onContextmenu(event) { - const colormapsList = cornerstone.colors.getColormapsList() - const colorItems = [] - colorItems.push({ - label: '默认值', - onClick: () => { - this.setColormap() - } - }) - colormapsList.forEach(colormap => { - const item = {} - item.label = colormap.name - item.onClick = () => { - this.setColormap(colormap.id) - } - colorItems.push(item) - }) - this.$contextmenu({ - items: [ - { - label: '移动', - divided: true, - onClick: () => { - this.setToolActive('Pan') - } - }, - { - label: '缩放', - divided: true, - children: [ - { - label: '自由缩放', - onClick: () => { - this.setToolActive('Zoom') - } - }, - { - label: '适应图像', - onClick: () => { - this.fitToWindow() - } - }, - { - label: '适应窗口', - onClick: () => { - this.fitToImage() - } - } - ] - }, - { - label: '透镜', - divided: true, - onClick: () => { - this.setToolActive('Magnify') - } - }, - { - label: '旋转', - divided: true, - children: [ - { - label: '默认值', - onClick: () => { - this.resetRotate() - } - }, - { - label: '自由旋转', - onClick: () => { - this.setToolActive('Rotate') - } - }, - { - label: '水平翻转', - onClick: () => { - this.setRotate(true, false, 0) - } - }, - { - label: '垂直翻转', - onClick: () => { - this.setRotate(false, true, 0) - } - }, - { - label: '左转90度', - onClick: () => { - this.setRotate(false, false, -90) - } - }, - { - label: '右转90度', - onClick: () => { - this.setRotate(false, false, 90) - } - } - ] - }, + // const colormapsList = cornerstone.colors.getColormapsList() + // const colorItems = [] + // colorItems.push({ + // label: '默认值', + // onClick: () => { + // this.setColormap() + // } + // }) + // colormapsList.forEach(colormap => { + // const item = {} + // item.label = colormap.name + // item.onClick = () => { + // this.setColormap(colormap.id) + // } + // colorItems.push(item) + // }) + // this.$contextmenu({ + // items: [ + // { + // label: '移动', + // divided: true, + // onClick: () => { + // this.setToolActive('Pan') + // } + // }, + // { + // label: '缩放', + // divided: true, + // children: [ + // { + // label: '自由缩放', + // onClick: () => { + // this.setToolActive('Zoom') + // } + // }, + // { + // label: '适应图像', + // onClick: () => { + // this.fitToWindow() + // } + // }, + // { + // label: '适应窗口', + // onClick: () => { + // this.fitToImage() + // } + // } + // ] + // }, + // { + // label: '透镜', + // divided: true, + // onClick: () => { + // this.setToolActive('Magnify') + // } + // }, + // { + // label: '旋转', + // divided: true, + // children: [ + // { + // label: '默认值', + // onClick: () => { + // this.resetRotate() + // } + // }, + // { + // label: '自由旋转', + // onClick: () => { + // this.setToolActive('Rotate') + // } + // }, + // { + // label: '水平翻转', + // onClick: () => { + // this.setRotate(true, false, 0) + // } + // }, + // { + // label: '垂直翻转', + // onClick: () => { + // this.setRotate(false, true, 0) + // } + // }, + // { + // label: '左转90度', + // onClick: () => { + // this.setRotate(false, false, -90) + // } + // }, + // { + // label: '右转90度', + // onClick: () => { + // this.setRotate(false, false, 90) + // } + // } + // ] + // }, - { - label: '测量', - divided: true, - minWidth: 0, - children: [ - { - label: '探针', - onClick: () => { - this.setToolActive('Probe') - } - }, - { - label: '长度测量', - onClick: () => { - this.setToolActive('Length') - } - }, - { - label: '角度测量', - onClick: () => { - this.setToolActive('Angle') - } - }, - { - label: 'Cobb测量', - onClick: () => { - this.setToolActive('CobbAngle') - } - }, - { - label: '椭圆测量', - onClick: () => { - this.setToolActive('EllipticalRoi') - } - }, - { - label: '矩形测量', - onClick: () => { - this.setToolActive('RectangleRoi') - } - }, - { - label: '多边形标记', - onClick: () => { - this.setToolActive('FreehandRoi') - } - }, - { - label: '十字线', - onClick: () => { - this.setToolActive('Bidirectional') - } - }, - { - label: '文字标注', - onClick: () => { - this.setToolActive('ArrowAnnotate') - } - } - ] - }, - { - label: '调窗', - divided: true, - onClick: () => { - this.setToolActive('Wwwc') - } - }, - { - label: '反色', - divided: true, - onClick: () => { - this.toggleInvert() - } - }, - { - label: '伪彩', - children: colorItems - } - ], - event, - // x: event.clientX, - // y: event.clientY, - customClass: 'class-a', - zIndex: 3, - minWidth: 100 - }) + // { + // label: '测量', + // divided: true, + // minWidth: 0, + // children: [ + // { + // label: '探针', + // onClick: () => { + // this.setToolActive('Probe') + // } + // }, + // { + // label: '长度测量', + // onClick: () => { + // this.setToolActive('Length') + // } + // }, + // { + // label: '角度测量', + // onClick: () => { + // this.setToolActive('Angle') + // } + // }, + // { + // label: 'Cobb测量', + // onClick: () => { + // this.setToolActive('CobbAngle') + // } + // }, + // { + // label: '椭圆测量', + // onClick: () => { + // this.setToolActive('EllipticalRoi') + // } + // }, + // { + // label: '矩形测量', + // onClick: () => { + // this.setToolActive('RectangleRoi') + // } + // }, + // { + // label: '多边形标记', + // onClick: () => { + // this.setToolActive('FreehandRoi') + // } + // }, + // { + // label: '十字线', + // onClick: () => { + // this.setToolActive('Bidirectional') + // } + // }, + // { + // label: '文字标注', + // onClick: () => { + // this.setToolActive('ArrowAnnotate') + // } + // } + // ] + // }, + // { + // label: '调窗', + // divided: true, + // onClick: () => { + // this.setToolActive('Wwwc') + // } + // }, + // { + // label: '反色', + // divided: true, + // onClick: () => { + // this.toggleInvert() + // } + // }, + // { + // label: '伪彩', + // children: colorItems + // } + // ], + // event, + // // x: event.clientX, + // // y: event.clientY, + // customClass: 'class-a', + // zIndex: 3, + // minWidth: 100 + // }) return false }, getToolSate() {