同步调窗更改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
619af2e874
commit
5cb3e8e606
|
|
@ -1664,7 +1664,11 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
upperRangeChange(v) {
|
upperRangeChange(v) {
|
||||||
if (v === 0 || v < this.upper) {
|
if (this.lastUpper === v) return;
|
||||||
|
this.lastUpper = v;
|
||||||
|
this.upper = v;
|
||||||
|
|
||||||
|
if (v === 0) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var sliderBox = document.getElementById('sliderBox')
|
var sliderBox = document.getElementById('sliderBox')
|
||||||
|
|
@ -1682,6 +1686,8 @@ export default {
|
||||||
slider.style.left = left + 'px'
|
slider.style.left = left + 'px'
|
||||||
var positionValue = document.getElementById('slider-position')
|
var positionValue = document.getElementById('slider-position')
|
||||||
positionValue.textContent = this.upper
|
positionValue.textContent = this.upper
|
||||||
|
|
||||||
|
this.voiChange(v)
|
||||||
},
|
},
|
||||||
renderColorMaps() {
|
renderColorMaps() {
|
||||||
this.createColorBar(this.rgbPresetName, 'colorBarCanvas', 256, 15)
|
this.createColorBar(this.rgbPresetName, 'colorBarCanvas', 256, 15)
|
||||||
|
|
@ -1713,6 +1719,7 @@ export default {
|
||||||
: { lower: voiRange[0], upper: voiRange[1] }
|
: { lower: voiRange[0], upper: voiRange[1] }
|
||||||
},
|
},
|
||||||
voiChange(v) {
|
voiChange(v) {
|
||||||
|
this.lastUpper = v;
|
||||||
let viewportIds = ['FUSION_AXIAL', 'PT_AXIAL', 'PET_MIP_CORONAL']
|
let viewportIds = ['FUSION_AXIAL', 'PT_AXIAL', 'PET_MIP_CORONAL']
|
||||||
viewportIds.map(viewportId => {
|
viewportIds.map(viewportId => {
|
||||||
// const volumeId = viewportId === 'viewportId' ? ptVolumeId : ctVolumeId
|
// const volumeId = viewportId === 'viewportId' ? ptVolumeId : ctVolumeId
|
||||||
|
|
|
||||||
|
|
@ -582,7 +582,9 @@ 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))
|
if (this.index !== 1) {
|
||||||
|
this.$emit('upperRangeChange', Math.round(upper))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getScreenshots() {
|
async getScreenshots() {
|
||||||
|
|
|
||||||
|
|
@ -291,7 +291,9 @@ Colorbar: null,
|
||||||
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))
|
if (this.series.Modality === 'PT' || this.series.Modality === 'NM' || this.isFusion) {
|
||||||
|
this.$emit('upperRangeChange', Math.round(upper))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getOrientationMarker() {
|
getOrientationMarker() {
|
||||||
|
|
@ -534,7 +536,7 @@ Colorbar: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
volumeId: data.SeriesInstanceUid, callback: (r) => {
|
volumeId: this.ptVolumeId, callback: (r) => {
|
||||||
setPetColorMapTransferFunctionForVolumeActor(r)
|
setPetColorMapTransferFunctionForVolumeActor(r)
|
||||||
if (this.series.Modality === 'NM') {
|
if (this.series.Modality === 'NM') {
|
||||||
this.nmFusionVolumeActor = r.volumeActor
|
this.nmFusionVolumeActor = r.volumeActor
|
||||||
|
|
|
||||||
|
|
@ -756,7 +756,8 @@ export default {
|
||||||
segmentationId: null
|
segmentationId: null
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
fusionOverlayModality: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -3729,8 +3730,13 @@ export default {
|
||||||
return pairs.map((p) => p.imageId);
|
return pairs.map((p) => p.imageId);
|
||||||
},
|
},
|
||||||
upperRangeChange(upper) {
|
upperRangeChange(upper) {
|
||||||
this.$refs.colorMap.upper = upper
|
if (this.lastUpper === upper) return;
|
||||||
this.$refs.colorMap.upperRangeChange(upper)
|
this.lastUpper = upper;
|
||||||
|
if (this.$refs.colorMap) {
|
||||||
|
this.$refs.colorMap.upper = upper
|
||||||
|
this.$refs.colorMap.upperRangeChange(upper)
|
||||||
|
}
|
||||||
|
this.voiChange(upper)
|
||||||
},
|
},
|
||||||
openFusion() {
|
openFusion() {
|
||||||
this.fusionVisible = true
|
this.fusionVisible = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue