b311480e |
1 | // Copyright (c) 1995-1999 Matra Datavision |
973c2be1 |
2 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
3 | // |
973c2be1 |
4 | // This file is part of Open CASCADE Technology software library. |
b311480e |
5 | // |
d5f74e42 |
6 | // This library is free software; you can redistribute it and/or modify it under |
7 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
8 | // by the Free Software Foundation, with special exception defined in the file |
9 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
10 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
11 | // |
973c2be1 |
12 | // Alternatively, this file may be used under the terms of Open CASCADE |
13 | // commercial license or contractual agreement. |
b311480e |
14 | |
7fd59977 |
15 | #include <Standard_DomainError.hxx> |
16 | |
17 | |
18 | inline void IntPatch_Line::SetValue (const Standard_Boolean Uiso1, |
19 | const Standard_Boolean Viso1, |
20 | const Standard_Boolean Uiso2, |
21 | const Standard_Boolean Viso2) { |
22 | uS1 = Uiso1; |
23 | vS1 = Viso1; |
24 | uS2 = Uiso2; |
25 | vS2 = Viso2; |
26 | } |
27 | |
28 | |
29 | inline IntPatch_IType IntPatch_Line::ArcType () const { |
30 | return typ; |
31 | } |
32 | |
33 | inline Standard_Boolean IntPatch_Line::IsTangent () const { |
34 | |
35 | return tg; |
36 | } |
37 | |
38 | |
39 | inline IntSurf_TypeTrans IntPatch_Line::TransitionOnS1 () const { |
40 | |
41 | return tS1; |
42 | } |
43 | |
44 | |
45 | inline IntSurf_TypeTrans IntPatch_Line::TransitionOnS2 () const { |
46 | |
47 | return tS2; |
48 | } |
49 | |
50 | |
51 | inline IntSurf_Situation IntPatch_Line::SituationS1 () const { |
52 | |
53 | if (tS1 != IntSurf_Touch) {Standard_DomainError::Raise();} |
54 | return sit1; |
55 | } |
56 | |
57 | |
58 | inline IntSurf_Situation IntPatch_Line::SituationS2 () const { |
59 | |
60 | if (tS2 != IntSurf_Touch) {Standard_DomainError::Raise();} |
61 | return sit2; |
62 | } |
63 | |
64 | |
65 | inline Standard_Boolean IntPatch_Line::IsUIsoOnS1 () const { |
66 | |
67 | return uS1; |
68 | } |
69 | |
70 | |
71 | inline Standard_Boolean IntPatch_Line::IsVIsoOnS1 () const { |
72 | |
73 | return vS1; |
74 | } |
75 | |
76 | |
77 | inline Standard_Boolean IntPatch_Line::IsUIsoOnS2 () const { |
78 | |
79 | return uS2; |
80 | } |
81 | |
82 | |
83 | |
84 | inline Standard_Boolean IntPatch_Line::IsVIsoOnS2 () const { |
85 | |
86 | return vS2; |
87 | } |