blob: 678263f1dd1d4d2111b3830a89df44cb06f82c9f (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
-- File: STEPConstruct_Tool.cdl
-- Created: Fri Sep 29 16:11:39 2000
-- Author: Andrey BETENEV
-- <abv@doomox.nnov.matra-dtv.fr>
---Copyright: Matra Datavision 2000
class Tool from STEPConstruct
---Purpose: Provides basic functionalities for tools which are intended
-- for encoding/decoding specific STEP constructs
--
-- It is initialized by WorkSession and allows easy access to
-- its fields and internal data such as Model, TP and FP
--
-- NOTE: Call to method Graph() with True (or for a first time,
-- if you have updated the model since last computation of model)
-- can take a time, so it is recommended to avoid creation of
-- this (and derived) tool multiple times
uses
WorkSession from XSControl,
InterfaceModel from Interface,
Graph from Interface,
HGraph from Interface,
FinderProcess from Transfer,
TransientProcess from Transfer
is
Create returns Tool;
---Purpose: Creates an empty tool
Create (WS: WorkSession from XSControl) returns Tool;
---Purpose: Creates a tool and loads it with worksession
SetWS (me: in out; WS: WorkSession from XSControl)
returns Boolean is protected;
---Purpose: Load worksession; returns True if succeeded
-- Returns False if either FinderProcess of TransientProcess
-- cannot be obtained or are Null
WS (me) returns WorkSession from XSControl;
---Purpose: Returns currently loaded WorkSession
---C++: return const &
---C++: inline
Model (me) returns InterfaceModel from Interface;
---Purpose: Returns current model (Null if not loaded)
---C++: inline
Graph (me; recompute: Boolean = Standard_False) returns Graph from Interface;
---Purpose: Returns current graph (recomputing if necessary)
---C++: return const &
---C++: inline
TransientProcess (me) returns TransientProcess from Transfer;
---Purpose: Returns TransientProcess (reading; Null if not loaded)
---C++: return const &
---C++: inline
FinderProcess (me) returns FinderProcess from Transfer;
---Purpose: Returns FinderProcess (writing; Null if not loaded)
---C++: return const &
---C++: inline
fields
myWS : WorkSession from XSControl;
myFinderProcess: FinderProcess from Transfer;
myTransientProcess: TransientProcess from Transfer;
myHGraph : HGraph from Interface; -- for optimization (no recomutings)
end Tool;
|