7fd59977 |
1 | #include <StdFail_NotDone.hxx> |
2 | |
3 | //======================================================================= |
4 | //function : IsDone |
5 | //purpose : |
6 | //======================================================================= |
7 | |
8 | inline Standard_Boolean GCPnts_UniformDeflection::IsDone () const |
9 | { |
10 | return myDone; |
11 | } |
12 | |
13 | //======================================================================= |
14 | //function : Deflection |
15 | //purpose : |
16 | //======================================================================= |
17 | |
18 | inline Standard_Real GCPnts_UniformDeflection::Deflection () const |
19 | { |
20 | StdFail_NotDone_Raise_if(!myDone, |
21 | "GCPnts_UniformDeflection::Deflection()"); |
22 | return myDeflection; |
23 | } |
24 | |
25 | //======================================================================= |
26 | //function : NbPoints |
27 | //purpose : |
28 | //======================================================================= |
29 | |
30 | inline Standard_Integer GCPnts_UniformDeflection::NbPoints () const |
31 | { |
32 | StdFail_NotDone_Raise_if(!myDone, |
33 | "GCPnts_UniformDeflection::NbPoints()"); |
34 | return myParams.Length(); |
35 | } |
36 | |
37 | //======================================================================= |
38 | //function : Parameter |
39 | //purpose : |
40 | //======================================================================= |
41 | |
42 | inline Standard_Real GCPnts_UniformDeflection::Parameter |
43 | (const Standard_Integer Index) const |
44 | { |
45 | StdFail_NotDone_Raise_if(!myDone, |
46 | "GCPnts_UniformDeflection::Parameter()"); |
47 | return myParams(Index); |
48 | } |
49 | |