From bcb8de543fe44b9f55bf0cd931cc9a33f0189a0b Mon Sep 17 00:00:00 2001 From: kradchen Date: Tue, 22 Jul 2025 09:44:24 +0800 Subject: [PATCH] perf: improve sync slice position function performance --- src/src/Interaction/ActorDraggableInteractorStyle.cpp | 1 - src/src/Rendering/Viewer/DICOMImageViewer.cxx | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/src/Interaction/ActorDraggableInteractorStyle.cpp b/src/src/Interaction/ActorDraggableInteractorStyle.cpp index 6b401ca..02f2bd8 100644 --- a/src/src/Interaction/ActorDraggableInteractorStyle.cpp +++ b/src/src/Interaction/ActorDraggableInteractorStyle.cpp @@ -501,7 +501,6 @@ void ActorDraggableInteractorStyle::AdjustSyncCrossPoint(double* aPoint) } else{ CrossCursorAnnotationActor::SafeDownCast(dragProp)->Transform(aPoint[0] , aPoint[1] ); - this->Interactor->Render(); } } } diff --git a/src/src/Rendering/Viewer/DICOMImageViewer.cxx b/src/src/Rendering/Viewer/DICOMImageViewer.cxx index 98f66ab..91ebff3 100644 --- a/src/src/Rendering/Viewer/DICOMImageViewer.cxx +++ b/src/src/Rendering/Viewer/DICOMImageViewer.cxx @@ -663,8 +663,7 @@ void DICOMImageViewer::SyncSlicePointSameDirection(double *point) { Renderer->GetActiveCamera()->SetFocalPoint(f); this->UnActiveReferenceLine(); this->InteractorStyle->AdjustSyncCrossPoint(displayPoint); - this->Render(); - UpdateTopLeftCornerInfo(); + UpdateTopLeftCornerInfo();// include render() Slice = ImageMapper->GetSliceNumber(); } }