Integration of OCCT 6.5.0 from SVN
[occt.git] / src / AdvApprox / AdvApprox_ApproxAFunction.lxx
CommitLineData
7fd59977 1// File: AdvApprox_ApproxAFunction.lxx
2// Created: Wed May 31 15:27:05 1995
3// Author: Xavier BENVENISTE
4// <xab@nonox>
5
6#include <Standard_ConstructionError.hxx>
7#include <TColStd_HArray1OfReal.hxx>
8#include <TColStd_HArray1OfInteger.hxx>
9//=======================================================================
10//function : IsDone
11//purpose :
12//=======================================================================
13
14inline Standard_Boolean AdvApprox_ApproxAFunction::HasResult() const
15{ return myHasResult ; }
16//=======================================================================
17//function : IsDone
18//purpose :
19//=======================================================================
20
21inline Standard_Boolean AdvApprox_ApproxAFunction::IsDone() const
22{ return myDone ; }
23//=======================================================================
24//function : Poles1d
25//purpose :
26//=======================================================================
27inline Handle(TColStd_HArray2OfReal) AdvApprox_ApproxAFunction::Poles1d()
28 const
29{ return my1DPoles ; }
30//=======================================================================
31//function : Poles2d
32//purpose :
33//=======================================================================
34inline Handle(TColgp_HArray2OfPnt2d) AdvApprox_ApproxAFunction::Poles2d()
35 const
36{ return my2DPoles ; }
37//=======================================================================
38//function : Poles
39//purpose :
40//=======================================================================
41inline Handle(TColgp_HArray2OfPnt) AdvApprox_ApproxAFunction::Poles()
42 const
43{ return my3DPoles ; }
44//=======================================================================
45//function : Degree
46//purpose :
47//=======================================================================
48
49inline Standard_Integer AdvApprox_ApproxAFunction::Degree() const
50{ return myDegree ; }
51//=======================================================================
52//function : NbKnots
53//purpose :
54//=======================================================================
55
56inline Standard_Integer AdvApprox_ApproxAFunction::NbKnots() const
57{ return myKnots->Length() ; }
58//=======================================================================
59//function : Knots
60//purpose :
61//=======================================================================
62
63inline Handle(TColStd_HArray1OfReal) AdvApprox_ApproxAFunction::Knots() const
64
65{ return myKnots ; }
66//=======================================================================
67//function : Multiplicities
68//purpose :
69//=======================================================================
70
71inline Handle(TColStd_HArray1OfInteger)
72AdvApprox_ApproxAFunction::Multiplicities() const
73
74{ return myMults ;}
75
76//=======================================================================
77//function : NumSubSpaces
78//purpose :
79//=======================================================================
80
81inline Standard_Integer AdvApprox_ApproxAFunction::NumSubSpaces(const Standard_Integer Dimension) const
82{ if (Dimension < 1 || Dimension > 3) Standard_ConstructionError::Raise() ;
83 return myNumSubSpaces[Dimension-1] ; }