suv融合部分问题修复
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2025-05-12 13:13:36 +08:00
parent 71f3519769
commit 7006cf849e
2 changed files with 32 additions and 2 deletions

View File

@ -244,7 +244,7 @@ export default {
this.imageInfo.size = `${imagePlaneModule.columns}*${imagePlaneModule.rows}` this.imageInfo.size = `${imagePlaneModule.columns}*${imagePlaneModule.rows}`
this.imageInfo.location = imagePlaneModule.sliceLocation this.imageInfo.location = imagePlaneModule.sliceLocation
this.getOrientationMarker() this.getOrientationMarker()
// this.$emit('renderAnnotations', this.series) this.$emit('renderAnnotations', this.series)
let properties = viewport.getProperties() let properties = viewport.getProperties()
if (this.isFusion) { if (this.isFusion) {
properties = viewport.getProperties(this.ptVolumeId) properties = viewport.getProperties(this.ptVolumeId)
@ -264,6 +264,16 @@ export default {
} }
}, },
setFullScreen(index) {
setTimeout(() => {
const renderingEngine = getRenderingEngine(this.renderingEngineId)
const viewport = renderingEngine.getViewport(
this.viewportId
)
csUtils.jumpToSlice(viewport.element, { imageIndex: index })
viewport.render()
})
},
voiModified(e) { voiModified(e) {
const renderingEngine = getRenderingEngine(this.renderingEngineId) const renderingEngine = getRenderingEngine(this.renderingEngineId)
const viewport = renderingEngine.getViewport(this.viewportId) const viewport = renderingEngine.getViewport(this.viewportId)
@ -278,6 +288,7 @@ export default {
upper upper
) )
this.imageInfo.wwwc = `${Math.round(windowWidth)}/${Math.round(windowCenter)}` this.imageInfo.wwwc = `${Math.round(windowWidth)}/${Math.round(windowCenter)}`
this.$emit('upperRangeChange', Math.round(windowWidth))
} }
}, },
getOrientationMarker() { getOrientationMarker() {
@ -386,7 +397,14 @@ export default {
resize(forceFitToWindow) { resize(forceFitToWindow) {
console.log('resize: ', forceFitToWindow) console.log('resize: ', forceFitToWindow)
const renderingEngine = getRenderingEngine(this.renderingEngineId) const renderingEngine = getRenderingEngine(this.renderingEngineId)
renderingEngine.resize(true, forceFitToWindow) const viewport = renderingEngine.getViewport(this.viewportId)
if (!forceFitToWindow) {
viewport.setZoom(0.5)
viewport.render()
} else {
viewport.setZoom(1)
viewport.render()
}
}, },
voiChange(v) { voiChange(v) {
const renderingEngine = getRenderingEngine(this.renderingEngineId) const renderingEngine = getRenderingEngine(this.renderingEngineId)

View File

@ -381,6 +381,7 @@
@toggleTaskByViewport="toggleTaskByViewport" @toggleTaskByViewport="toggleTaskByViewport"
@previewCD="previewCD" @previewCD="previewCD"
@renderAnnotations="renderAnnotations" @renderAnnotations="renderAnnotations"
@upperRangeChange="upperRangeChange"
/> />
</div> </div>
</div> </div>
@ -2162,6 +2163,13 @@ export default {
toggleFullScreen(e, index) { toggleFullScreen(e, index) {
this.fullScreenIndex = this.fullScreenIndex === index ? null : index this.fullScreenIndex = this.fullScreenIndex === index ? null : index
this.activeViewportIndex = index this.activeViewportIndex = index
if ( this.isFusion ) {
let viewportIds = [`${this.viewportKey}-0`, `${this.viewportKey}-1`, `${this.viewportKey}-2`]
viewportIds.forEach(id=>{
let index = this.$refs[id][0].series.SliceIndex
this.$refs[id][0].setFullScreen(index)
})
}
}, },
async toggleTask(taskInfo, taskIndex) { async toggleTask(taskInfo, taskIndex) {
if(this.isFusion){ if(this.isFusion){
@ -2797,6 +2805,10 @@ export default {
return { volumeId, volume } return { volumeId, volume }
}, },
upperRangeChange(upper) {
this.$refs.colorMap.upper = upper
this.$refs.colorMap.upperRangeChange(upper)
},
openFusion() { openFusion() {
this.fusionVisible = true this.fusionVisible = true
}, },