pet、mr分割视图重置调窗问题
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2026-05-06 15:01:47 +08:00
parent 391e696d8a
commit 2f92bf6dfb
3 changed files with 16 additions and 15 deletions

View File

@ -41,10 +41,10 @@
<div v-if="series" class="right-bottom-text"> <div v-if="series" class="right-bottom-text">
<div v-show="imageInfo.location">Location: {{ <div v-show="imageInfo.location">Location: {{
`${Number(imageInfo.location).toFixed(digitPlaces)} mm` `${Number(imageInfo.location).toFixed(digitPlaces)} mm`
}}</div> }}</div>
<div v-show="imageInfo.sliceThickness">Slice Thickness: {{ <div v-show="imageInfo.sliceThickness">Slice Thickness: {{
`${Number(imageInfo.sliceThickness).toFixed(digitPlaces)} mm` `${Number(imageInfo.sliceThickness).toFixed(digitPlaces)} mm`
}}</div> }}</div>
<div v-show="imageInfo.wwwc">WW/WL: {{ imageInfo.wwwc }}</div> <div v-show="imageInfo.wwwc">WW/WL: {{ imageInfo.wwwc }}</div>
</div> </div>
<div class="orientation-top"> <div class="orientation-top">
@ -658,13 +658,12 @@ export default {
} }
}) })
viewport.render() viewport.render()
if (this.series.Modality === 'PT') { if (this.series.Modality === 'PT' || this.series.Modality === 'NM') {
setTimeout(() => { setTimeout(() => {
viewport.resetCamera({ resetPan: true, resetZoom: true, resetToCenter: true }) // viewport.resetCamera({ resetPan: true, resetZoom: true, resetToCenter: true })
viewport.resetProperties() // viewport.resetProperties()
viewport.setProperties({ voiRange: { upper: 5, lower: 0 } }) viewport.setProperties({ voiRange: { upper: 5, lower: 0 }, invert: true }, this.volumeId)
viewport.render() viewport.render()
renderingEngine.render()
}, 100) }, 100)
} }
await renderSegmentation(this.series, this.series.TaskInfo, this.viewportId, this.SegmentConfig, this.renderingEngineId, null, this.actionConfiguration, this.segmentationId, this.segmentIndex) await renderSegmentation(this.series, this.series.TaskInfo, this.viewportId, this.SegmentConfig, this.renderingEngineId, null, this.actionConfiguration, this.segmentationId, this.segmentIndex)

View File

@ -3052,7 +3052,6 @@ export default {
if (this.readingTool !== 3) { if (this.readingTool !== 3) {
viewport.resetCamera({ resetPan: true, resetZoom: true, resetToCenter: true, resetRotation: true }) viewport.resetCamera({ resetPan: true, resetZoom: true, resetToCenter: true, resetRotation: true })
} }
viewport.resetProperties()
if (this.isMPR) { if (this.isMPR) {
let volume = cache.getVolume(this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].volumeId) let volume = cache.getVolume(this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].volumeId)
const voi = metaData.get('voiLutModule', volume._imageIds[Math.ceil((volume._imageIds.length - 1) / 2)]) const voi = metaData.get('voiLutModule', volume._imageIds[Math.ceil((volume._imageIds.length - 1) / 2)])
@ -3068,9 +3067,12 @@ export default {
return this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setFullScreen(index) return this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setFullScreen(index)
} }
// viewport.resetProperties()
this.setToolsPassive() this.setToolsPassive()
if (this.readingTool === 3 && this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series.Modality === 'PT') { if (this.readingTool === 3 && this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series.Modality === 'PT') {
viewport.setProperties({ voiRange: { upper: 5, lower: 0 } }) viewport.setProperties({ voiRange: { upper: 5, lower: 0 }, invert: true }, this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].volumeId)
} else {
viewport.resetProperties()
} }
viewport.render() viewport.render()
// renderingEngine.render() // renderingEngine.render()
@ -3405,6 +3407,7 @@ export default {
// //
async toggleFullScreen(e, index) { async toggleFullScreen(e, index) {
if (this.isDelay && (this.readingTool === 3 || this.isMPR)) return false if (this.isDelay && (this.readingTool === 3 || this.isMPR)) return false
if (this.readingTool === 3 && this.isMPR) return false
if (this.readingTool === 3) { if (this.readingTool === 3) {
let res = await this.changeScreenSave() let res = await this.changeScreenSave()
if (!res) return false if (!res) return false

View File

@ -59,10 +59,10 @@
<div v-if="series" class="right-bottom-text"> <div v-if="series" class="right-bottom-text">
<div v-show="imageInfo.location">Location: {{ <div v-show="imageInfo.location">Location: {{
`${Number(imageInfo.location).toFixed(digitPlaces)} mm` `${Number(imageInfo.location).toFixed(digitPlaces)} mm`
}}</div> }}</div>
<div v-show="imageInfo.sliceThickness">Slice Thickness: {{ <div v-show="imageInfo.sliceThickness">Slice Thickness: {{
`${Number(imageInfo.sliceThickness).toFixed(digitPlaces)} mm` `${Number(imageInfo.sliceThickness).toFixed(digitPlaces)} mm`
}}</div> }}</div>
<div v-show="imageInfo.wwwc">WW/WL: {{ imageInfo.wwwc }}</div> <div v-show="imageInfo.wwwc">WW/WL: {{ imageInfo.wwwc }}</div>
</div> </div>
<div class="orientation-top"> <div class="orientation-top">
@ -706,11 +706,10 @@ export default {
viewport.render() viewport.render()
if (this.series.Modality === 'PT' || this.series.Modality === 'NM') { if (this.series.Modality === 'PT' || this.series.Modality === 'NM') {
setTimeout(() => { setTimeout(() => {
viewport.resetCamera({ resetPan: true, resetZoom: true, resetToCenter: true }) // viewport.resetCamera({ resetPan: true, resetZoom: true, resetToCenter: true })
viewport.resetProperties() // viewport.resetProperties()
viewport.setProperties({ voiRange: { upper: 5, lower: 0 } }) viewport.setProperties({ voiRange: { upper: 5, lower: 0 }, invert: true }, this.volumeId)
viewport.render() viewport.render()
renderingEngine.render()
}, 100) }, 100)
} }
await renderSegmentation(this.series, this.series.TaskInfo, this.viewportId, this.SegmentConfig, this.renderingEngineId, data.segment, this.actionConfiguration, this.segmentationId, this.segmentIndex) await renderSegmentation(this.series, this.series.TaskInfo, this.viewportId, this.SegmentConfig, this.renderingEngineId, data.segment, this.actionConfiguration, this.segmentationId, this.segmentIndex)