X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FPartSet%2FPartSet_Filters.h;h=2ceafe51793fcce958f7819096463e81b0a78a6d;hb=b73fb7468bea81901dbeed8e229d742f788ec282;hp=6b75ccf7bb80e4ff54d9464543306ea9eaceff95;hpb=2532fb2df83ee1ddd9ff3e8b381d3788eaa15b69;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Filters.h b/src/PartSet/PartSet_Filters.h index 6b75ccf7b..2ceafe517 100644 --- a/src/PartSet/PartSet_Filters.h +++ b/src/PartSet/PartSet_Filters.h @@ -14,7 +14,8 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com // #ifndef PartSet_Filters_H @@ -22,6 +23,8 @@ #include +#include +#include /** * \class PartSet_GlobalFilter @@ -45,6 +48,31 @@ public: DEFINE_STANDARD_RTTIEXT(PartSet_GlobalFilter, ModuleBase_ShapeDocumentFilter) }; +/// \class PartSet_ResultGroupNameFilter +/// \ingroup Modules +/// A class which filters results with groupName() result in filter parameters +DEFINE_STANDARD_HANDLE(PartSet_ResultGroupNameFilter, SelectMgr_Filter); +class PartSet_ResultGroupNameFilter: public SelectMgr_Filter +{ +public: + /// Constructor + /// \param theWorkshop a pointer to workshop + PartSet_ResultGroupNameFilter(ModuleBase_IWorkshop* theWorkshop) + : SelectMgr_Filter(), myWorkshop(theWorkshop) {} + + void setGroupNames(const std::set& theGroupNames); + + /// Returns True if selected presentation can be selected + /// \param theOwner an owner of the persentation + Standard_EXPORT virtual Standard_Boolean + IsOk(const Handle(SelectMgr_EntityOwner)& theOwner) const; + + DEFINE_STANDARD_RTTIEXT(PartSet_ResultGroupNameFilter, SelectMgr_Filter) + +private: + ModuleBase_IWorkshop* myWorkshop; + std::set myGroupNames; +}; /// \class PartSet_CirclePointFilter /// \ingroup GUI