b311480e |
1 | -- Created on: 1995-04-24 |
2 | -- Created by: Modelistation |
3 | -- Copyright (c) 1995-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | -- |
6 | -- The content of this file is subject to the Open CASCADE Technology Public |
7 | -- License Version 6.5 (the "License"). You may not use the content of this file |
8 | -- except in compliance with the License. Please obtain a copy of the License |
9 | -- at http://www.opencascade.org and read it completely before using this file. |
10 | -- |
11 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | -- |
14 | -- The Original Code and all software distributed under the License is |
15 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | -- Initial Developer hereby disclaims all such warranties, including without |
17 | -- limitation, any warranties of merchantability, fitness for a particular |
18 | -- purpose or non-infringement. Please see the License for the specific terms |
19 | -- and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | class FilSpine from ChFiDS inherits Spine from ChFiDS |
23 | |
24 | ---Purpose: Provides data specific to the fillets - |
25 | -- vector or rule of evolution (C2). |
26 | -- |
27 | |
28 | |
29 | uses |
30 | HArray1OfReal from TColStd, |
31 | HElSpine from ChFiDS, |
32 | Function from Law, |
33 | Laws from Law, |
34 | Composite from Law, |
35 | Edge from TopoDS, |
36 | Vertex from TopoDS, |
37 | SequenceOfXY from TColgp, |
38 | XY from gp |
39 | |
40 | is |
41 | |
42 | Create returns mutable FilSpine from ChFiDS; |
43 | |
44 | Create(Tol : Real from Standard) returns mutable FilSpine from ChFiDS; |
45 | |
46 | Reset(me : mutable; AllData : Boolean from Standard = Standard_False) |
47 | is redefined; |
48 | |
49 | ------------------------------------------------ |
50 | -- Update selectif du rayon par edges ou vertex. |
51 | ------------------------------------------------ |
52 | |
53 | SetRadius(me : mutable; |
54 | Radius : Real from Standard; |
55 | E : Edge from TopoDS) |
56 | ---Purpose: initializes the constant vector on edge E. |
57 | is static; |
58 | |
59 | UnSetRadius(me : mutable; |
60 | E : Edge from TopoDS) |
61 | ---Purpose: resets the constant vector on edge E. |
62 | is static; |
63 | |
64 | SetRadius(me : mutable; |
65 | Radius : Real from Standard; |
66 | V : Vertex from TopoDS) |
67 | ---Purpose: initializes the vector on Vertex V. |
68 | is static; |
69 | |
70 | UnSetRadius(me : mutable; |
71 | V : Vertex from TopoDS) |
72 | ---Purpose: resets the vector on Vertex V. |
73 | is static; |
74 | |
75 | SetRadius(me : mutable; |
76 | UandR : XY from gp; |
77 | IinC : Integer from Standard) |
78 | ---Purpose: initializes the vector on the point of parameter W. |
79 | is static; |
80 | |
81 | SetRadius(me : mutable;Radius : Real from Standard) |
82 | ---Purpose: initializes the constant vector on all spine. |
83 | is static; |
84 | |
85 | SetRadius(me : mutable; |
86 | C : Function from Law; |
87 | IinC : Integer from Standard) |
88 | ---Purpose: initializes the rule of evolution on all spine. |
89 | is static; |
90 | |
91 | IsConstant(me) |
92 | returns Boolean from Standard |
93 | ---Purpose: returns true if the radius is constant |
94 | -- all along the spine. |
95 | is static; |
96 | |
97 | IsConstant(me; IE : Integer from Standard) |
98 | returns Boolean from Standard |
99 | ---Purpose: returns true if the radius is constant |
100 | -- all along the edge E. |
101 | is static; |
102 | |
103 | Radius(me) returns Real from Standard; |
104 | ---Purpose: returns the radius if the fillet is constant |
105 | -- all along the spine. |
106 | |
107 | Radius(me; IE : Integer from Standard) |
108 | returns Real from Standard; |
109 | ---Purpose: returns the radius if the fillet is constant |
110 | -- all along the edge E. |
111 | |
112 | Radius(me; E : Edge from TopoDS) |
113 | returns Real from Standard; |
114 | ---Purpose: returns the radius if the fillet is constant |
115 | -- all along the edge E. |
116 | |
117 | ComputeLaw(me : mutable; Els : HElSpine from ChFiDS) |
118 | returns mutable Composite from Law |
119 | is private; |
120 | |
121 | AppendElSpine(me : mutable; Els : HElSpine from ChFiDS) |
122 | is redefined; |
123 | |
124 | AppendLaw(me : mutable; Els : HElSpine from ChFiDS) |
125 | is private; |
126 | |
127 | Law(me; Els : HElSpine from ChFiDS) |
128 | returns mutable Composite from Law |
129 | is static; |
130 | |
131 | ChangeLaw(me : mutable; E : Edge from TopoDS) |
132 | ---C++: return & |
133 | returns mutable Function from Law |
134 | ---Purpose: returns the elementary law |
135 | is static; |
136 | |
137 | MaxRadFromSeqAndLaws(me) returns Real from Standard; |
138 | ---Purpose: returns the maximum radius if the fillet is non-constant |
139 | |
140 | fields |
141 | |
142 | --radius : HArray1OfReal from TColStd; |
143 | parandrad : SequenceOfXY from TColgp; |
144 | laws : Laws from Law; |
145 | |
146 | end FilSpine; |
147 | |
148 | |