blob: bd565c244e562fae46497fe67cff54a16cf2a147 (
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
29
30
|
#include <IGESSelect_SelectDrawingFrom.ixx>
#include <IGESSelect_ViewSorter.hxx>
#include <IGESData_IGESModel.hxx>
#include <Interface_Macros.hxx>
IGESSelect_SelectDrawingFrom::IGESSelect_SelectDrawingFrom () { }
Standard_Boolean IGESSelect_SelectDrawingFrom::HasUniqueResult () const
{ return Standard_True; }
Interface_EntityIterator IGESSelect_SelectDrawingFrom::RootResult
(const Interface_Graph& G) const
{
Handle(IGESSelect_ViewSorter) sorter = new IGESSelect_ViewSorter;
sorter->SetModel (GetCasted(IGESData_IGESModel,G.Model()));
sorter->Clear();
sorter->AddList (InputResult(G).Content());
sorter->SortDrawings(G);
Interface_EntityIterator list;
Standard_Integer nb = sorter->NbSets(Standard_True);
for (Standard_Integer i = 1; i <= nb; i ++)
list.GetOneItem(sorter->SetItem(i,Standard_True));
return list;
}
TCollection_AsciiString IGESSelect_SelectDrawingFrom::Label () const
{ return TCollection_AsciiString ("Drawings attached"); }
|