From 4e79be7a53db47905c0a3e63253dfab8b4ff12b4 Mon Sep 17 00:00:00 2001 From: vpa Date: Fri, 14 Oct 2016 20:20:05 +0300 Subject: [PATCH] 0027969: Visualization - add interfaces to access selecting volumes from SelectMgr_SelectingVolumeManager - getter for selection frustum computed during last run of selection mechanism was added to SelectMgr_SelectingVolumeManager --- src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx b/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx index 12f89014d4..13a4a6e03a 100644 --- a/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx +++ b/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx @@ -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 ActiveVolume() const + { + if (myActiveSelectionType == Unknown) + return NCollection_Handle(); + + return mySelectingVolumes[myActiveSelectionType]; + } + private: enum { Frustum, FrustumSet, VolumeTypesNb }; //!< Defines the amount of available selecting volumes -- 2.39.5