summaryrefslogtreecommitdiff
path: root/src/IFSelect/IFSelect_DispGlobal.cxx
blob: 90efae8f24cd093b0870215348a9d4ea6ea6b486 (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
#include <IFSelect_DispGlobal.ixx>
#include <IFSelect_Selection.hxx>
#include <Interface_EntityIterator.hxx>

// Genere un seul paquet avec la sortie finale


    IFSelect_DispGlobal::IFSelect_DispGlobal ()    {  }

    TCollection_AsciiString  IFSelect_DispGlobal::Label () const
{  return TCollection_AsciiString ("One File for All Input");  }

    Standard_Boolean  IFSelect_DispGlobal::LimitedMax
  (const Standard_Integer /* nbent */, Standard_Integer& pcount) const 
      {  pcount = 1;  return Standard_True;  }

    Standard_Boolean  IFSelect_DispGlobal::PacketsCount
  (const Interface_Graph& /* G */, Standard_Integer& pcount) const 
      {  pcount = 1;  return Standard_True;  }

// 1 packet ( a partir de UniqueResult)
      void IFSelect_DispGlobal::Packets
  (const Interface_Graph& G, IFGraph_SubPartsIterator& packs) const 
{
  packs.AddPart();
  packs.GetFromIter(FinalSelection()->UniqueResult(G));
}