f9e2897d2e308b447f6c57734e905241542177cb
[occt.git] / src / ChFiDS / ChFiDS_SurfData.cdl
1 -- Created on: 1993-11-26
2 -- Created by: Isabelle GRIGNON
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 class SurfData from ChFiDS inherits TShared from MMgt
18
19         ---Purpose: 
20
21 uses 
22     Pnt2d from gp,
23     Surface from Geom,
24     Orientation from TopAbs,
25     FaceInterference from ChFiDS,
26     CommonPoint from ChFiDS
27
28 is
29     Create returns SurfData;
30     
31     Copy(me: mutable; Other : SurfData from ChFiDS);
32     
33     IndexOfS1(me) returns Integer is static;
34     ---C++: inline    
35
36     IndexOfS2(me) returns Integer is static;
37     ---C++: inline    
38
39     IsOnCurve1(me) returns Boolean is static;
40     ---C++: inline    
41
42     IsOnCurve2(me) returns Boolean is static;
43     ---C++: inline    
44
45     IndexOfC1(me) returns Integer is static;
46     ---C++: inline    
47
48     IndexOfC2(me) returns Integer is static;
49     ---C++: inline    
50
51     Surf(me) returns Integer is static;
52     ---C++: inline
53
54     Orientation(me) returns Orientation from TopAbs is static;
55     ---C++: inline
56
57     InterferenceOnS1(me) returns  FaceInterference from ChFiDS is static;
58     ---C++: inline
59     ---C++: return const &      
60
61     InterferenceOnS2(me) returns  FaceInterference from ChFiDS is static; 
62     ---C++: inline
63     ---C++: return const &      
64
65     VertexFirstOnS1(me) returns CommonPoint from ChFiDS is static;
66     ---C++: inline
67     ---C++: return const &      
68
69     VertexFirstOnS2(me) returns CommonPoint from ChFiDS is static;
70     ---C++: inline
71     ---C++: return const &      
72
73     VertexLastOnS1(me) returns CommonPoint from ChFiDS is static;
74     ---C++: inline
75     ---C++: return const &      
76
77     VertexLastOnS2(me) returns CommonPoint from ChFiDS is static;
78     ---C++: inline
79     ---C++: return const &      
80
81     ChangeIndexOfS1(me : mutable; Index : Integer ) is static; 
82     ---C++: inline    
83
84     ChangeIndexOfS2(me : mutable; Index : Integer ) is static; 
85     ---C++: inline    
86
87     ChangeSurf(me : mutable; Index : Integer )  is static;
88     ---C++: inline
89
90     SetIndexOfC1(me : mutable; Index : Integer ) is static; 
91     ---C++: inline    
92
93     SetIndexOfC2(me : mutable; Index : Integer ) is static; 
94     ---C++: inline    
95
96     ChangeOrientation(me : mutable) returns Orientation from TopAbs is static;
97     ---C++: inline
98     ---C++: return &
99
100     ChangeInterferenceOnS1(me : mutable) 
101     returns  FaceInterference from ChFiDS is static;
102     ---C++: inline
103     ---C++: return &      
104
105     ChangeInterferenceOnS2(me : mutable) 
106     returns  FaceInterference from ChFiDS is static; 
107     ---C++: inline
108     ---C++: return &      
109
110     ChangeVertexFirstOnS1(me : mutable) 
111     returns CommonPoint from ChFiDS is static;
112     ---C++: inline
113     ---C++: return &      
114
115     ChangeVertexFirstOnS2(me : mutable) 
116     returns CommonPoint from ChFiDS is static;
117     ---C++: inline
118     ---C++: return &      
119
120     ChangeVertexLastOnS1(me : mutable) 
121     returns CommonPoint from ChFiDS is static;
122     ---C++: inline
123     ---C++: return &      
124
125     ChangeVertexLastOnS2(me : mutable) 
126     returns CommonPoint from ChFiDS is static;
127     ---C++: inline
128     ---C++: return &      
129
130     Interference(me; OnS : Integer from Standard) 
131     returns  FaceInterference from ChFiDS is static;
132     ---C++: return const &      
133
134     ChangeInterference(me : mutable; OnS : Integer from Standard) 
135     returns  FaceInterference from ChFiDS is static;
136     ---C++: return &      
137
138     Index(me; OfS : Integer from Standard) 
139     returns Integer from Standard is static;
140
141
142     Vertex(me;
143            First : Boolean from Standard;
144            OnS   : Integer from Standard)
145     returns CommonPoint from ChFiDS is static;
146     ---C++: return const    &  
147     ---Purpose: returns one of the four vertices  wether First is true
148     --          or wrong and OnS equals 1 or 2.
149
150     ChangeVertex(me    : mutable;
151                  First : Boolean from Standard;
152                  OnS   : Integer from Standard)
153     returns CommonPoint from ChFiDS is static;
154     ---C++: return &      
155     ---Purpose: returns one of the four vertices  wether First is true
156     --          or wrong and OnS equals 1 or 2.
157
158     IsOnCurve(me; OnS : Integer from Standard) returns Boolean is static;
159     ---C++: inline    
160
161     IndexOfC(me; OnS : Integer from Standard) returns Integer is static;
162     ---C++: inline    
163
164     FirstSpineParam(me) returns Real from Standard is static; 
165     LastSpineParam(me) returns Real from Standard is static; 
166     FirstSpineParam(me : mutable; Par :Real from Standard) is static; 
167     LastSpineParam(me : mutable; Par :Real from Standard) is static; 
168     
169     FirstExtensionValue(me) returns Real from Standard is static;
170     LastExtensionValue(me)   returns Real from Standard is static;
171     FirstExtensionValue(me:mutable;Extend:Real from Standard) is static;
172     LastExtensionValue(me:mutable;Extend:Real from Standard) is static;
173   
174     Simul(me) returns TShared from MMgt;
175     SetSimul(me : mutable; S : TShared from MMgt);
176     ResetSimul(me : mutable);
177
178     Get2dPoints(me; First : Boolean from Standard; OnS : Integer from Standard) 
179     returns Pnt2d from gp;
180     Get2dPoints(me; P2df1,P2dl1,P2df2,P2dl2 : out Pnt2d from gp); 
181     Set2dPoints(me : mutable; P2df1,P2dl1,P2df2,P2dl2 : Pnt2d from gp); 
182
183     TwistOnS1(me) returns Boolean is static;
184     ---C++: inline    
185
186     TwistOnS2(me) returns Boolean is static;
187     ---C++: inline    
188
189     TwistOnS1(me : mutable; T : Boolean from Standard);
190     ---C++: inline    
191
192     TwistOnS2(me : mutable; T : Boolean from Standard);
193     ---C++: inline    
194
195
196
197 fields 
198
199 pfirstOnS1       : CommonPoint from ChFiDS;
200 plastOnS1        : CommonPoint from ChFiDS; 
201 pfirstOnS2       : CommonPoint from ChFiDS; 
202 plastOnS2        : CommonPoint from ChFiDS;
203
204 intf1            : FaceInterference from ChFiDS;
205 intf2            : FaceInterference from ChFiDS;
206
207 p2df1            : Pnt2d from gp; -- 2d points to be used as start point  for  simulation.
208 p2dl1            : Pnt2d from gp; 
209 p2df2            : Pnt2d from gp; 
210 p2dl2            : Pnt2d from gp; 
211
212 ufspine          : Real from Standard; -- may be uninitialized
213 ulspine          : Real from Standard; -- may be uninitialized 
214 myfirstextend    : Real from Standard;
215 mylastextend     : Real from Standard; 
216
217 simul            : TShared from MMgt;  -- free space to store simulating  sections.
218
219 indexOfS1        : Integer from Standard;
220 indexOfC1        : Integer from Standard;
221 indexOfS2        : Integer from Standard;
222 indexOfC2        : Integer from Standard;
223 indexOfConge     : Integer from Standard;
224
225 isoncurv1        : Boolean from Standard; 
226 isoncurv2        : Boolean from Standard;
227 twistons1        : Boolean from Standard;
228 twistons2        : Boolean from Standard; 
229 orientation      : Orientation from TopAbs; 
230
231 end SurfData;
232