4e57c75e |
1 | // Created by: Peter KURNEV |
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 | |
4e57c75e |
15 | #include <BOPDS_PassKey.hxx> |
7fd59977 |
16 | //======================================================================= |
4e57c75e |
17 | //function : InterfVV |
7fd59977 |
18 | //purpose : |
19 | //======================================================================= |
ceaa5e27 |
20 | inline BOPDS_VectorOfInterfVV& BOPDS_DS::InterfVV() |
7fd59977 |
21 | { |
4e57c75e |
22 | return myInterfVV; |
7fd59977 |
23 | } |
7fd59977 |
24 | //======================================================================= |
4e57c75e |
25 | //function : InterfVE |
7fd59977 |
26 | //purpose : |
27 | //======================================================================= |
ceaa5e27 |
28 | inline BOPDS_VectorOfInterfVE& BOPDS_DS::InterfVE() |
7fd59977 |
29 | { |
4e57c75e |
30 | return myInterfVE; |
7fd59977 |
31 | } |
7fd59977 |
32 | //======================================================================= |
4e57c75e |
33 | //function : InterfVF |
7fd59977 |
34 | //purpose : |
35 | //======================================================================= |
ceaa5e27 |
36 | inline BOPDS_VectorOfInterfVF& BOPDS_DS::InterfVF() |
4e57c75e |
37 | { |
38 | return myInterfVF; |
39 | }//======================================================================= |
40 | //function : InterfEE |
41 | //purpose : |
42 | //======================================================================= |
ceaa5e27 |
43 | inline BOPDS_VectorOfInterfEE& BOPDS_DS::InterfEE() |
7fd59977 |
44 | { |
4e57c75e |
45 | return myInterfEE; |
7fd59977 |
46 | } |
7fd59977 |
47 | //======================================================================= |
4e57c75e |
48 | //function : InterfEF |
7fd59977 |
49 | //purpose : |
50 | //======================================================================= |
ceaa5e27 |
51 | inline BOPDS_VectorOfInterfEF& BOPDS_DS::InterfEF() |
7fd59977 |
52 | { |
4e57c75e |
53 | return myInterfEF; |
7fd59977 |
54 | } |
7fd59977 |
55 | //======================================================================= |
4e57c75e |
56 | //function : InterfFF |
7fd59977 |
57 | //purpose : |
58 | //======================================================================= |
ceaa5e27 |
59 | inline BOPDS_VectorOfInterfFF& BOPDS_DS::InterfFF() |
7fd59977 |
60 | { |
4e57c75e |
61 | return myInterfFF; |
7fd59977 |
62 | } |
7fd59977 |
63 | //======================================================================= |
ceaa5e27 |
64 | //function : InterfVZ |
65 | //purpose : |
66 | //======================================================================= |
67 | inline BOPDS_VectorOfInterfVZ& BOPDS_DS::InterfVZ() |
68 | { |
69 | return myInterfVZ; |
70 | } |
71 | //======================================================================= |
72 | //function : InterfEZ |
73 | //purpose : |
74 | //======================================================================= |
75 | inline BOPDS_VectorOfInterfEZ& BOPDS_DS::InterfEZ() |
76 | { |
77 | return myInterfEZ; |
78 | } |
79 | //======================================================================= |
80 | //function : InterfFZ |
81 | //purpose : |
82 | //======================================================================= |
83 | inline BOPDS_VectorOfInterfFZ& BOPDS_DS::InterfFZ() |
84 | { |
85 | return myInterfFZ; |
86 | } |
87 | //======================================================================= |
88 | //function : InterfZZ |
89 | //purpose : |
90 | //======================================================================= |
91 | inline BOPDS_VectorOfInterfZZ& BOPDS_DS::InterfZZ() |
92 | { |
93 | return myInterfZZ; |
94 | } |
95 | //======================================================================= |
96 | //function : NbInterfTypes |
97 | //purpose : |
98 | //======================================================================= |
99 | inline Standard_Integer BOPDS_DS::NbInterfTypes() |
100 | { |
101 | return 10; |
102 | } |
103 | //======================================================================= |
4e57c75e |
104 | //function : AddInterf |
7fd59977 |
105 | //purpose : |
106 | //======================================================================= |
ceaa5e27 |
107 | inline void BOPDS_DS::AddInterf(const Standard_Integer theI1, |
b1d15f53 |
108 | const Standard_Integer theI2) |
7fd59977 |
109 | { |
4e57c75e |
110 | BOPDS_PassKey aPK; |
111 | // |
112 | aPK.SetIds(theI1, theI2); |
113 | myInterfTB.Add(aPK); |
7fd59977 |
114 | } |
7fd59977 |
115 | //======================================================================= |
4e57c75e |
116 | //function : HasInterf |
7fd59977 |
117 | //purpose : |
118 | //======================================================================= |
ceaa5e27 |
119 | inline Standard_Boolean BOPDS_DS::HasInterf |
120 | (const Standard_Integer theI1, |
121 | const Standard_Integer theI2)const |
7fd59977 |
122 | { |
4e57c75e |
123 | BOPDS_PassKey aPK; |
124 | // |
125 | aPK.SetIds(theI1, theI2); |
126 | return myInterfTB.Contains(aPK); |
7fd59977 |
127 | } |
7fd59977 |
128 | //======================================================================= |
4e57c75e |
129 | //function : Interferences |
7fd59977 |
130 | //purpose : |
131 | //======================================================================= |
ceaa5e27 |
132 | inline const BOPDS_MapOfPassKey& BOPDS_DS::Interferences()const |
7fd59977 |
133 | { |
4e57c75e |
134 | return myInterfTB; |
7fd59977 |
135 | } |
b1d15f53 |
136 | //======================================================================= |
137 | //function : SetFuzzyValue |
138 | //purpose : |
139 | //======================================================================= |
140 | inline void BOPDS_DS::SetFuzzyValue(const Standard_Real theFuzz) |
141 | { |
92e24f9d |
142 | myFuzzyValue = (theFuzz < 0.) ? 0. : theFuzz; |
b1d15f53 |
143 | } |
144 | //======================================================================= |
145 | //function : FuzzyValue |
146 | //purpose : |
147 | //======================================================================= |
148 | inline Standard_Real BOPDS_DS::FuzzyValue() const |
149 | { |
150 | return myFuzzyValue; |
151 | } |