perf: improve sync slice position function performance

This commit is contained in:
kradchen
2025-07-22 09:44:24 +08:00
parent 886b9a92b2
commit bcb8de543f
2 changed files with 1 additions and 3 deletions

View File

@@ -501,7 +501,6 @@ void ActorDraggableInteractorStyle::AdjustSyncCrossPoint(double* aPoint)
} }
else{ else{
CrossCursorAnnotationActor::SafeDownCast(dragProp)->Transform(aPoint[0] , aPoint[1] ); CrossCursorAnnotationActor::SafeDownCast(dragProp)->Transform(aPoint[0] , aPoint[1] );
this->Interactor->Render();
} }
} }
} }

View File

@@ -663,8 +663,7 @@ void DICOMImageViewer::SyncSlicePointSameDirection(double *point) {
Renderer->GetActiveCamera()->SetFocalPoint(f); Renderer->GetActiveCamera()->SetFocalPoint(f);
this->UnActiveReferenceLine(); this->UnActiveReferenceLine();
this->InteractorStyle->AdjustSyncCrossPoint(displayPoint); this->InteractorStyle->AdjustSyncCrossPoint(displayPoint);
this->Render(); UpdateTopLeftCornerInfo();// include render()
UpdateTopLeftCornerInfo();
Slice = ImageMapper->GetSliceNumber(); Slice = ImageMapper->GetSliceNumber();
} }
} }