7fd59977 |
1 | -- File: HatchGen_IntersectionPoint.cdl |
2 | -- Created: Fri Oct 29 15:21:47 1993 |
3 | -- Author: Jean Marc LACHAUME |
4 | -- <jml@phobox> |
5 | -- Copyright: Matra Datavision 1993 |
6 | |
7 | deferred class IntersectionPoint from HatchGen |
8 | |
9 | uses |
10 | Orientation from TopAbs , |
11 | State from TopAbs , |
12 | IntersectionPoint from IntRes2d |
13 | |
14 | is |
15 | |
16 | |
17 | Initialize |
18 | |
19 | ---Purpose: Creates an empty intersection point. |
20 | |
21 | ---Category: IntersectionPoint |
22 | |
23 | is protected ; |
24 | |
25 | |
26 | SetIndex (me : in out ; Index : Integer from Standard) |
27 | |
28 | ---Purpose: Sets the index of the supporting curve. |
29 | |
30 | ---Category: IntersectionPoint |
31 | |
32 | is static ; |
33 | |
34 | |
35 | Index (me) |
36 | |
37 | ---Purpose: Returns the index of the supporting curve. |
38 | |
39 | ---Category: IntersectionPoint |
40 | |
41 | returns Integer from Standard |
42 | is static ; |
43 | |
44 | |
45 | SetParameter (me : in out ; Parameter : Real from Standard) |
46 | |
47 | ---Purpose: Sets the parameter on the curve. |
48 | |
49 | ---Category: IntersectionPoint |
50 | |
51 | is static ; |
52 | |
53 | |
54 | Parameter (me) |
55 | |
56 | ---Purpose: Returns the parameter on the curve. |
57 | |
58 | ---Category: IntersectionPoint |
59 | |
60 | returns Real from Standard |
61 | is static ; |
62 | |
63 | |
64 | SetPosition (me : in out ; Position : Orientation from TopAbs) |
65 | |
66 | ---Purpose: Sets the position of the point on the curve. |
67 | |
68 | ---Category: IntersectionPoint |
69 | |
70 | is static ; |
71 | |
72 | |
73 | Position (me) |
74 | |
75 | ---Purpose: Returns the position of the point on the curve. |
76 | |
77 | ---Category: IntersectionPoint |
78 | |
79 | returns Orientation from TopAbs |
80 | is static ; |
81 | |
82 | |
83 | SetStateBefore (me : in out ; State : State from TopAbs) |
84 | |
85 | ---Purpose: Sets the transition state before the intersection. |
86 | |
87 | ---Category: IntersectionPoint |
88 | |
89 | is static ; |
90 | |
91 | |
92 | StateBefore (me) |
93 | |
94 | ---Purpose: Returns the transition state before the intersection. |
95 | |
96 | ---Category: IntersectionPoint |
97 | |
98 | returns State from TopAbs |
99 | is static ; |
100 | |
101 | |
102 | SetStateAfter (me : in out ; State : State from TopAbs) |
103 | |
104 | ---Purpose: Sets the transition state after the intersection. |
105 | |
106 | ---Category: IntersectionPoint |
107 | |
108 | is static ; |
109 | |
110 | |
111 | StateAfter (me) |
112 | |
113 | ---Purpose: Returns the transition state after of the intersection. |
114 | |
115 | ---Category: IntersectionPoint |
116 | |
117 | returns State from TopAbs |
118 | is static ; |
119 | |
120 | |
121 | SetSegmentBeginning (me : in out ; State : Boolean from Standard = Standard_True) |
122 | |
123 | ---Purpose: Sets the flag that the point is the beginning of a segment. |
124 | |
125 | ---Category: IntersectionPoint |
126 | |
127 | is static ; |
128 | |
129 | |
130 | SegmentBeginning (me) |
131 | |
132 | ---Purpose: Returns the flag that the point is the beginning of a segment. |
133 | |
134 | ---Category: IntersectionPoint |
135 | |
136 | returns Boolean from Standard |
137 | is static ; |
138 | |
139 | |
140 | SetSegmentEnd (me : in out ; State : Boolean from Standard = Standard_True) |
141 | |
142 | ---Purpose: Sets the flag that the point is the end of a segment. |
143 | |
144 | ---Category: IntersectionPoint |
145 | |
146 | is static ; |
147 | |
148 | |
149 | SegmentEnd (me) |
150 | |
151 | ---Purpose: Returns the flag that the point is the end of a segment. |
152 | |
153 | ---Category: IntersectionPoint |
154 | |
155 | returns Boolean from Standard |
156 | is static ; |
157 | |
158 | |
159 | Dump (me; Index : Integer from Standard = 0) |
160 | |
161 | ---Purpose: Dump of the point on element. |
162 | |
163 | is deferred ; |
164 | |
165 | |
166 | fields |
167 | |
168 | myIndex : Integer from Standard is protected ; |
169 | myParam : Real from Standard is protected ; |
170 | myPosit : Orientation from TopAbs is protected ; |
171 | myBefore : State from TopAbs is protected ; |
172 | myAfter : State from TopAbs is protected ; |
173 | mySegBeg : Boolean from Standard is protected ; |
174 | mySegEnd : Boolean from Standard is protected ; |
175 | |
176 | end IntersectionPoint from HatchGen ; |