1 #include <IFSelect_SelectDeduct.ixx>
4 void IFSelect_SelectDeduct::SetInput (const Handle(IFSelect_Selection)& sel)
7 Handle(IFSelect_Selection) IFSelect_SelectDeduct::Input () const
10 Standard_Boolean IFSelect_SelectDeduct::HasInput () const
11 { return (!thesel.IsNull()); }
13 Standard_Boolean IFSelect_SelectDeduct::HasAlternate () const
14 { if (!thealt.IsNull()) return thealt->IsSet(); return Standard_False; }
16 Handle(IFSelect_SelectPointed)& IFSelect_SelectDeduct::Alternate ()
18 if (thealt.IsNull()) thealt = new IFSelect_SelectPointed;
23 Interface_EntityIterator IFSelect_SelectDeduct::InputResult
24 (const Interface_Graph& G) const
26 Interface_EntityIterator res;
27 if (!thealt.IsNull()) {
28 if (thealt->IsSet()) {
29 res = thealt->UniqueResult (G);
34 if (thesel.IsNull()) return res;
35 return thesel->UniqueResult(G);
38 void IFSelect_SelectDeduct::FillIterator
39 (IFSelect_SelectionIterator& iter) const
40 { iter.AddItem(thesel); }