blob: e3df13e66a6980e466ee0618858f425ea164fbfe (
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
|
-- File: Sweep_Iterator.cdl
-- Created: Wed Jan 27 10:51:55 1993
-- Author: Philippe DAUTRY
-- <fid@phylox>
---Copyright: Matra Datavision 1993
deferred generic class Iterator from Sweep (TheShape as any)
---Purpose: This is a signature class describing iteration
-- services required by the Swept Primitives
-- algorithms from a Directing or a Generating Line.
-- This tool is used to iterate on the direct
-- sub-shapes of a Shape.
--
uses
Orientation from TopAbs
raises
NoMoreObject from Standard,
NoSuchObject from Standard
is
Init(me : in out; aShape: TheShape)
---Purpose: Resest the Iterator on sub-shapes of <aShape>.
is deferred;
More(me) returns Boolean
---Purpose: Returns True if there is a current sub-shape.
--
-- -C++: inline
is deferred;
Next(me : in out)
---Purpose: Moves to the next sub-shape.
raises
NoMoreObject from Standard
is deferred;
Value(me) returns TheShape
---Purpose: Returns the current sub-shape.
raises
NoSuchObject from Standard
-- -C++: return const &
-- -C++: inline
is deferred;
Orientation(me) returns Orientation from TopAbs
---Purpose: Returns the orientation of the current sub-shape.
raises
NoSuchObject from Standard
---C++: return const &
---C++: inline
is deferred;
end Iterator;
|