1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
// File: IntRes2d_Transition.lxx
// Created: Wed Jun 10 15:06:44 1992
// Author: Laurent BUCHARD
// <lbr@sdsun2>
#include <Standard_DomainError.hxx>
ostream& operator << (ostream&, IntRes2d_Transition&);
inline IntRes2d_Transition::IntRes2d_Transition (const Standard_Boolean Tangent,
const IntRes2d_Position Pos,
const IntRes2d_TypeTrans Type ):
tangent(Tangent),posit(Pos),typetra(Type),situat(IntRes2d_Unknown),oppos(Standard_False)
{
}
inline IntRes2d_Transition::IntRes2d_Transition (const Standard_Boolean Tangent,
const IntRes2d_Position Pos,
const IntRes2d_Situation Situ,
const Standard_Boolean Oppos):
tangent(Tangent),posit(Pos),typetra(IntRes2d_Touch),
situat(Situ),oppos(Oppos)
{
}
inline IntRes2d_Transition::IntRes2d_Transition (const IntRes2d_Position Pos):
tangent(Standard_True),posit(Pos),typetra(IntRes2d_Undecided),situat(IntRes2d_Unknown),oppos(Standard_False)
{
}
inline void IntRes2d_Transition::SetValue (const Standard_Boolean Tangent,
const IntRes2d_Position Pos,
const IntRes2d_TypeTrans Type ) {
tangent=Tangent;
posit=Pos;
typetra=Type;
}
inline void IntRes2d_Transition::SetValue (const Standard_Boolean Tangent,
const IntRes2d_Position Pos,
const IntRes2d_Situation Situ,
const Standard_Boolean Oppos) {
tangent=Tangent;
posit=Pos;
typetra=IntRes2d_Touch;
situat=Situ;
oppos=Oppos;
}
inline void IntRes2d_Transition::SetValue (const IntRes2d_Position Pos ) {
posit=Pos;
typetra=IntRes2d_Undecided;
}
inline void IntRes2d_Transition::SetPosition (const IntRes2d_Position Pos ) {
posit=Pos;
}
inline IntRes2d_Position IntRes2d_Transition::PositionOnCurve () const {
return posit;
}
inline IntRes2d_TypeTrans IntRes2d_Transition::TransitionType () const {
return typetra;
}
inline Standard_Boolean IntRes2d_Transition::IsTangent () const {
if (typetra==IntRes2d_Undecided) {
Standard_DomainError::Raise();
}
return tangent;
}
inline IntRes2d_Situation IntRes2d_Transition::Situation () const {
if (typetra!=IntRes2d_Touch) {
Standard_DomainError::Raise();
}
return situat;
}
inline Standard_Boolean IntRes2d_Transition::IsOpposite () const {
if (typetra!=IntRes2d_Touch) {
Standard_DomainError::Raise();
}
return oppos;
}
|