Integration of OCCT 6.5.0 from SVN
[occt.git] / src / Approx / Approx_SweepApproximation.lxx
1 // File:        Approx_SweepApproximation.lxx
2 // Created:     Thu Jun 26 15:33:33 1997
3 // Author:      Philippe MANGIN
4 //              <pmn@sgi29>
5
6 #include <StdFail_NotDone.hxx>
7 #include <TColgp_HArray2OfPnt.hxx>
8 #include <TColgp_HArray1OfPnt2d.hxx>
9 #include <TColStd_HArray2OfReal.hxx>
10 #include <TColStd_HArray1OfReal.hxx>
11 #include <TColStd_HArray1OfInteger.hxx>
12
13 inline  Standard_Boolean Approx_SweepApproximation::IsDone() const
14 {
15   return done;
16 }
17
18  
19 inline  Standard_Integer Approx_SweepApproximation::UDegree() const
20 {
21   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
22   return udeg;
23 }
24
25  
26 inline  Standard_Integer Approx_SweepApproximation::VDegree() const
27 {
28   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
29   return vdeg;
30 }
31
32  
33 inline const TColgp_Array2OfPnt& Approx_SweepApproximation::SurfPoles() const
34 {
35   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
36   return tabPoles->Array2();
37 }
38
39  
40 inline const TColStd_Array2OfReal& Approx_SweepApproximation::SurfWeights() const
41 {
42   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
43   return tabWeights->Array2();
44 }
45
46  
47 inline const TColStd_Array1OfReal& Approx_SweepApproximation::SurfUKnots() const
48 {
49   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
50   return tabUKnots->Array1();
51 }
52
53  
54 inline const TColStd_Array1OfReal& Approx_SweepApproximation::SurfVKnots() const
55 {
56   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
57   return tabVKnots->Array1();
58 }
59
60  
61 inline const TColStd_Array1OfInteger& Approx_SweepApproximation::SurfUMults() const
62 {
63   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
64   return tabUMults->Array1();
65 }
66
67  
68 inline const TColStd_Array1OfInteger& Approx_SweepApproximation::SurfVMults() const
69 {
70   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
71   return tabVMults->Array1();
72 }
73
74  
75 inline  Standard_Integer Approx_SweepApproximation::NbCurves2d() const
76 {
77   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
78   return Num2DSS;
79 }
80
81  
82 inline  Standard_Integer Approx_SweepApproximation::Curves2dDegree() const
83 {
84   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
85   if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
86   return deg2d;
87 }
88
89  
90 inline const TColgp_Array1OfPnt2d& Approx_SweepApproximation::Curve2dPoles(const Standard_Integer Index) const
91 {
92   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
93  if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
94   return seqPoles2d(Index)->Array1();
95 }
96
97  
98 inline const TColStd_Array1OfReal& Approx_SweepApproximation::Curves2dKnots() const
99 {
100   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
101   if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
102   return tab2dKnots->Array1();
103 }
104
105  
106 inline const TColStd_Array1OfInteger& Approx_SweepApproximation::Curves2dMults() const
107 {
108   if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
109  if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
110   return tab2dMults->Array1();
111 }
112
113 /* 
114 inline  void Approx_SweepApproximation::TolReached(Standard_Real& Tol3d,Standard_Real& Tol2d) const
115 {
116
117 }*/