973c2be1 |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
b311480e |
13 | |
42cf5bc1 |
14 | |
7fd59977 |
15 | #include <IFSelect_Functions.hxx> |
16 | #include <IFSelect_SessionPilot.hxx> |
7fd59977 |
17 | #include <IFSelect_ShareOut.hxx> |
42cf5bc1 |
18 | #include <IFSelect_WorkSession.hxx> |
7fd59977 |
19 | #include <IGESData_IGESEntity.hxx> |
20 | #include <IGESData_IGESModel.hxx> |
42cf5bc1 |
21 | #include <IGESSelect.hxx> |
22 | #include <IGESSelect_Activator.hxx> |
23 | #include <IGESSelect_WorkLibrary.hxx> |
24 | #include <Interface_Graph.hxx> |
7fd59977 |
25 | #include <Interface_Macros.hxx> |
26 | |
7fd59977 |
27 | void IGESSelect::Run () |
28 | { |
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); |
35 | |
36 | pilot->ReadScript(); |
37 | } |
38 | |
39 | |
40 | Standard_Integer IGESSelect::WhatIges |
41 | (const Handle(IGESData_IGESEntity)& ent, const Interface_Graph& G, |
42 | Handle(IGESData_IGESEntity)& /* sup */, Standard_Integer& /* index */) |
43 | { |
a9dde4a3 |
44 | Handle(IGESData_IGESEntity) igesent = ent; |
7fd59977 |
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; |
49 | |
50 | // Plane : de View ? de SingleParent ? sinon cf TrimmedSurface & cie |
51 | |
52 | |
53 | |
54 | return 0; |
55 | } |