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:
@@ -173,6 +173,16 @@ public:
|
|||||||
|
|
||||||
Standard_EXPORT gp_Pnt GetFarPnt() const;
|
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:
|
private:
|
||||||
enum { Frustum, FrustumSet, VolumeTypesNb }; //!< Defines the amount of available selecting volumes
|
enum { Frustum, FrustumSet, VolumeTypesNb }; //!< Defines the amount of available selecting volumes
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user