From 24a97ff1b7fe1d01a01f7546da521a9fdfc67095 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 22 Nov 2007 15:05:30 +0000 Subject: [PATCH] Fix for Bug IPAL17667 TC71: Regression: multiply selection within rectangle by mouse is not correct. (Corrected according to the evolution in the corresponding VTK prototype vtkSelectVisiblePoints.cxx for VTK 5.X) --- src/SVTK/SVTK_RectPicker.cxx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/SVTK/SVTK_RectPicker.cxx b/src/SVTK/SVTK_RectPicker.cxx index 9aaad409e..fb5ced7f2 100644 --- a/src/SVTK/SVTK_RectPicker.cxx +++ b/src/SVTK/SVTK_RectPicker.cxx @@ -115,22 +115,29 @@ namespace // WorldToView() is called. This is expensive, so we get the matrix once // and handle the transformation ourselves. vtkMatrix4x4 *aMatrix = vtkMatrix4x4::New(); - aMatrix->DeepCopy(theRenderer->GetActiveCamera()-> - GetCompositePerspectiveTransformMatrix(1,0,1)); + aMatrix->DeepCopy( theRenderer->GetActiveCamera()-> + GetCompositePerspectiveTransformMatrix( theRenderer->GetTiledAspectRatio(), 0, 1 ) ); // We grab the z-buffer for the selection region all at once and probe the resulting array. float *aZPtr = theRenderer->GetRenderWindow()-> GetZbufferData(theSelection[0], theSelection[1], theSelection[2], theSelection[3]); //cout<<"theSelection = {"<