0024428: Implementation of LGPL license
[occt.git] / src / AdvApp2Var / AdvApp2Var_Iso.cdl
1 -- Created on: 1996-04-09
2 -- Created by: Joelle CHAUVET
3 -- Copyright (c) 1996-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
9 -- under the terms of the GNU Lesser General Public 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 Iso from AdvApp2Var
18
19 uses
20
21     Boolean,Integer,Real from Standard,
22     HArray1OfReal from TColStd,
23     HArray2OfReal from TColStd,    
24     HArray1OfPnt from TColgp,
25     IsoType from GeomAbs,
26     EvaluatorFunc2Var,Context,Node from AdvApp2Var
27     
28
29 is
30
31     Create  returns Iso;
32     Create(type : IsoType from GeomAbs; iu, iv  :  Integer) returns Iso;
33     Create(type : IsoType from GeomAbs; cte : Real; 
34            Ufirst, Ulast, Vfirst,  Vlast : Real;
35            pos, iu, iv  :  Integer) returns Iso;
36     Create(Other : Iso) returns Iso is private;
37     IsApproximated(me) returns Boolean;
38     HasResult(me) returns Boolean;
39     MakeApprox(me: in out;  Conditions : Context;
40                             a,b,c,d : Real;
41                             func : EvaluatorFunc2Var;
42                             NodeBegin,  NodeEnd : in out  Node  from AdvApp2Var ); 
43     ChangeDomain(me: in out; a,b : Real);
44     ChangeDomain(me: in out; a,b,c,d : Real);
45     SetConstante(me: in out; newcte : Real);
46     SetPosition(me: in out; newpos : Integer);
47     ResetApprox(me: in out);
48     OverwriteApprox(me: in out);
49     Type(me) returns IsoType;
50     Constante(me) returns Real;
51     T0(me) returns Real;
52     T1(me) returns Real;    
53     U0(me) returns Real;
54     U1(me) returns Real;
55     V0(me) returns Real;
56     V1(me) returns Real;
57     UOrder(me) returns Integer;
58     VOrder(me) returns Integer;
59     Position(me) returns Integer;
60     NbCoeff(me) returns Integer;
61     Polynom(me) 
62     ---C++: return const & 
63     returns HArray1OfReal;
64     SomTab(me) returns HArray1OfReal;
65     DifTab(me) returns HArray1OfReal;
66     MaxErrors(me) returns HArray2OfReal;
67     MoyErrors(me) returns HArray2OfReal;
68    
69
70 fields
71
72     myType        : IsoType from GeomAbs;
73     myConstPar    : Real;
74     myU0, myU1    : Real;
75     myV0, myV1    : Real;
76     myPosition    : Integer;
77     myExtremOrder : Integer;
78     myDerivOrder  : Integer;
79     myNbCoeff     : Integer;
80     myApprIsDone  : Boolean;
81     myHasResult   : Boolean;
82     myEquation    : HArray1OfReal;
83     myMaxErrors   : HArray2OfReal;
84     myMoyErrors   : HArray2OfReal;   
85     mySomTab      : HArray1OfReal;
86     myDifTab      : HArray1OfReal;
87
88 end Iso;
89