0022165: IGES transaltor does not produce any shape
[occt.git] / src / IFSelect / IFSelect_SelectDeduct.cxx
1 #include <IFSelect_SelectDeduct.ixx>
2
3
4     void  IFSelect_SelectDeduct::SetInput (const Handle(IFSelect_Selection)& sel)
5       {  thesel = sel;  }
6
7     Handle(IFSelect_Selection)  IFSelect_SelectDeduct::Input () const 
8       {  return thesel;  }
9
10     Standard_Boolean  IFSelect_SelectDeduct::HasInput () const 
11       {  return (!thesel.IsNull());  }
12
13     Standard_Boolean  IFSelect_SelectDeduct::HasAlternate () const 
14 {  if (!thealt.IsNull()) return thealt->IsSet();  return Standard_False;  }
15
16     Handle(IFSelect_SelectPointed)&  IFSelect_SelectDeduct::Alternate ()
17 {
18   if (thealt.IsNull()) thealt = new IFSelect_SelectPointed;
19   return thealt;
20 }
21
22
23     Interface_EntityIterator  IFSelect_SelectDeduct::InputResult
24   (const Interface_Graph& G) const
25 {
26   Interface_EntityIterator res;
27   if (!thealt.IsNull()) {
28     if (thealt->IsSet()) {
29       res = thealt->UniqueResult (G);
30       thealt->Clear();
31       return res;
32     }
33   }
34   if (thesel.IsNull()) return res;
35   return  thesel->UniqueResult(G);
36 }
37
38     void  IFSelect_SelectDeduct::FillIterator
39   (IFSelect_SelectionIterator& iter) const 
40       {  iter.AddItem(thesel);  }