Compare commits

..

No commits in common. "79a7ad0cf74e62f85197bc2e71c0e2db57e9b0bd" and "a987ac086b4b01498c5670c9acbdb6b866cb4919" have entirely different histories.

3 changed files with 19 additions and 20 deletions

View File

@ -894,9 +894,6 @@ export default {
DicomEvent.$on('addNoneDicomMeasureData', data => {
this.open.postMessage({ type: 'addNoneDicomMeasureData', data: data }, window.location)
})
DicomEvent.$on('activeSeries', (series) => {
this.renderedTaskIds = []
})
document.addEventListener("click", this.foo);
this.getSystemInfoReading();
},
@ -1610,15 +1607,14 @@ export default {
const taskIdx = this.visitTaskList.findIndex(i => i.VisitTaskId === taskId)
if (taskIdx === -1) return
const annotations = this.visitTaskList[taskIdx].Annotations
console.log(annotations, 'annotations')
annotations.map(i => {
if (i.MeasureData && !Object.hasOwn(i.MeasureData, 'isDicomReading')) {
const annotation = i.MeasureData
if ((this.readingTool === 3 && annotation.seriesId === series.Id) || this.readingTool < 3) {
annotation.highlighted = false
cornerstoneTools.annotation.state.addAnnotation(annotation)
if (this.visitTaskList[taskIdx].ReadingTaskState === 2) {
cornerstoneTools.annotation.locking.setAnnotationLocked(annotation.annotationUID)
}
annotation.highlighted = false
cornerstoneTools.annotation.state.addAnnotation(annotation)
if (this.visitTaskList[taskIdx].ReadingTaskState === 2) {
cornerstoneTools.annotation.locking.setAnnotationLocked(annotation.annotationUID)
}
}
})
@ -3705,7 +3701,7 @@ export default {
// imageIds = this.sortImageIdsByImagePositionPatient(imageIds)
volume = await volumeLoader.createAndCacheVolume(volumeId, { imageIds: imageIds })
volume.load()
}
}
res({ volumeId, volume })
})
},

View File

@ -827,6 +827,7 @@ export default {
},
async customPrompt() {
try {
console.log(annotation.state.getAllAnnotations(), 'annotation.state.getAllAnnotations()')
const that = this
//
let message = this.$t('trials:reading:Segmentations:message:rename')
@ -1138,6 +1139,7 @@ export default {
if (toolName === 'ThresholdSphere') {
this.setDynamicRadius()
}
console.log(this.brushThreshold.dynamicRadius, 'this.brushThreshold.dynamicRadius')
},
setDynamicRadius() {
let volume = cache.getVolume(this.series.SeriesInstanceUid);

View File

@ -282,12 +282,13 @@ export default {
this.imageInfo.location = imagePlaneModule.sliceLocation
this.imageInfo.total = detail.numberOfSlices
this.getOrientationMarker()
if (this.series && this.series.Id) {
let annotations = cornerstoneTools.annotation.state.getAllAnnotations().filter(item => item.metadata.toolName !== 'ScaleOverlay' && item.metadata.volumeId !== this.volumeId && !item.metadata.segmentationId && item.seriesId !== this.series.Id)
annotations.forEach(item => {
cornerstoneTools.annotation.state.removeAnnotation(item.annotationUID)
})
}
let annotations = cornerstoneTools.annotation.state.getAllAnnotations().filter(item => item.metadata.toolName !== 'ScaleOverlay' && item.metadata.volumeId !== this.volumeId && !item.metadata.segmentationId)
// console.log(annotations, 'annotations')
annotations.forEach(item => {
cornerstoneTools.annotation.state.removeAnnotation(item.annotationUID)
})
this.$emit('renderAnnotations', this.series)
let properties = viewport.getProperties()
if (this.isFusion) {
@ -494,7 +495,7 @@ export default {
} finally {
this.loading = false
}
},
},
async getVolume(serie, isFusion = false) {
return new Promise(async res => {
let volumeId = `${isFusion ? 'fusion_' : ''}` + serie.SeriesInstanceUid;
@ -502,8 +503,8 @@ export default {
if (cache.getVolume(volumeId)) {
volume = cache.getVolume(volumeId)
} else {
let imageIds = await this.createImageIdsAndCacheMetaData(serie)
volume = await volumeLoader.createAndCacheVolume(volumeId, { imageIds: imageIds })
await this.createImageIdsAndCacheMetaData(serie)
volume = await volumeLoader.createAndCacheVolume(volumeId, { imageIds: serie.ImageIds })
volume.load()
}
res({ volumeId, volume })
@ -515,7 +516,7 @@ export default {
if (this.series && data.Id === this.series.Id && data.Description === this.series.Description && !isLocate && !data.isLocation) {
data.SliceIndex = this.series.SliceIndex
}
// console.log(data)
// console.log(data.SliceIndex)
const renderingEngine = getRenderingEngine(this.renderingEngineId)
const viewport = renderingEngine.getViewport(this.viewportId)
if (isLocate) return csUtils.jumpToSlice(viewport.element, { imageIndex: data.SliceIndex });