MPR修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
b5f327fc3c
commit
e7fdee1147
|
|
@ -2068,7 +2068,7 @@ export default {
|
|||
this.activeTool = ''
|
||||
} else {
|
||||
if (this.activeTool) {
|
||||
if (toolName === CrosshairsTool.toolName) {
|
||||
if (this.activeTool === CrosshairsTool.toolName) {
|
||||
toolGroup.setToolDisabled(this.activeTool)
|
||||
} else {
|
||||
toolGroup.setToolPassive(this.activeTool)
|
||||
|
|
@ -2092,7 +2092,7 @@ export default {
|
|||
const toolGroupId = this.isMPR ? this.volumeToolGroupId : `${this.viewportKey}-${this.activeViewportIndex}`
|
||||
const toolGroup = ToolGroupManager.getToolGroup(toolGroupId)
|
||||
if (this.activeTool) {
|
||||
if (toolName === CrosshairsTool.toolName) {
|
||||
if (this.activeTool === CrosshairsTool.toolName) {
|
||||
toolGroup.setToolDisabled(this.activeTool)
|
||||
} else {
|
||||
toolGroup.setToolPassive(this.activeTool)
|
||||
|
|
@ -2792,13 +2792,13 @@ export default {
|
|||
let viewPlaneNormal = obj.annotation?.metadata?.viewPlaneNormal.map(i => i == 0 ? 0 : i).join(',')
|
||||
if (viewPlaneNormal === '0,0,-1') {
|
||||
this.activeViewportIndex = 0
|
||||
series = Object.assign({ orientation: 'AXIAL' }, series)
|
||||
// series = Object.assign({ orientation: 'AXIAL' }, series)
|
||||
} else if (viewPlaneNormal === '0,-1,0') {
|
||||
this.activeViewportIndex = 2
|
||||
series = Object.assign({ orientation: 'CORONAL' }, series)
|
||||
// series = Object.assign({ orientation: 'CORONAL' }, series)
|
||||
} else if (viewPlaneNormal === '1,0,0') {
|
||||
this.activeViewportIndex = 1
|
||||
series = Object.assign({ orientation: 'SAGITTAL' }, series)
|
||||
// series = Object.assign({ orientation: 'SAGITTAL' }, series)
|
||||
}
|
||||
let res = await this.openMPRViewport(series)
|
||||
if (!res) return false
|
||||
|
|
@ -2838,13 +2838,13 @@ export default {
|
|||
let viewPlaneNormal = obj.annotation?.metadata?.viewPlaneNormal.map(i => i == 0 ? 0 : i).join(',')
|
||||
if (viewPlaneNormal === '0,0,-1') {
|
||||
this.activeViewportIndex = 0
|
||||
series = Object.assign({ orientation: 'AXIAL' }, series)
|
||||
// series = Object.assign({ orientation: 'AXIAL' }, series)
|
||||
} else if (viewPlaneNormal === '0,-1,0') {
|
||||
this.activeViewportIndex = 2
|
||||
series = Object.assign({ orientation: 'CORONAL' }, series)
|
||||
// series = Object.assign({ orientation: 'CORONAL' }, series)
|
||||
} else if (viewPlaneNormal === '1,0,0') {
|
||||
this.activeViewportIndex = 1
|
||||
series = Object.assign({ orientation: 'SAGITTAL' }, series)
|
||||
// series = Object.assign({ orientation: 'SAGITTAL' }, series)
|
||||
}
|
||||
let res = await this.openMPRViewport(series)
|
||||
if (!res) {
|
||||
|
|
@ -3287,6 +3287,7 @@ export default {
|
|||
const series = data ? data : this.$refs[`viewport-${this.activeViewportIndex}`][0].series
|
||||
if (series.ImageIds.length <= 5) return this.$confirm(this.$t('trials:reading:confirm:smallNumberOfimage'))
|
||||
this.isMPR = true
|
||||
console.log(series, 'series')
|
||||
this.rows = 3
|
||||
this.cols = 1
|
||||
this.loading = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue