1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_Filter.h
4 // Created: 10 Dec 2014
5 // Author: Natalia ERMOLAEVA
7 #ifndef ModuleBase_Filter_H
8 #define ModuleBase_Filter_H
10 #include "ModuleBase.h"
12 #include <SelectMgr_Filter.hxx>
15 * This object is assigned by the name
16 * in the XML file to the specific attribute or to the whole feature.
17 * If isOK method of the filter returns "false", it is signalized in user interface
18 * that the processed entity should not be selected.
19 * Filterss must be registered in the filters factory to be
20 * correctly identified by the XML string-ID.
22 DEFINE_STANDARD_HANDLE(ModuleBase_Filter, SelectMgr_Filter);
23 class ModuleBase_Filter: public SelectMgr_Filter
26 Standard_EXPORT ModuleBase_Filter(): SelectMgr_Filter() {}
28 Standard_EXPORT virtual Standard_Boolean IsOk(const Handle(SelectMgr_EntityOwner)& theOwner) const;
30 DEFINE_STANDARD_RTTI(ModuleBase_Filter)
33 #endif //ModuleBase_Filter