1 -- Created on: 1993-11-26
2 -- Created by: Isabelle GRIGNON
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
23 class SurfData from ChFiDS inherits TShared from MMgt
30 Orientation from TopAbs,
31 FaceInterference from ChFiDS,
32 CommonPoint from ChFiDS
35 Create returns mutable SurfData;
37 Copy(me: mutable; Other : SurfData from ChFiDS);
39 IndexOfS1(me) returns Integer is static;
42 IndexOfS2(me) returns Integer is static;
45 IsOnCurve1(me) returns Boolean is static;
48 IsOnCurve2(me) returns Boolean is static;
51 IndexOfC1(me) returns Integer is static;
54 IndexOfC2(me) returns Integer is static;
57 Surf(me) returns Integer is static;
60 Orientation(me) returns Orientation from TopAbs is static;
63 InterferenceOnS1(me) returns FaceInterference from ChFiDS is static;
65 ---C++: return const &
67 InterferenceOnS2(me) returns FaceInterference from ChFiDS is static;
69 ---C++: return const &
71 VertexFirstOnS1(me) returns CommonPoint from ChFiDS is static;
73 ---C++: return const &
75 VertexFirstOnS2(me) returns CommonPoint from ChFiDS is static;
77 ---C++: return const &
79 VertexLastOnS1(me) returns CommonPoint from ChFiDS is static;
81 ---C++: return const &
83 VertexLastOnS2(me) returns CommonPoint from ChFiDS is static;
85 ---C++: return const &
87 ChangeIndexOfS1(me : mutable; Index : Integer ) is static;
90 ChangeIndexOfS2(me : mutable; Index : Integer ) is static;
93 ChangeSurf(me : mutable; Index : Integer ) is static;
96 SetIndexOfC1(me : mutable; Index : Integer ) is static;
99 SetIndexOfC2(me : mutable; Index : Integer ) is static;
102 ChangeOrientation(me : mutable) returns Orientation from TopAbs is static;
106 ChangeInterferenceOnS1(me : mutable)
107 returns FaceInterference from ChFiDS is static;
111 ChangeInterferenceOnS2(me : mutable)
112 returns FaceInterference from ChFiDS is static;
116 ChangeVertexFirstOnS1(me : mutable)
117 returns CommonPoint from ChFiDS is static;
121 ChangeVertexFirstOnS2(me : mutable)
122 returns CommonPoint from ChFiDS is static;
126 ChangeVertexLastOnS1(me : mutable)
127 returns CommonPoint from ChFiDS is static;
131 ChangeVertexLastOnS2(me : mutable)
132 returns CommonPoint from ChFiDS is static;
136 Interference(me; OnS : Integer from Standard)
137 returns FaceInterference from ChFiDS is static;
138 ---C++: return const &
140 ChangeInterference(me : mutable; OnS : Integer from Standard)
141 returns FaceInterference from ChFiDS is static;
144 Index(me; OfS : Integer from Standard)
145 returns Integer from Standard is static;
149 First : Boolean from Standard;
150 OnS : Integer from Standard)
151 returns CommonPoint from ChFiDS is static;
152 ---C++: return const &
153 ---Purpose: returns one of the four vertices wether First is true
154 -- or wrong and OnS equals 1 or 2.
156 ChangeVertex(me : mutable;
157 First : Boolean from Standard;
158 OnS : Integer from Standard)
159 returns CommonPoint from ChFiDS is static;
161 ---Purpose: returns one of the four vertices wether First is true
162 -- or wrong and OnS equals 1 or 2.
164 IsOnCurve(me; OnS : Integer from Standard) returns Boolean is static;
167 IndexOfC(me; OnS : Integer from Standard) returns Integer is static;
170 FirstSpineParam(me) returns Real from Standard is static;
171 LastSpineParam(me) returns Real from Standard is static;
172 FirstSpineParam(me : mutable; Par :Real from Standard) is static;
173 LastSpineParam(me : mutable; Par :Real from Standard) is static;
175 FirstExtensionValue(me) returns Real from Standard is static;
176 LastExtensionValue(me) returns Real from Standard is static;
177 FirstExtensionValue(me:mutable;Extend:Real from Standard) is static;
178 LastExtensionValue(me:mutable;Extend:Real from Standard) is static;
180 Simul(me) returns mutable TShared from MMgt;
181 SetSimul(me : mutable; S : TShared from MMgt);
182 ResetSimul(me : mutable);
184 Get2dPoints(me; First : Boolean from Standard; OnS : Integer from Standard)
185 returns Pnt2d from gp;
186 Get2dPoints(me; P2df1,P2dl1,P2df2,P2dl2 : out Pnt2d from gp);
187 Set2dPoints(me : mutable; P2df1,P2dl1,P2df2,P2dl2 : Pnt2d from gp);
189 TwistOnS1(me) returns Boolean is static;
192 TwistOnS2(me) returns Boolean is static;
195 TwistOnS1(me : mutable; T : Boolean from Standard);
198 TwistOnS2(me : mutable; T : Boolean from Standard);
205 pfirstOnS1 : CommonPoint from ChFiDS;
206 plastOnS1 : CommonPoint from ChFiDS;
207 pfirstOnS2 : CommonPoint from ChFiDS;
208 plastOnS2 : CommonPoint from ChFiDS;
210 intf1 : FaceInterference from ChFiDS;
211 intf2 : FaceInterference from ChFiDS;
213 p2df1 : Pnt2d from gp; -- 2d points to be used as start point for simulation.
214 p2dl1 : Pnt2d from gp;
215 p2df2 : Pnt2d from gp;
216 p2dl2 : Pnt2d from gp;
218 ufspine : Real from Standard; -- may be uninitialized
219 ulspine : Real from Standard; -- may be uninitialized
220 myfirstextend : Real from Standard;
221 mylastextend : Real from Standard;
223 simul : TShared from MMgt; -- free space to store simulating sections.
225 indexOfS1 : Integer from Standard;
226 indexOfC1 : Integer from Standard;
227 indexOfS2 : Integer from Standard;
228 indexOfC2 : Integer from Standard;
229 indexOfConge : Integer from Standard;
231 isoncurv1 : Boolean from Standard;
232 isoncurv2 : Boolean from Standard;
233 twistons1 : Boolean from Standard;
234 twistons2 : Boolean from Standard;
235 orientation : Orientation from TopAbs;