1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
15 #include <IFSelect_Functions.hxx>
16 #include <IFSelect_SessionPilot.hxx>
17 #include <IFSelect_ShareOut.hxx>
18 #include <IFSelect_WorkSession.hxx>
19 #include <IGESData_IGESEntity.hxx>
20 #include <IGESData_IGESModel.hxx>
21 #include <IGESSelect.hxx>
22 #include <IGESSelect_Activator.hxx>
23 #include <IGESSelect_WorkLibrary.hxx>
24 #include <Interface_Graph.hxx>
25 #include <Interface_Macros.hxx>
27 void IGESSelect::Run ()
29 // Handle(IFSelect_BasicActivator) Activator = new IFSelect_BasicActivator;
30 IFSelect_Functions::Init();
31 Handle(IFSelect_SessionPilot) pilot = new IFSelect_SessionPilot("XSTEP-IGES>");
32 Handle(IGESSelect_Activator) igesact = new IGESSelect_Activator;
33 pilot->SetSession (new IFSelect_WorkSession ( ));
34 pilot->SetLibrary (new IGESSelect_WorkLibrary);
40 Standard_Integer IGESSelect::WhatIges
41 (const Handle(IGESData_IGESEntity)& ent, const Interface_Graph& G,
42 Handle(IGESData_IGESEntity)& /* sup */, Standard_Integer& /* index */)
44 Handle(IGESData_IGESEntity) igesent = ent;
45 if (igesent.IsNull()) return Standard_False;
46 // Standard_Integer igt = igesent->TypeNumber();
47 DeclareAndCast(IGESData_IGESModel,model,G.Model());
48 if (igesent.IsNull() || model.IsNull()) return 0;
50 // Plane : de View ? de SingleParent ? sinon cf TrimmedSurface & cie