blob: faf8560c45385c1760d31a1c3ef6e9c92d8141cd (
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
|
-- File: BRepSweep_Tool.cdl
-- Created: Tue Jun 8 17:01:08 1993
-- Author: Laurent BOURESCHE
-- <lbo@phobox>
---Copyright: Matra Datavision 1993
class Tool from BRepSweep -- as Tool from Sweep
---Purpose: Provides the indexation and type analysis services
-- required by the TopoDS generating Shape of BRepSweep.
--
uses
Shape from TopoDS,
IndexedMapOfShape from TopTools,
ShapeEnum from TopAbs,
Orientation from TopAbs
raises
OutOfRange from Standard
is
Create(aShape: Shape from TopoDS);
---Purpose: Initialize the tool with <aShape>. The IndexTool
-- must prepare an indexation for all the subshapes
-- of this shape.
NbShapes(me) returns Integer
---Purpose: Returns the number of subshapes in the shape.
is static;
Index(me; aShape : Shape from TopoDS) returns Integer
---Purpose: Returns the index of <aShape>.
is static;
Shape(me; anIndex : Integer from Standard) returns Shape from TopoDS
---Purpose: Returns the Shape at Index anIdex.
is static;
Type(me; aShape : Shape from TopoDS) returns ShapeEnum from TopAbs
---Purpose: Returns the type of <aShape>.
is static;
Orientation (me; aShape : Shape from TopoDS)
returns Orientation from TopAbs
---Purpose: Returns the Orientation of <aShape>.
is static;
SetOrientation (me;
aShape : in out Shape from TopoDS;
Or : Orientation from TopAbs)
---Purpose: Set the Orientation of <aShape> with Or.
is static;
fields
myMap : IndexedMapOfShape from TopTools;
end Tool from BRepSweep;
|