blob: db70600d104cc50edc26a4effcc80aa7c152fca6 (
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
|
-- File: Sweep_NumShapeTool.cdl
-- Created: Wed Jun 2 12:31:51 1993
-- Author: Laurent BOURESCHE
-- <lbo@phylox>
---Copyright: Matra Datavision 1993
class NumShapeTool from Sweep -- as Tool from Sweep
---Purpose: This class provides the indexation and type analysis
-- services required by the NumShape Directing Shapes of
-- Swept Primitives.
--
uses
NumShape from Sweep,
ShapeEnum from TopAbs,
Orientation from TopAbs
raises
OutOfRange from Standard
is
Create(aShape: NumShape from Sweep);
---Purpose: Create a new NumShapeTool with <aShape>. The Tool
-- 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 : NumShape from Sweep) returns Integer
---Purpose: Returns the index of <aShape>.
is static;
Shape(me; anIndex : Integer from Standard) returns NumShape from Sweep
---Purpose: Returns the Shape at index anIndex
is static;
Type(me; aShape : NumShape from Sweep) returns ShapeEnum from TopAbs
---Purpose: Returns the type of <aShape>.
is static;
Orientation(me; aShape : NumShape from Sweep)
returns Orientation from TopAbs
---Purpose: Returns the orientation of <aShape>.
is static;
HasFirstVertex(me) returns Boolean from Standard
---Purpose: Returns true if there is a First Vertex in the Shape.
is static;
HasLastVertex(me) returns Boolean from Standard
---Purpose: Returns true if there is a Last Vertex in the Shape.
is static;
FirstVertex(me) returns NumShape from Sweep
---Purpose: Returns the first vertex.
is static;
LastVertex(me) returns NumShape from Sweep
---Purpose: Returns the last vertex.
is static;
fields
myNumShape : NumShape from Sweep;
end NumShapeTool from Sweep;
|