0022627: Change OCCT memory management defaults
[occt.git] / src / IntImp / IntImp_Int2S.lxx
CommitLineData
7fd59977 1#include <StdFail_NotDone.hxx>
2#include <StdFail_UndefinedDerivative.hxx>
3#include <Standard_DomainError.hxx>
4
5
6inline Standard_Boolean IntImp_Int2S::IsDone()const { return done;}
7
8inline Standard_Boolean IntImp_Int2S::IsEmpty() const
9{
10 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::IsEmpty() ");
11 return empty;
12}
13
14inline const IntSurf_PntOn2S& IntImp_Int2S::Point() const
15{
16 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::Point() ");
17 if (empty) Standard_DomainError::Raise(" IntImp_Int2S::Point() ");
18 return pint;
19}
20
21inline Standard_Boolean IntImp_Int2S::IsTangent () const {
22
23 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::IsTangent () ");
24 if (empty) Standard_DomainError::Raise(" IntImp_Int2S::IsTangent () ");
25 return tangent;
26}
27
28inline const gp_Dir& IntImp_Int2S::Direction () const {
29
30 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::Direction () ");
31 if (empty) Standard_DomainError::Raise(" IntImp_Int2S::Direction () ");
32 if (tangent) StdFail_UndefinedDerivative::Raise
33 (" IntImp_Int2S::Direction () ");
34 return d3d;
35}
36
37inline const gp_Dir2d& IntImp_Int2S::DirectionOnS1 () const {
38
39 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::DirectionOnS1 () ");
40 if (empty) Standard_DomainError::Raise(" IntImp_Int2S::DirectionOnS1 () ");
41 if (tangent) StdFail_UndefinedDerivative::Raise
42 (" IntImp_Int2S::DirectionOnS1 () ");
43 return d2d1;
44}
45
46inline const gp_Dir2d& IntImp_Int2S::DirectionOnS2 () const {
47
48 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::DirectionOnS2 () ");
49 if (empty) Standard_DomainError::Raise(" IntImp_Int2S::DirectionOnS2 () ");
50 if (tangent) StdFail_UndefinedDerivative::Raise
51 (" IntImp_Int2S::DirectionOnS2 () ");
52 return d2d2;
53}
54
55
56inline IntImp_TheFunction& IntImp_Int2S::Function() {
57 return myZerParFunc;
58}
59