Salome HOME
Merge branch 'Dev_0.6.1' of newgeom:newgeom into Dev_0.6.1
[modules/shaper.git] / src / ModuleBase / ModuleBase_Filter.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_Filter.h
4 // Created:     10 Dec 2014
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef ModuleBase_Filter_H
8 #define ModuleBase_Filter_H
9
10 #include "ModuleBase.h"
11
12 #include <SelectMgr_Filter.hxx>
13
14 /**
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.
21  */
22 DEFINE_STANDARD_HANDLE(ModuleBase_Filter, SelectMgr_Filter);
23 class ModuleBase_Filter: public SelectMgr_Filter
24 {
25 public:
26   Standard_EXPORT ModuleBase_Filter(): SelectMgr_Filter() {}
27
28   Standard_EXPORT virtual Standard_Boolean IsOk(const Handle(SelectMgr_EntityOwner)& theOwner) const;
29
30   DEFINE_STANDARD_RTTI(ModuleBase_Filter)
31 };
32
33 #endif //ModuleBase_Filter