fix(multiframe): metadata handling of NM studies and loading order (#4554)
This commit is contained in:
1 parent
6729534a1a
commit
7624ccb5e4
57 files changed
+482
-662
No files matched your search
@@ -1058,6 +1058,11 @@ class CornerstoneViewportService extends PubSubService implements IViewportServi
|
||||
// Store the current position presentations for each viewport.
|
||||
viewports.forEach(({ id: viewportId }) => {
|
||||
const presentation = this._getPositionPresentation(viewportId);
|
||||
|
||||
// During a resize, the slice index should remain unchanged. This is a temporary fix for
|
||||
// a larger issue regarding the definition of slice index with slab thickness.
|
||||
// We need to revisit this to make it more robust and understandable.
|
||||
delete presentation.viewReference.sliceIndex;
|
||||
this.beforeResizePositionPresentations.set(viewportId, presentation);
|
||||
});
|
||||
|
||||
@@ -1066,10 +1071,12 @@ class CornerstoneViewportService extends PubSubService implements IViewportServi
|
||||
renderingEngine.resize(isImmediate);
|
||||
renderingEngine.render();
|
||||
|
||||
// Reset the camera for viewports that should reset their camera on resize,
|
||||
// Reset the camera for all viewports using position presentation to maintain relative size/position
|
||||
// which means only those viewports that have a zoom level of 1.
|
||||
this.beforeResizePositionPresentations.forEach((positionPresentation, viewportId) => {
|
||||
this.setPresentations(viewportId, { positionPresentation });
|
||||
this.setPresentations(viewportId, {
|
||||
positionPresentation,
|
||||
});
|
||||
});
|
||||
|
||||
// Resize and render the rendering engine again.
|
||||
|
||||
Reference in new issue
Block a user