b311480e |
1 | -- Created on: 2000-10-27 |
2 | -- Created by: Peter KURNEV |
3 | -- Copyright (c) 2000-2012 OPEN CASCADE SAS |
4 | -- |
5 | -- The content of this file is subject to the Open CASCADE Technology Public |
6 | -- License Version 6.5 (the "License"). You may not use the content of this file |
7 | -- except in compliance with the License. Please obtain a copy of the License |
8 | -- at http://www.opencascade.org and read it completely before using this file. |
9 | -- |
10 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | -- |
13 | -- The Original Code and all software distributed under the License is |
14 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | -- Initial Developer hereby disclaims all such warranties, including without |
16 | -- limitation, any warranties of merchantability, fitness for a particular |
17 | -- purpose or non-infringement. Please see the License for the specific terms |
18 | -- and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | |
21 | |
22 | class CommonPrt from IntTools |
23 | |
24 | ---Purpose: The class is to describe a common part |
25 | -- between two edges in 3-d space. |
26 | |
27 | uses |
28 | Edge from TopoDS, |
29 | ShapeEnum from TopAbs, |
30 | Range from IntTools, |
31 | SequenceOfRanges from IntTools, |
32 | Pnt from gp |
33 | is |
34 | Create |
35 | returns CommonPrt from IntTools; |
36 | ---Purpose: |
37 | --- Empty constructor |
38 | --- |
39 | |
40 | Create (aCPrt:CommonPrt from IntTools) |
41 | returns CommonPrt from IntTools; |
42 | ---Purpose: |
43 | --- Copy constructor |
44 | --- |
45 | |
46 | Assign (me:out; Other : CommonPrt from IntTools) |
47 | returns CommonPrt from IntTools; |
48 | ---C++: alias operator = |
49 | ---C++: return & |
50 | |
51 | SetEdge1 (me:out; anE:Edge from TopoDS); |
52 | ---Purpose: |
53 | --- Sets the first edge. |
54 | --- |
55 | |
56 | SetEdge2 (me:out; anE:Edge from TopoDS); |
57 | ---Purpose: |
58 | --- Sets the second edge. |
59 | --- |
60 | |
61 | SetType (me:out; aType:ShapeEnum from TopAbs); |
62 | ---Purpose: |
63 | --- Sets the type of the common part |
64 | --- Vertex or Edge |
65 | --- |
66 | |
67 | SetRange1 (me:out; aR: Range from IntTools); |
68 | ---Purpose: |
69 | --- Sets the range of first edge. |
70 | --- |
71 | |
72 | SetRange1 (me:out; tf,tl: Real from Standard); |
73 | ---Purpose: |
74 | --- Sets the range of first edge. |
75 | --- |
76 | |
77 | AppendRange2 (me:out; aR: Range from IntTools); |
78 | ---Purpose: |
79 | --- Appends the range of second edge. |
80 | --- |
81 | |
82 | AppendRange2 (me:out; tf,tl: Real from Standard); |
83 | ---Purpose: |
84 | --- Appends the range of second edge. |
85 | --- |
86 | |
87 | SetVertexParameter1( me:out; tV: Real from Standard); |
88 | ---Purpose: |
89 | --- Sets a parameter of first vertex |
90 | --- |
91 | |
92 | SetVertexParameter2( me:out; tV: Real from Standard); |
93 | ---Purpose: |
94 | --- Sets a parameter of second vertex |
95 | --- |
96 | |
97 | Edge1 (me) |
98 | returns Edge from TopoDS; |
99 | ---C++: return const& |
100 | ---Purpose: |
101 | --- Returns the first edge. |
102 | --- |
103 | |
104 | Edge2 (me) |
105 | returns Edge from TopoDS; |
106 | ---C++: return const& |
107 | ---Purpose: |
108 | --- Returns the second edge |
109 | --- |
110 | |
111 | Type (me) |
112 | returns ShapeEnum from TopAbs; |
113 | ---Purpose: |
114 | --- Returns the type of the common part |
115 | --- |
116 | |
117 | Range1 (me) |
118 | returns Range from IntTools; |
119 | ---C++: return const& |
120 | ---Purpose: |
121 | --- Returns the range of first edge |
122 | --- |
123 | |
124 | Range1 (me; tf,tl:out Real from Standard); |
125 | ---Purpose: |
126 | --- Returns the range of first edge. |
127 | --- |
128 | |
129 | Ranges2 (me) |
130 | returns SequenceOfRanges from IntTools; |
131 | ---C++: return const& |
132 | ---Purpose: |
133 | --- Returns the ranges of second edge. |
134 | --- |
135 | |
136 | ChangeRanges2 (me:out) |
137 | returns SequenceOfRanges from IntTools; |
138 | ---C++: return & |
139 | ---Purpose: |
140 | --- Returns the ranges of second edge. |
141 | --- |
142 | |
143 | VertexParameter1(me) |
144 | returns Real from Standard; |
145 | ---Purpose: |
146 | --- Returns parameter of first vertex |
147 | --- |
148 | |
149 | VertexParameter2(me) |
150 | returns Real from Standard; |
151 | ---Purpose: |
152 | --- Returns parameter of second vertex |
153 | --- |
154 | |
155 | Copy (me; anOther:out CommonPrt from IntTools); |
156 | ---Purpose: |
157 | --- Copies me to anOther |
158 | --- |
159 | |
160 | AllNullFlag(me) |
161 | returns Boolean from Standard; |
162 | ---Purpose: |
163 | --- Modifier |
164 | --- |
165 | |
166 | SetAllNullFlag(me:out; |
167 | aFlag:Boolean from Standard); |
168 | ---Purpose: |
169 | --- Selector |
170 | --- |
171 | |
172 | -- |
173 | SetBoundingPoints(me:out; |
174 | aP1: Pnt from gp; |
175 | aP2: Pnt from gp); |
176 | ---Purpose: |
177 | --- Modifier |
178 | --- |
179 | |
180 | BoundingPoints(me; |
181 | aP1:out Pnt from gp; |
182 | aP2:out Pnt from gp); |
183 | ---Purpose: |
184 | --- Selector |
185 | --- |
186 | -- |
187 | fields |
188 | myEdge1 : Edge from TopoDS; |
189 | myEdge2 : Edge from TopoDS; |
190 | myType : ShapeEnum from TopAbs; |
191 | myRange1 : Range from IntTools; |
192 | myVertPar1 : Real from Standard; |
193 | myVertPar2 : Real from Standard; |
194 | myRanges2: SequenceOfRanges from IntTools; |
195 | |
196 | myAllNullFlag: Boolean from Standard; |
197 | -- |
198 | myPnt1 : Pnt from gp; |
199 | myPnt2 : Pnt from gp; |
200 | -- |
201 | |
202 | end CommonPrt; |