Salome HOME
Copyright update 2022
[modules/gui.git] / src / SVTK / SVTK_AreaPicker.cxx
index 6480919f481acbb6a370f93c9882649929c72c9a..76e827b7623b138e30a5182a1e4e807f852f689b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -87,6 +87,7 @@ namespace
   }
 
   //----------------------------------------------------------------------------
+  /* Unused
   void CalculatePickPosition( vtkRenderer *theRenderer, double theSelectionX,
       double theSelectionY, double theSelectionZ, double thePickPosition[3] )
   {
@@ -101,10 +102,10 @@ namespace
       }
     }
   }
+  */
 }
 
 vtkStandardNewMacro( SVTK_AreaPicker )
-;
 
 SVTK_AreaPicker::SVTK_AreaPicker()
 {
@@ -264,7 +265,7 @@ void SVTK_AreaPicker::SelectVisiblePoints( QVector< QPoint >& thePoints,
     double aDX[3];
     theRenderer->GetDisplayPoint( aDX );
 
-    bool isInSelection;
+    bool isInSelection = false;
     if ( theMode == RectangleMode ) isInSelection = aDX[0] >= mySelection[0]
         && aDX[0] <= mySelection[2] && aDX[1] >= mySelection[1]
         && aDX[1] <= mySelection[3];
@@ -372,7 +373,7 @@ void SVTK_AreaPicker::SelectVisibleCells( QVector< QPoint >& thePoints,
     double aDX[3];
     theRenderer->GetDisplayPoint( aDX );
 
-    bool isInSelection;
+    bool isInSelection = false;
     if ( theMode == RectangleMode ) isInSelection = aDX[0] >= mySelection[0]
         && aDX[0] <= mySelection[2] && aDX[1] >= mySelection[1]
         && aDX[1] <= mySelection[3];