From 2572252df0dff586454b7fea411cd70a1c3625c1 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 22 Nov 2011 11:09:19 +0000 Subject: [PATCH] Fix compilation warnings: removing obsolete methods from source code. --- src/OBJECT/VISU_SelectVisiblePoints.cxx | 3 +-- src/PIPELINE/VISU_PlanesWidget.cxx | 2 +- src/PIPELINE/VISU_SphereWidget.cxx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/OBJECT/VISU_SelectVisiblePoints.cxx b/src/OBJECT/VISU_SelectVisiblePoints.cxx index 40eb6f1d..719f0ccf 100644 --- a/src/OBJECT/VISU_SelectVisiblePoints.cxx +++ b/src/OBJECT/VISU_SelectVisiblePoints.cxx @@ -120,8 +120,7 @@ int VISU_SelectVisiblePoints::RequestData( vtkMatrix4x4 *matrix = vtkMatrix4x4::New(); double view[4]; matrix->DeepCopy(this->Renderer->GetActiveCamera()-> - GetCompositePerspectiveTransformMatrix( - this->Renderer->GetTiledAspectRatio(),0,1)); + GetCompositeProjectionTransformMatrix(this->Renderer->GetTiledAspectRatio(),0,1)); // If we have more than a few query points, we grab the z-buffer for the // selection region all at once and probe the resulting array. When we diff --git a/src/PIPELINE/VISU_PlanesWidget.cxx b/src/PIPELINE/VISU_PlanesWidget.cxx index 180febf7..5732f27b 100644 --- a/src/PIPELINE/VISU_PlanesWidget.cxx +++ b/src/PIPELINE/VISU_PlanesWidget.cxx @@ -605,7 +605,7 @@ void VISU_PlanesWidget::OnLeftButtonDown() return; } - vtkProp *prop = path->GetFirstNode()->GetProp(); + vtkProp *prop = path->GetFirstNode()->GetViewProp(); this->ValidPick = 1; this->Picker->GetPickPosition(this->LastPickPosition); // diff --git a/src/PIPELINE/VISU_SphereWidget.cxx b/src/PIPELINE/VISU_SphereWidget.cxx index 141d51a3..3cc2b923 100755 --- a/src/PIPELINE/VISU_SphereWidget.cxx +++ b/src/PIPELINE/VISU_SphereWidget.cxx @@ -348,7 +348,7 @@ void VISU_SphereWidget::OnLeftButtonDown() // if no places picked, then try to pick the sphere. myPicker->Pick(X, Y, 0., CurrentRenderer); if(vtkAssemblyPath *aPath = myPicker->GetPath()){ - if(aPath->GetFirstNode()->GetProp() == mySphereActor){ + if(aPath->GetFirstNode()->GetViewProp() == mySphereActor){ myState = VISU_SphereWidget::Moving; HighlightSphere(1); } -- 2.39.2