1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

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
This commit is contained in:
vpa
2016-10-14 20:20:05 +03:00
parent e5593d7d75
commit 4e79be7a53

View 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