fix: fix rotate image zoom bug
This commit is contained in:
@@ -702,6 +702,7 @@ void DicomImageView::rotateImage(double angle, TransFormType operation) {
|
|||||||
resetPanZoom();
|
resetPanZoom();
|
||||||
mImageViewer->GetRenderer()->GetActiveCamera()->Roll(angle);
|
mImageViewer->GetRenderer()->GetActiveCamera()->Roll(angle);
|
||||||
mCurrentRAngle=(mCurrentRAngle+(int)angle)%360;
|
mCurrentRAngle=(mCurrentRAngle+(int)angle)%360;
|
||||||
|
resetPanZoom();
|
||||||
//to avoid black out problem during slicing
|
//to avoid black out problem during slicing
|
||||||
//slcing is related with rotation, you have to recalculate to get it right
|
//slcing is related with rotation, you have to recalculate to get it right
|
||||||
mImageViewer->GetRenderer()->ResetCameraClippingRange();
|
mImageViewer->GetRenderer()->ResetCameraClippingRange();
|
||||||
|
|||||||
Reference in New Issue
Block a user