0029938: Visualization - SelectMgr_ViewerSelector::PickedPoint() should return point...
[occt.git] / src / SelectMgr / SelectMgr_SelectingVolumeManager.cxx
index 6c5348c..879a632 100644 (file)
@@ -236,12 +236,12 @@ void SelectMgr_SelectingVolumeManager::BuildSelectingVolume (const TColgp_Array1
 //=======================================================================
 Standard_Boolean SelectMgr_SelectingVolumeManager::Overlaps (const SelectMgr_Vec3& theBoxMin,
                                                              const SelectMgr_Vec3& theBoxMax,
-                                                             Standard_Real& theDepth)
+                                                             SelectBasics_PickResult& thePickResult)
 {
   if (myActiveSelectionType == Unknown)
     return Standard_False;
 
-  return mySelectingVolumes[myActiveSelectionType / 2]->Overlaps (theBoxMin, theBoxMax, theDepth);
+  return mySelectingVolumes[myActiveSelectionType / 2]->Overlaps (theBoxMin, theBoxMax, thePickResult);
 }
 
 //=======================================================================
@@ -263,13 +263,13 @@ Standard_Boolean SelectMgr_SelectingVolumeManager::Overlaps (const SelectMgr_Vec
 // purpose  : Intersection test between defined volume and given point
 //=======================================================================
 Standard_Boolean SelectMgr_SelectingVolumeManager::Overlaps (const gp_Pnt& thePnt,
-                                                             Standard_Real& theDepth)
+                                                             SelectBasics_PickResult& thePickResult)
 {
   if (myActiveSelectionType == Unknown)
     return Standard_False;
 
   return mySelectingVolumes[myActiveSelectionType / 2]->Overlaps (thePnt,
-                                                                  theDepth);
+                                                                  thePickResult);
 }
 
 //=======================================================================
@@ -293,14 +293,14 @@ Standard_Boolean SelectMgr_SelectingVolumeManager::Overlaps (const gp_Pnt& thePn
 //=======================================================================
 Standard_Boolean SelectMgr_SelectingVolumeManager::Overlaps (const Handle(TColgp_HArray1OfPnt)& theArrayOfPnts,
                                                              Standard_Integer theSensType,
-                                                             Standard_Real& theDepth)
+                                                             SelectBasics_PickResult& thePickResult)
 {
   if (myActiveSelectionType == Unknown)
     return Standard_False;
 
   return mySelectingVolumes[myActiveSelectionType / 2]->Overlaps (theArrayOfPnts->Array1(),
                                                                   (Select3D_TypeOfSensitivity)theSensType,
-                                                                  theDepth);
+                                                                  thePickResult);
 }
 
 //=======================================================================
@@ -312,14 +312,14 @@ Standard_Boolean SelectMgr_SelectingVolumeManager::Overlaps (const Handle(TColgp
 //=======================================================================
 Standard_Boolean SelectMgr_SelectingVolumeManager::Overlaps (const TColgp_Array1OfPnt& theArrayOfPnts,
                                                              Standard_Integer theSensType,
-                                                             Standard_Real& theDepth)
+                                                             SelectBasics_PickResult& thePickResult)
 {
   if (myActiveSelectionType == Unknown)
     return Standard_False;
 
   return mySelectingVolumes[myActiveSelectionType / 2]->Overlaps (theArrayOfPnts,
                                                                   (Select3D_TypeOfSensitivity)theSensType,
-                                                                  theDepth);
+                                                                  thePickResult);
 }
 
 //=======================================================================
@@ -328,12 +328,12 @@ Standard_Boolean SelectMgr_SelectingVolumeManager::Overlaps (const TColgp_Array1
 //=======================================================================
 Standard_Boolean SelectMgr_SelectingVolumeManager::Overlaps (const gp_Pnt& thePt1,
                                                              const gp_Pnt& thePt2,
-                                                             Standard_Real& theDepth)
+                                                             SelectBasics_PickResult& thePickResult)
 {
   if (myActiveSelectionType == Unknown)
     return Standard_False;
 
-  return mySelectingVolumes[myActiveSelectionType / 2]->Overlaps (thePt1, thePt2, theDepth);
+  return mySelectingVolumes[myActiveSelectionType / 2]->Overlaps (thePt1, thePt2, thePickResult);
 }
 
 //=======================================================================
@@ -347,7 +347,7 @@ Standard_Boolean SelectMgr_SelectingVolumeManager::Overlaps (const gp_Pnt& thePt
                                                              const gp_Pnt& thePt2,
                                                              const gp_Pnt& thePt3,
                                                              Standard_Integer theSensType,
-                                                             Standard_Real& theDepth)
+                                                             SelectBasics_PickResult& thePickResult)
 {
   if (myActiveSelectionType == Unknown)
     return Standard_False;
@@ -356,7 +356,7 @@ Standard_Boolean SelectMgr_SelectingVolumeManager::Overlaps (const gp_Pnt& thePt
                                                                   thePt2,
                                                                   thePt3,
                                                                   (Select3D_TypeOfSensitivity)theSensType,
-                                                                  theDepth);
+                                                                  thePickResult);
 }
 
 //=======================================================================