]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix compilation warnings: removing obsolete methods from source code.
authorrnv <rnv@opencascade.com>
Tue, 22 Nov 2011 11:09:19 +0000 (11:09 +0000)
committerrnv <rnv@opencascade.com>
Tue, 22 Nov 2011 11:09:19 +0000 (11:09 +0000)
src/OBJECT/VISU_SelectVisiblePoints.cxx
src/PIPELINE/VISU_PlanesWidget.cxx
src/PIPELINE/VISU_SphereWidget.cxx

index 40eb6f1da46c996c691068303176a878af906349..719f0ccf490b40eda9e0625713e7d6019d5ca026 100644 (file)
@@ -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
index 180febf7293d6837212780a43af5244bc04a6c9d..5732f27b6a36f47f883858fa8cefbd5a9e1c602b 100644 (file)
@@ -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);
   //
index 141d51a36c0e498c7b41de4cf982f6b7c03599cd..3cc2b92375721466ac8835ae4f03fccc8bb8df9f 100755 (executable)
@@ -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);
     }