部分问题修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
d12b4adb68
commit
e899c0814e
|
@ -852,7 +852,7 @@ export default {
|
|||
this.rgbPresetName = rgbPresetName
|
||||
this.createColorBar(this.rgbPresetName, 'colorBarCanvas', 256, 15)
|
||||
this.cellType.forEach((item, index) => {
|
||||
if (item === 'FUSION') {
|
||||
if (['FUSION', 'MIP', 'PT'].includes(item)) {
|
||||
this.$refs[`viewport-${index}`][0].setPreset(this.rgbPresetName)
|
||||
this.$refs[`viewport-${index}`][0].renderColorBar(this.rgbPresetName)
|
||||
this.$refs[`viewport-${index}`][0].setColorMap(rgbPresetName)
|
||||
|
@ -923,9 +923,9 @@ export default {
|
|||
this.$refs[`viewport-${0}`][0].setSeriesInfo(this.ctSeriesInfo)
|
||||
this.$refs[`viewport-${1}`][0].setSeriesInfo(this.petSeriesInfo)
|
||||
this.$refs[`viewport-${2}`][0].setSeriesInfo({ ct: this.ctSeriesInfo, pet: this.petSeriesInfo }, false, { isFusion: true })
|
||||
this.$refs[`viewport-${2}`][0].setPreset(this.rgbPresetName)
|
||||
this.$refs[`viewport-${3}`][0].setSeriesInfo(this.petSeriesInfo, false, { isMip: true })
|
||||
this.cellType = ['CT', 'PT', 'FUSION', 'MIP']
|
||||
this.setColorMap(this.rgbPresetName)
|
||||
},
|
||||
handleStudyIdChange(v) {
|
||||
var i = this.studyList.findIndex(i => i.StudyId === v)
|
||||
|
@ -974,7 +974,6 @@ export default {
|
|||
cache.setMaxCacheSize(6 * 1024 * 1024 * 1024);
|
||||
let renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
if (!renderingEngine) {
|
||||
console.log(11111111111111)
|
||||
renderingEngine = new RenderingEngine(renderingEngineId)
|
||||
}
|
||||
const element1 = this.$refs['viewport-0'][0].$el
|
||||
|
|
|
@ -420,6 +420,7 @@ export default {
|
|||
// });
|
||||
const rgbPoints = colorMap.RGBPoints
|
||||
const canvas = document.getElementById(`colorBar_Canvas_${this.viewportId}`)
|
||||
if (!canvas) return false
|
||||
const ctx = canvas.getContext('2d')
|
||||
const canvasWidth = 160
|
||||
const canvasHeight = 5
|
||||
|
@ -481,7 +482,6 @@ export default {
|
|||
const renderingEngine = getRenderingEngine(this.renderingEngineId)
|
||||
const viewport = renderingEngine.getViewport(this.viewportId)
|
||||
viewport.setOrientation(OrientationAxis.AXIAL)
|
||||
viewport.setProperties({ background: [0, 0, 0] })
|
||||
const toolGroup = ToolGroupManager.getToolGroup(this.viewportId)
|
||||
toolGroup.setToolEnabled(MIPJumpToClickTool.toolName)
|
||||
toolGroup.setToolEnabled(VolumeRotateTool.toolName)
|
||||
|
@ -517,10 +517,7 @@ export default {
|
|||
setPetColorMapTransferFunctionForVolumeActor(r)
|
||||
console.log("融合pet渲染成功");
|
||||
}
|
||||
}]).then(() => {
|
||||
this.setColorMap(this.presetName)
|
||||
})
|
||||
return renderingEngine.render()
|
||||
}])
|
||||
} else {
|
||||
this.series = { ...obj }
|
||||
await this.createImageIdsAndCacheMetaData(obj)
|
||||
|
@ -531,7 +528,6 @@ export default {
|
|||
volume.load();
|
||||
if (this.isMip) {
|
||||
viewport.setOrientation(OrientationAxis.CORONAL);
|
||||
viewport.setProperties({ background: [0, 0, 0] })
|
||||
toolGroup.setToolActive(VolumeRotateTool.toolName, {
|
||||
bindings: [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue