From: vpa Date: Fri, 14 Oct 2016 17:20:05 +0000 (+0300) Subject: 0027969: Visualization - add interfaces to access selecting volumes from SelectMgr_Se... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=4e79be7a53db47905c0a3e63253dfab8b4ff12b4;p=occt-copy.git 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 --- 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