X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Filters.h;h=c4e727035453e9bbd1e5ec510b7a5582d45cff6f;hb=56c3f4abe8b191d5255880ac2efe79558e6ed187;hp=aba48302f78784315be71582cc63fc014fd4f608;hpb=9a9c66f23574f92bba945e8dc01bc8d764c3024c;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Filters.h b/src/PartSet/PartSet_Filters.h index aba48302f..c4e727035 100644 --- a/src/PartSet/PartSet_Filters.h +++ b/src/PartSet/PartSet_Filters.h @@ -31,4 +31,32 @@ public: DEFINE_STANDARD_RTTI(PartSet_GlobalFilter) }; + +/// \class PartSet_CirclePointFilter +/// \ingroup GUI +/// \brief A filter which provide filtering of selection in 3d viewer. +/// Installing of this filter disables selection of point on circle in sketch +DEFINE_STANDARD_HANDLE(PartSet_CirclePointFilter, SelectMgr_Filter); +class PartSet_CirclePointFilter: public SelectMgr_Filter +{ +public: + + /// Constructor + /// \param theWorkshop instance of workshop interface + Standard_EXPORT PartSet_CirclePointFilter(ModuleBase_IWorkshop* theWorkshop): + SelectMgr_Filter(), + myWorkshop(theWorkshop) {}; + + /// Returns True if the given owner is acceptable for selection + /// \param theOwner the selected owner + Standard_EXPORT virtual Standard_Boolean IsOk(const Handle(SelectMgr_EntityOwner)& theOwner) const; + + DEFINE_STANDARD_RTTI(PartSet_CirclePointFilter) + +private: + + /// Reference to workshop + ModuleBase_IWorkshop* myWorkshop; +}; + #endif \ No newline at end of file