Commit | Line | Data |
---|---|---|
733a0e55 S |
1 | // File: Contap_ContourGen.lxx |
2 | // Created: Fri Feb 5 09:39:18 1993 | |
3 | // Author: Jacques GOUSSARD | |
4 | // Copyright: OPEN CASCADE 2000 | |
5 | ||
7fd59977 | 6 | #include <StdFail_NotDone.hxx> |
7 | ||
8 | inline Standard_Boolean Contap_ContourGen::IsDone () const | |
9 | { | |
10 | return done; | |
11 | } | |
12 | ||
13 | inline Standard_Boolean Contap_ContourGen::IsEmpty () const | |
14 | { | |
15 | return NbLines()==0; | |
16 | } | |
17 | ||
18 | inline Standard_Integer Contap_ContourGen::NbLines () const | |
19 | { | |
20 | if (!done) {StdFail_NotDone::Raise();} | |
21 | return slin.Length(); | |
22 | } | |
23 | ||
24 | inline const Contap_TheLine & | |
25 | Contap_ContourGen::Line (const Standard_Integer Index) const | |
26 | { | |
27 | if (!done) {StdFail_NotDone::Raise();} | |
28 | return slin(Index); | |
29 | } | |
30 | ||
31 | inline Contap_TheSurfFunction & | |
32 | Contap_ContourGen::SurfaceFunction () | |
33 | { | |
34 | if (!done) {StdFail_NotDone::Raise();} | |
35 | return mySFunc; | |
36 | } | |
37 |