X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_ViewerFilters.h;h=a5d404ee81a84d850261c5a506c4244e8cd2b57e;hb=0cea3be102af7247b2fe2c8035a1bb38b7bf82ae;hp=1a215a4fccf47f483077f70688bd45c1da19628e;hpb=a2686c838648dcf05659df3c31d9b90aca42b792;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_ViewerFilters.h b/src/ModuleBase/ModuleBase_ViewerFilters.h index 1a215a4fc..a5d404ee8 100644 --- a/src/ModuleBase/ModuleBase_ViewerFilters.h +++ b/src/ModuleBase/ModuleBase_ViewerFilters.h @@ -75,33 +75,4 @@ private: gp_Pln myPlane; }; - -/** -* \class ModuleBase_ObjectTypesFilter -* \ingroup GUI -* A filter which provides filtering of selection in 3d viewer. -* Installing of this filter lets to select only object of requested type -* Accepts following objects types: -* - "construction" - to select ModelAPI_ResultConstruction objects -*/ -DEFINE_STANDARD_HANDLE(ModuleBase_ObjectTypesFilter, SelectMgr_Filter); -class ModuleBase_ObjectTypesFilter: public ModuleBase_ShapeDocumentFilter -{ -public: - /// Constructor - /// \param theWorkshop instance of workshop interface - /// \param theTypes list of object types - Standard_EXPORT ModuleBase_ObjectTypesFilter(ModuleBase_IWorkshop* theWorkshop, const QStringList& theTypes): - ModuleBase_ShapeDocumentFilter(theWorkshop), myTypes(theTypes) {} - - /// 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(ModuleBase_ObjectTypesFilter) -private: - /// List of object types - QStringList myTypes; -}; - -#endif \ No newline at end of file +#endif