0022627: Change OCCT memory management defaults
[occt.git] / src / IntSurf / IntSurf_Transition.lxx
CommitLineData
7fd59977 1#include <Standard_DomainError.hxx>
2
3
4inline void IntSurf_Transition::SetValue (const Standard_Boolean Tangent,
5 const IntSurf_TypeTrans Type) {
6 tangent = Tangent;
7 typetra = Type;
8}
9
10
11inline void IntSurf_Transition::SetValue (const Standard_Boolean Tangent,
12 const IntSurf_Situation Situ,
13 const Standard_Boolean Oppos) {
14
15 tangent = Tangent;
16 typetra = IntSurf_Touch;
17 situat = Situ;
18 oppos = Oppos;
19}
20
21
22inline void IntSurf_Transition::SetValue () {
23
24 typetra = IntSurf_Undecided;
25}
26
27
28inline IntSurf_TypeTrans IntSurf_Transition::TransitionType () const {
29
30 return typetra;
31}
32
33
34inline Standard_Boolean IntSurf_Transition::IsTangent () const {
35
36 if (typetra == IntSurf_Undecided) {Standard_DomainError::Raise();}
37 return tangent;
38}
39
40
41inline IntSurf_Situation IntSurf_Transition::Situation () const {
42
43 if (typetra != IntSurf_Touch) {Standard_DomainError::Raise();}
44 return situat;
45}
46
47
48inline Standard_Boolean IntSurf_Transition::IsOpposite () const {
49
50 if (typetra != IntSurf_Touch) {Standard_DomainError::Raise();}
51 return oppos;
52}
53
54
55