0024624: Lost word in license statement in source files
[occt.git] / src / AdvApprox / AdvApprox_ApproxAFunction.lxx
1 // Created on: 1995-05-31
2 // Created by: Xavier BENVENISTE
3 // Copyright (c) 1995-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 under
9 // the terms of the GNU Lesser General Public License 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 #include <Standard_ConstructionError.hxx>
18 #include <TColStd_HArray1OfReal.hxx>
19 #include <TColStd_HArray1OfInteger.hxx>
20 //=======================================================================
21 //function : IsDone
22 //purpose  : 
23 //=======================================================================
24
25 inline Standard_Boolean AdvApprox_ApproxAFunction::HasResult() const 
26 { return myHasResult ; } 
27 //=======================================================================
28 //function : IsDone
29 //purpose  : 
30 //=======================================================================
31
32 inline Standard_Boolean AdvApprox_ApproxAFunction::IsDone() const 
33 { return myDone ; } 
34 //=======================================================================
35 //function : Poles1d
36 //purpose  : 
37 //=======================================================================
38 inline Handle(TColStd_HArray2OfReal) AdvApprox_ApproxAFunction::Poles1d() 
39   const 
40 { return my1DPoles ; } 
41 //=======================================================================
42 //function : Poles2d
43 //purpose  : 
44 //=======================================================================
45 inline Handle(TColgp_HArray2OfPnt2d) AdvApprox_ApproxAFunction::Poles2d()
46   const 
47 { return my2DPoles ; } 
48 //=======================================================================
49 //function : Poles
50 //purpose  : 
51 //=======================================================================
52 inline Handle(TColgp_HArray2OfPnt) AdvApprox_ApproxAFunction::Poles()
53   const 
54 { return  my3DPoles ; } 
55 //=======================================================================
56 //function : Degree
57 //purpose  : 
58 //=======================================================================
59
60 inline Standard_Integer AdvApprox_ApproxAFunction::Degree() const
61 { return myDegree ; }
62 //=======================================================================
63 //function : NbKnots
64 //purpose  : 
65 //=======================================================================
66
67 inline Standard_Integer AdvApprox_ApproxAFunction::NbKnots() const
68 { return myKnots->Length()  ; }
69 //=======================================================================
70 //function : Knots
71 //purpose  : 
72 //=======================================================================
73
74 inline Handle(TColStd_HArray1OfReal) AdvApprox_ApproxAFunction::Knots() const 
75                
76 { return myKnots ; } 
77 //=======================================================================
78 //function : Multiplicities
79 //purpose  : 
80 //=======================================================================
81
82 inline Handle(TColStd_HArray1OfInteger) 
83 AdvApprox_ApproxAFunction::Multiplicities() const 
84
85 { return myMults ;} 
86
87 //=======================================================================
88 //function : NumSubSpaces
89 //purpose  : 
90 //=======================================================================
91
92 inline Standard_Integer AdvApprox_ApproxAFunction::NumSubSpaces(const Standard_Integer Dimension)  const 
93 { if (Dimension < 1 || Dimension > 3) Standard_ConstructionError::Raise()  ;
94   return myNumSubSpaces[Dimension-1] ; }