summaryrefslogtreecommitdiff
path: root/src/IFSelect/IFSelect_SelectControl.cxx
blob: f270e76703ef7aedeff980bcdbfcea8aac5a49fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <IFSelect_SelectControl.ixx>



    Handle(IFSelect_Selection)  IFSelect_SelectControl::MainInput () const 
      {  return themain;  }

    Handle(IFSelect_Selection)  IFSelect_SelectControl::SecondInput () const
      {  return thesecond;  }

    Standard_Boolean  IFSelect_SelectControl::HasSecondInput () const
      {  return (!thesecond.IsNull());  }

    void  IFSelect_SelectControl::SetMainInput
  (const Handle(IFSelect_Selection)& sel)
      {  themain = sel;  }

    void  IFSelect_SelectControl::SetSecondInput
  (const Handle(IFSelect_Selection)& sel)
      {  thesecond = sel;  }


    void  IFSelect_SelectControl::FillIterator
  (IFSelect_SelectionIterator& iter) const 
{
  iter.AddItem(themain);
  if (!thesecond.IsNull()) iter.AddItem(thesecond);
}