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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
-- File: STEPConstruct.cdl
-- Created: Wed Nov 17 14:13:03 1999
-- Author: Andrey BETENEV
-- <abv@doomox.nnov.matra-dtv.fr>
---Copyright: Matra Datavision 1999
package STEPConstruct
---Purpose: Defines tools for creation and investigation STEP constructs
-- used for representing various kinds of data, such as product and
-- assembly structure, unit contexts, associated information
-- The creation of these structures is made according to currently
-- active schema (AP203 or AP214 CD2 or DIS)
-- This is taken from parameter write.step.schema
uses
gp,
Quantity,
TCollection,
TColStd,
TopTools,
TopLoc,
TopoDS,
Interface,
Transfer,
XSControl,
StepData,
StepBasic,
StepGeom,
StepRepr,
StepShape,
StepVisual,
StepAP203,
StepAP214
is
class Tool;
---Purpose: Basic class providing general features
class UnitContext;
---Purpose: Create and investigate context of units and uncertanties
class Part;
---Purpose: Create and investigate data associated with parts (product etc.)
class Assembly;
---Purpose: Create and check assembly data structures
class Styles;
---Purpose: Create and investigate STEP constructs for styles (mostly colors)
class ValidationProps;
---Purpose: Create and investigate STEP constructs for validation properties
class ExternRefs;
---Purpose: Work with references to external documents
class AP203Context;
---Purpose: maintains context specific to AP203
class ContextTool;
---Purpose: Maintains global context tool for writing
--- skl 15.01.2004
class DataMapOfAsciiStringTransient instantiates
DataMap from TCollection (AsciiString from TCollection,
Transient from Standard,
AsciiString from TCollection);
class PointHasher;
class DataMapOfPointTransient instantiates
DataMap from TCollection (Pnt from gp,
Transient,
PointHasher from STEPConstruct);
FindEntity (FinderProcess: FinderProcess from Transfer; Shape: Shape from TopoDS)
returns RepresentationItem from StepRepr;
---Purpose: Returns STEP entity of the (sub)type of RepresentationItem
-- which is a result of the tranalation of the Shape, or Null if
-- no result is recorded
FindEntity (FinderProcess: FinderProcess from Transfer; Shape: Shape from TopoDS;
Loc: out Location from TopLoc)
returns RepresentationItem from StepRepr;
---Purpose: The same as above, but in the case if item not found, repeats
-- search on the same shape without location. The Loc corresponds to the
-- location with which result is found (either location of the Shape,
-- or Null)
FindShape (TransientProcess: TransientProcess from Transfer; item: RepresentationItem from StepRepr)
returns Shape from TopoDS;
---Purpose: Returns Shape resulting from given STEP entity (Null if not mapped)
FindCDSR (ComponentBinder: Binder from Transfer;
AssemblySDR: ShapeDefinitionRepresentation from StepShape;
ComponentCDSR: out ContextDependentShapeRepresentation from StepShape)
returns Boolean from Standard;
---Purpose: Find CDSR correcponding to the component in the specified assembly
end STEPConstruct;
|