b311480e |
1 | // Created on: 2000-09-29 |
2 | // Created by: data exchange team |
973c2be1 |
3 | // Copyright (c) 2000-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | #include <Interface_InterfaceModel.hxx> |
17 | #include <Interface_Graph.hxx> |
18 | #include <Interface_HGraph.hxx> |
19 | #include <Transfer_TransientProcess.hxx> |
20 | #include <Transfer_FinderProcess.hxx> |
21 | #include <XSControl_WorkSession.hxx> |
22 | |
23 | //======================================================================= |
24 | //function : WS |
25 | //purpose : |
26 | //======================================================================= |
27 | |
28 | inline const Handle(XSControl_WorkSession) &STEPConstruct_Tool::WS() const |
29 | { |
30 | return myWS; |
31 | } |
32 | |
33 | //======================================================================= |
34 | //function : Model |
35 | //purpose : |
36 | //======================================================================= |
37 | |
38 | inline Handle(Interface_InterfaceModel) STEPConstruct_Tool::Model() const |
39 | { |
40 | return myWS->Model(); |
41 | } |
42 | |
43 | //======================================================================= |
44 | //function : Graph |
45 | //purpose : |
46 | //======================================================================= |
47 | |
48 | inline const Interface_Graph &STEPConstruct_Tool::Graph (const Standard_Boolean recompute) const |
49 | { |
50 | // Note: myWS->Graph() recomputes graph each time! |
51 | return recompute ? myWS->Graph() : myHGraph->Graph(); |
52 | } |
53 | |
54 | //======================================================================= |
55 | //function : TransientProcess |
56 | //purpose : |
57 | //======================================================================= |
58 | |
59 | inline const Handle(Transfer_TransientProcess) &STEPConstruct_Tool::TransientProcess() const |
60 | { |
61 | return myTransientProcess; |
62 | } |
63 | |
64 | //======================================================================= |
65 | //function : FinderProcess |
66 | //purpose : |
67 | //======================================================================= |
68 | |
69 | inline const Handle(Transfer_FinderProcess) &STEPConstruct_Tool::FinderProcess() const |
70 | { |
71 | return myFinderProcess; |
72 | } |