summaryrefslogtreecommitdiff
path: root/src/SelectMgr/SelectMgr_OrFilter.cxx
blob: 185c396b7c12e84d6a551d777aab2f4d73f0e3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <SelectMgr_OrFilter.ixx>

#include <SelectMgr_Filter.hxx>
#include <SelectMgr_ListIteratorOfListOfFilter.hxx>
 SelectMgr_OrFilter::SelectMgr_OrFilter()
{
}


Standard_Boolean SelectMgr_OrFilter::IsOk(const Handle(SelectMgr_EntityOwner)& anobj) const 
{

  if(myFilters.IsEmpty())
    return Standard_True;
  SelectMgr_ListIteratorOfListOfFilter it(myFilters);
  for ( ; it.More();it.Next())
    if(it.Value()->IsOk(anobj))
      return Standard_True;
  return Standard_False;
}