From: sshutina Date: Thu, 13 May 2021 09:01:58 +0000 (+0300) Subject: 0032364: Visualization - Add interface to return global filter from context X-Git-Tag: V7_6_0_beta~143 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=d1b8120b699dfa46c9899f70430ec45a0c4e4a95;p=occt.git 0032364: Visualization - Add interface to return global filter from context --- diff --git a/src/AIS/AIS_InteractiveContext.hxx b/src/AIS/AIS_InteractiveContext.hxx index f313834eb7..eebacf2473 100644 --- a/src/AIS/AIS_InteractiveContext.hxx +++ b/src/AIS/AIS_InteractiveContext.hxx @@ -793,6 +793,9 @@ public: //! @name Selection Filters management //! Returns the list of filters active in a local context. const SelectMgr_ListOfFilter& Filters() const { return myFilters->StoredFilters(); } + //! @return the context selection global context filter. + const Handle(SelectMgr_AndOrFilter)& GlobalFilter() const { return myFilters; } + //! Allows you to add the filter. void AddFilter (const Handle(SelectMgr_Filter)& theFilter) { myFilters->Add (theFilter); }