融合视口十字线定位工具更改
parent
ff0d204612
commit
3c10ae73dd
|
|
@ -1711,6 +1711,7 @@ export default {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
lineLengthInPx: this.fusionCrosshairStyle.lineLength,
|
lineLengthInPx: this.fusionCrosshairStyle.lineLength,
|
||||||
},
|
},
|
||||||
|
mipViewportIds: ['viewport-fusion-3'],
|
||||||
})
|
})
|
||||||
|
|
||||||
toolGroup.setToolActive(VolumeRotateTool.toolName, {
|
toolGroup.setToolActive(VolumeRotateTool.toolName, {
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ class FusionJumpToPointTool extends AnnotationDisplayTool {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
lineLengthInPx: 20,
|
lineLengthInPx: 20,
|
||||||
},
|
},
|
||||||
|
mipViewportIds: [],
|
||||||
},
|
},
|
||||||
}) {
|
}) {
|
||||||
super(toolProps, defaultToolProps)
|
super(toolProps, defaultToolProps)
|
||||||
|
|
@ -77,7 +78,10 @@ class FusionJumpToPointTool extends AnnotationDisplayTool {
|
||||||
|
|
||||||
const annotation = this._getViewportCrosshairAnnotation(viewport)
|
const annotation = this._getViewportCrosshairAnnotation(viewport)
|
||||||
const sourceViewportId = this.dragSourceViewportId || annotation?.data?.sourceViewportId || viewport.id
|
const sourceViewportId = this.dragSourceViewportId || annotation?.data?.sourceViewportId || viewport.id
|
||||||
this.setPoint(worldPoint, sourceViewportId, renderingEngine.id)
|
const sourceIsMip = this._isMipViewportId(viewport.id)
|
||||||
|
this.setPoint(worldPoint, sourceViewportId, renderingEngine.id, {
|
||||||
|
jumpToTargetViewports: sourceIsMip,
|
||||||
|
})
|
||||||
evt.preventDefault?.()
|
evt.preventDefault?.()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -497,6 +501,11 @@ class FusionJumpToPointTool extends AnnotationDisplayTool {
|
||||||
return fallbackColor || '#6fb9ff'
|
return fallbackColor || '#6fb9ff'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_isMipViewportId(viewportId) {
|
||||||
|
const mipViewportIds = this.configuration?.mipViewportIds
|
||||||
|
return Array.isArray(mipViewportIds) && mipViewportIds.includes(viewportId)
|
||||||
|
}
|
||||||
|
|
||||||
_normalizeAppearance(appearance = {}, sourceViewportId) {
|
_normalizeAppearance(appearance = {}, sourceViewportId) {
|
||||||
const lineWidth = Number.isFinite(appearance.lineWidth) ? appearance.lineWidth : 2
|
const lineWidth = Number.isFinite(appearance.lineWidth) ? appearance.lineWidth : 2
|
||||||
const lineLength = Number.isFinite(appearance.lineLength) ? appearance.lineLength : 9
|
const lineLength = Number.isFinite(appearance.lineLength) ? appearance.lineLength : 9
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue