0024157: Parallelization of assembly part of BO
[occt.git] / src / Contap / Contap_ArcFunction.cdl
1 -- Created on: 1993-06-03
2 -- Created by: Jacques GOUSSARD
3 -- Copyright (c) 1993-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
21
22 generic class ArcFunction from Contap 
23     (TheArc          as any;
24      TheSurface      as any;
25      TheArcTool      as any; -- as ArcTool from Contap()
26      TheSurfaceTool  as any; -- as SurfaceTool from Contap()
27      TheSurfProps    as any; -- as SurfProps from Contap(TheSurface,
28                              --                          TheSurfaceTool)
29      TheContTool     as any) -- as ContTool from Contap()
30
31
32 inherits FunctionWithDerivative from math
33
34 uses Pnt           from gp,
35      Dir           from gp,
36      SequenceOfPnt from TColgp,
37      TFunction     from Contap, 
38     --modified by NIZNHY-PKV Thu Mar 29 16:52:28 2001  f
39      Quadric       from IntSurf 
40     --modified by NIZNHY-PKV Thu Mar 29 16:52:31 2001  t
41
42
43 is
44
45     Create
46     
47         returns ArcFunction from Contap;
48
49
50     Set(me: in out; S: TheSurface)
51     
52         is static;
53
54     Set(me: in out; Direction: Dir from gp)
55     
56         ---C++: inline
57         is static;
58
59
60     Set(me: in out; Direction: Dir from gp; Angle: Real from Standard)
61     
62         ---C++: inline
63         is static;
64
65
66     Set(me: in out; Eye: Pnt from gp)
67     
68         ---C++: inline
69         is static;
70
71
72     Set(me: in out; Eye: Pnt from gp; Angle: Real from Standard)
73     
74         ---C++: inline
75         is static;
76
77
78     Set(me: in out; A: TheArc)
79     
80         ---C++: inline
81         is static;
82
83
84     Value(me: in out; X: Real from Standard; F: out Real from Standard)
85     
86         returns Boolean from Standard;
87     
88
89     Derivative(me: in out; X: Real from Standard; D: out Real from Standard)
90     
91         returns Boolean from Standard;
92     
93
94     Values(me: in out; X: Real from Standard; F,D: out Real from Standard)
95     
96         returns Boolean from Standard;
97     
98
99     NbSamples(me)
100     
101         returns Integer from Standard
102         is static;
103
104
105     GetStateNumber(me: in out)
106
107         returns Integer from Standard
108         is redefined;
109         
110         
111     Valpoint(me; Index: Integer from Standard)
112     
113         returns Pnt from gp
114         ---C++: return const&
115         ---C++: inline
116         is static; 
117          
118 --modified by NIZNHY-PKV Thu Mar 29 16:51:24 2001  f 
119     Quadric(me) 
120         returns Quadric from IntSurf
121         ---C++: return const&
122         is static;  
123 --modified by NIZNHY-PKV Thu Mar 29 16:51:31 2001  t    
124      
125     
126
127 fields
128
129     myArc    : TheArc;
130     mySurf   : TheSurface;
131     myMean   : Real          from Standard;
132     myType   : TFunction     from Contap;
133     myDir    : Dir           from gp;
134     myCosAng : Real          from Standard;
135     myEye    : Pnt           from gp;
136     solpt    : Pnt           from gp;
137     seqpt    : SequenceOfPnt from TColgp;
138 --modified by NIZNHY-PKV Thu Mar 29 16:51:41 2001f
139     myQuad : Quadric       from IntSurf; 
140 --modified by NIZNHY-PKV Thu Mar 29 16:51:47 2001t  
141
142 end ArcFunction;