mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
31 lines
985 B
C++
Executable File
31 lines
985 B
C++
Executable File
#include <IGESSelect_SelectFromSingleView.ixx>
|
|
#include <IGESData_IGESEntity.hxx>
|
|
#include <Interface_Macros.hxx>
|
|
|
|
|
|
|
|
IGESSelect_SelectFromSingleView::IGESSelect_SelectFromSingleView () { }
|
|
|
|
|
|
Interface_EntityIterator IGESSelect_SelectFromSingleView::RootResult
|
|
(const Interface_Graph& G) const
|
|
{
|
|
Interface_EntityIterator list;
|
|
Interface_EntityIterator views = InputResult(G);
|
|
if (views.NbEntities() == 0) return list;
|
|
Standard_Integer nb = G.Size();
|
|
Standard_Integer i; // svv Jan11 2000 : porting on DEC
|
|
for (i = 1; i <= nb; i ++) {
|
|
// if (!G.IsPresent(i)) continue;
|
|
DeclareAndCast(IGESData_IGESEntity,igesent,G.Entity(i));
|
|
if (igesent.IsNull()) continue;
|
|
Standard_Integer nv = G.EntityNumber (igesent->View());
|
|
if (nv > 0 && nv <= nb) list.GetOneItem(igesent);
|
|
}
|
|
return list;
|
|
}
|
|
|
|
|
|
TCollection_AsciiString IGESSelect_SelectFromSingleView::Label () const
|
|
{ return TCollection_AsciiString ("Entities attached to a single View"); }
|