Commit | Line | Data |
---|---|---|
733a0e55 S |
1 | -- File: Contap_TopolTool.cdl |
2 | -- Created: Wed May 12 09:16:05 1993 | |
3 | -- Author: Jacques GOUSSARD | |
4 | ---Copyright: Matra Datavision 1993 | |
7fd59977 | 5 | |
6 | ||
7 | deferred generic class TopolTool from Contap | |
8 | ( TheVertex as any; | |
9 | TheArc as any | |
10 | ) | |
11 | ||
12 | inherits TShared from MMgt | |
13 | ||
14 | ---Purpose: Template class for an iterator the restriction of | |
15 | -- a surface. | |
16 | ||
17 | uses Orientation from TopAbs, | |
18 | State from TopAbs, | |
19 | Pnt2d from gp | |
20 | ||
21 | ||
22 | is | |
23 | ||
24 | -- Arc iterator | |
25 | ||
26 | Init(me: mutable) | |
27 | ||
28 | ; | |
29 | ||
30 | ||
31 | More(me: mutable) | |
32 | ||
33 | returns Boolean from Standard | |
34 | ; | |
35 | ||
36 | ||
37 | Value(me: mutable) | |
38 | ||
39 | returns any TheArc | |
40 | ; | |
41 | ||
42 | ||
43 | Next(me: mutable) | |
44 | ||
45 | ; | |
46 | ||
47 | ||
48 | -- Iterator on the vertex of an arc of restriction | |
49 | ||
50 | ||
51 | Initialize(me: mutable; A:TheArc); | |
52 | ||
53 | ||
54 | InitVertexIterator(me: mutable) | |
55 | ||
56 | ; | |
57 | ||
58 | ||
59 | MoreVertex(me: mutable) | |
60 | ||
61 | returns Boolean from Standard | |
62 | ; | |
63 | ||
64 | ||
65 | ||
66 | Vertex(me: mutable) | |
67 | returns any TheVertex | |
68 | ; | |
69 | ||
70 | ||
71 | NextVertex(me: mutable) | |
72 | ||
73 | ; | |
74 | ||
75 | ||
76 | Orientation(me: mutable; A: TheArc) | |
77 | ||
78 | returns Orientation from TopAbs; | |
79 | ||
80 | ||
81 | Orientation(me: mutable; V: TheVertex) | |
82 | ||
83 | returns Orientation from TopAbs; | |
84 | ||
85 | ||
86 | Identical(me: mutable; V1,V2: TheVertex) | |
87 | ||
88 | ---Purpose: Returns True if the vertices V1 and V2 are identical. | |
89 | -- This method does not take the orientation of the | |
90 | -- vertices in account. | |
91 | ||
92 | returns Boolean from Standard; | |
93 | ||
94 | ||
95 | Classify(me: mutable; P: Pnt2d from gp; Tol: Real from Standard) | |
96 | ||
97 | returns State from TopAbs; | |
98 | ||
99 | ||
100 | end TopolTool; | |
101 |