]> OCCT Git - occt-copy.git/commitdiff
0027969: Visualization - add interfaces to access selecting volumes from SelectMgr_Se...
authorvpa <vpa@opencascade.com>
Fri, 14 Oct 2016 17:20:05 +0000 (20:20 +0300)
committervpa <vpa@opencascade.com>
Fri, 14 Oct 2016 17:20:05 +0000 (20:20 +0300)
- getter for selection frustum computed during last run of selection mechanism was added to SelectMgr_SelectingVolumeManager

src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx

index 12f89014d4e99716096ca5263a7f775f08c68ad1..13a4a6e03aff1cbfb40ebaf832f3ca1627090419 100644 (file)
@@ -173,6 +173,16 @@ public:
 
   Standard_EXPORT gp_Pnt GetFarPnt() const;
 
+  //! Returns active selecting volume that was built during last
+  //! run of OCCT selection mechanism
+  NCollection_Handle<SelectMgr_BaseFrustum> ActiveVolume() const
+  {
+    if (myActiveSelectionType == Unknown)
+      return NCollection_Handle<SelectMgr_BaseFrustum>();
+
+    return mySelectingVolumes[myActiveSelectionType];
+  }
+
 private:
   enum { Frustum, FrustumSet, VolumeTypesNb };       //!< Defines the amount of available selecting volumes