perf: improve sync slice position function performance
This commit is contained in:
@@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user