0022241: The bug is appendix to the Salome Bug 0021148
[occt.git] / src / Extrema / Extrema_FuncExtCC.cdl
CommitLineData
7fd59977 1-- File: FuncExtCC.cdl
2-- Created: Wed Jul 24 14:31:49 1991
3-- Author: Michel CHAUVAT
4-- <mca@topsn3>
5---Copyright: Matra Datavision 1991
6
7
8private generic class FuncExtCC from Extrema
9(Curve1 as any;
10 Tool1 as any;-- as ToolCurve(Curve1);
11 Curve2 as any;
12 Tool2 as any;-- as ToolCurve(Curve2);
13 POnC as any;
14 Pnt as any;
15 Vec as any )
16
17
18inherits FunctionSetWithDerivatives from math
19 ---Purpose: Fonction permettant de rechercher les extrema de la
20 -- distance entre 2 courbes.
21
22uses Vector from math,
23 Matrix from math,
24 SequenceOfReal from TColStd
25
26raises OutOfRange from Standard
27
28private class SeqPOnC instantiates Sequence from TCollection(POnC);
29
30is
31
32 Create (thetol: Real = 1.0e-10) returns FuncExtCC;
33 ---Purpose:
34
35 Create (C1: Curve1; C2: Curve2; thetol: Real = 1.0e-10) returns FuncExtCC;
36 ---Purpose:
37
38 SetCurve (me: in out; theRank: Integer; C1: Curve1);
39 ---C++: inline
40 ---Purpose:
41
42 SetTolerance (me: in out; theTol: Real);
43 ---C++: inline
44 ---Purpose:
45
46 NbVariables (me) returns Integer is redefined;
47 ---C++: inline
48
49 NbEquations (me) returns Integer is redefined;
50 ---C++: inline
51
52 Value (me: in out; UV: Vector; F: out Vector) returns Boolean is redefined;
53 ---Purpose: Calcul de Fi(U,V).
54
55 Derivatives (me: in out; UV: Vector; DF: out Matrix)
56 returns Boolean;
57 ---Purpose: Calcul de Fi'(U,V).
58
59 Values (me: in out; UV: Vector; F: out Vector; DF: out Matrix)
60 returns Boolean;
61 ---Purpose: Calcul de Fi(U,V) et Fi'(U,V).
62
63 GetStateNumber (me: in out) returns Integer
64 ---Purpose: Memorise l'extremum trouve.
65 is redefined;
66
67 NbExt (me) returns Integer;
68 ---C++: inline
69 ---Purpose: Renvoie le nombre d'extrema trouves.
70
71 SquareDistance (me; N: Integer) returns Real
72 ---C++: inline
73 ---Purpose: Renvoie la valeur de la Nieme distance.
74 raises OutOfRange;
75 -- si N < 1 ou N > NbExt(me).
76
77 Points (me; N: Integer; P1,P2: out POnC)
78 ---Purpose: Renvoie les points de la Nieme distance extremale.
79 raises OutOfRange;
80 -- si N < 1 ou N > NbExt(me).
81
82 CurvePtr (me; theRank: Integer) returns Address;
83 ---C++: inline
84 ---Purpose: Returns a pointer to the curve specified in the constructor
85 -- or in SetCurve() method.
86
87 Tolerance (me) returns Real;
88 ---C++: inline
89 ---Purpose: Returns a tolerance specified in the constructor
90 -- or in SetTolerance() method.
91
92fields
93 myC1 : Address from Standard;
94 myC2 : Address from Standard;
95 myTol : Real;
96 myU : Real; -- valeur courante de U
97 myV : Real; -- valeur courante de V
98 myP1 : Pnt; -- point courant C1(U)
99 myP2 : Pnt; -- point courant C2(U)
100
101 mySqDist: SequenceOfReal from TColStd;
102 myPoints: SeqPOnC;
103
104end FuncExtCC;