perf: improve sync slice position function performance
This commit is contained in:
@@ -501,7 +501,6 @@ void ActorDraggableInteractorStyle::AdjustSyncCrossPoint(double* aPoint)
|
||||
}
|
||||
else{
|
||||
CrossCursorAnnotationActor::SafeDownCast(dragProp)->Transform(aPoint[0] , aPoint[1] );
|
||||
this->Interactor->Render();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user