0024162: Eliminate CLang compiler warning
[occt.git] / src / Extrema / Extrema_ExtPExtS.cdl
CommitLineData
b311480e 1-- Created on: 1999-09-16
2-- Created by: Edward AGAPOV
3-- Copyright (c) 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
23class ExtPExtS from Extrema
24
25 ---Purpose: It calculates all the extremum (minimum and
26 -- maximum) distances between a point and a linear
27 -- extrusion surface.
28
29uses
30 POnSurf from Extrema,
31 GenExtPS from Extrema,
32 FuncExtPS from Extrema,
33
34 HCurve from Adaptor3d,
35 SurfacePtr from Adaptor3d,
36 SurfaceOfLinearExtrusion from Adaptor3d,
37
38 Ax2 from gp,
39 Vec from gp,
40 Pnt from gp
41
42raises
43 NotDone from StdFail,
44 OutOfRange
45
46
47is
48 Create returns ExtPExtS;
49
50 Create (P: Pnt; S: SurfaceOfLinearExtrusion from Adaptor3d;
51 Umin, Usup, Vmin, Vsup: Real;
52 TolU,TolV: Real)
53 returns ExtPExtS;
54 ---Purpose: It calculates all the distances between a point
55 -- from gp and a Surface.
56
57 Create (P: Pnt; S: SurfaceOfLinearExtrusion from Adaptor3d;
58 TolU,TolV: Real)
59 returns ExtPExtS;
60 ---Purpose: It calculates all the distances between a point
61 -- from gp and a Surface.
62
63 Initialize(me: in out; S: SurfaceOfLinearExtrusion from Adaptor3d;
64 Uinf, Usup, Vinf, Vsup: Real;
65 TolU, TolV: Real)
66 ---Purpose: Initializes the fields of the algorithm.
67 is static;
68
69 Perform(me: in out; P: Pnt)
70 is static;
71
72 IsDone (me) returns Boolean
73 ---Purpose: Returns True if the distances are found.
74 is static;
75
76 NbExt (me) returns Integer
77 ---Purpose: Returns the number of extremum distances.
78 raises NotDone from StdFail
79 -- if IsDone(me)=False.
80 is static;
81
82 SquareDistance (me; N: Integer) returns Real
83 ---Purpose: Returns the value of the Nth resulting square distance.
84 raises NotDone from StdFail,
85 -- if IsDone(me)=False.
86 OutOfRange
87 -- if N < 1 or N > NbPoints(me).
88 is static;
89
90 Point (me; N: Integer) returns POnSurf
91 ---Purpose: Returns the point of the Nth resulting distance.
92 raises NotDone from StdFail,
93 -- if IsDone(me)=False.
94 OutOfRange
95 -- if N < 1 or N > NbPoints(me).
96 is static;
97
98 --- Private methods
99
100 MakePreciser (me; U : in out Real from Standard;
101 P : Pnt from gp;
102 isMin : Boolean from Standard;
103 OrtogSection: Ax2 from gp) is static private;
104
105fields
106 myuinf : Real from Standard;
107 myusup : Real from Standard;
108 mytolu : Real from Standard;
109 myvinf : Real from Standard;
110 myvsup : Real from Standard;
111 mytolv : Real from Standard;
7fd59977 112
113 myF : FuncExtPS from Extrema;
114 myC : HCurve from Adaptor3d;
115 myS : SurfacePtr from Adaptor3d;
116 myDirection : Vec from gp;
117 myPosition : Ax2 from gp;
118 myExtPS : GenExtPS from Extrema;
119
120 myIsAnalyticallyComputable : Boolean from Standard;
121
122 myDone : Boolean from Standard;
123 myNbExt: Integer from Standard;
124 mySqDist: Real from Standard [4];
125 myPoint: POnSurf from Extrema [4];
126
127end ExtPExtS;