X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSVTK%2FSVTK_AreaPicker.cxx;h=76e827b7623b138e30a5182a1e4e807f852f689b;hb=d0b0c10e5649e0338079df4a53cf95044792d989;hp=863568928943ec20d9ba162e76fadd4e1cf0cf81;hpb=627194285d9b5354291d3a442b68b8740f114eda;p=modules%2Fgui.git diff --git a/src/SVTK/SVTK_AreaPicker.cxx b/src/SVTK/SVTK_AreaPicker.cxx index 863568928..76e827b76 100644 --- a/src/SVTK/SVTK_AreaPicker.cxx +++ b/src/SVTK/SVTK_AreaPicker.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 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];