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