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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #include <Standard_ConstructionError.hxx>
18 #include <TColStd_HArray1OfReal.hxx>
19 #include <TColStd_HArray1OfInteger.hxx>
20 //=======================================================================
23 //=======================================================================
25 inline Standard_Boolean AdvApprox_ApproxAFunction::HasResult() const
26 { return myHasResult ; }
27 //=======================================================================
30 //=======================================================================
32 inline Standard_Boolean AdvApprox_ApproxAFunction::IsDone() const
34 //=======================================================================
37 //=======================================================================
38 inline Handle(TColStd_HArray2OfReal) AdvApprox_ApproxAFunction::Poles1d()
40 { return my1DPoles ; }
41 //=======================================================================
44 //=======================================================================
45 inline Handle(TColgp_HArray2OfPnt2d) AdvApprox_ApproxAFunction::Poles2d()
47 { return my2DPoles ; }
48 //=======================================================================
51 //=======================================================================
52 inline Handle(TColgp_HArray2OfPnt) AdvApprox_ApproxAFunction::Poles()
54 { return my3DPoles ; }
55 //=======================================================================
58 //=======================================================================
60 inline Standard_Integer AdvApprox_ApproxAFunction::Degree() const
62 //=======================================================================
65 //=======================================================================
67 inline Standard_Integer AdvApprox_ApproxAFunction::NbKnots() const
68 { return myKnots->Length() ; }
69 //=======================================================================
72 //=======================================================================
74 inline Handle(TColStd_HArray1OfReal) AdvApprox_ApproxAFunction::Knots() const
77 //=======================================================================
78 //function : Multiplicities
80 //=======================================================================
82 inline Handle(TColStd_HArray1OfInteger)
83 AdvApprox_ApproxAFunction::Multiplicities() const
87 //=======================================================================
88 //function : NumSubSpaces
90 //=======================================================================
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] ; }