0024428: Implementation of LGPL license
[occt.git] / src / FairCurve / FairCurve_DistributionOfEnergy.cdl
CommitLineData
b311480e 1-- Created on: 1996-01-22
2-- Created by: Philippe MANGIN
3-- Copyright (c) 1996-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
973c2be1 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17deferred class DistributionOfEnergy from FairCurve
18 inherits FunctionSet from math
19
20 ---Purpose: Abstract class to use the Energy of an FairCurve
21
22uses Vector from math,
23 FunctionSet from math,
24 HArray1OfReal from TColStd,
25 HArray1OfPnt2d from TColgp
26
27
28
29is
30
31--- redefined methods
32
33 NbVariables(me)
34 ---Purpose: returns the number of variables of the function.
35
36 returns Integer is redefined;
37
38
39 NbEquations(me)
40 ---Purpose: returns the number of equations of the function.
41
42 returns Integer is redefined;
43
44
45--- new methods
46 Initialize( BSplOrder : Integer;
47 FlatKnots : HArray1OfReal;
48 Poles : HArray1OfPnt2d;
49 DerivativeOrder : Integer;
50 NbValAux : Integer = 0);
51
52 SetDerivativeOrder(me :in out; DerivativeOrder : Integer);
53
54
55fields
56
57MyBSplOrder : Integer is protected;
58MyFlatKnots : HArray1OfReal is protected;
59MyPoles : HArray1OfPnt2d is protected;
60MyDerivativeOrder : Integer is protected;
61MyNbVar : Integer is protected;
62MyNbEqua : Integer is protected;
63MyNbValAux : Integer is protected;
64
65
66end DistributionOfEnergy ;