b311480e |
1 | // Created on: 1996-01-29 |
2 | // Created by: Jean Yves LEBEY |
3 | // Copyright (c) 1996-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
0797d9d3 |
17 | #ifdef OCCT_DEBUG |
7fd59977 |
18 | |
19 | #include <Standard_Type.hxx> |
20 | |
21 | static Standard_Boolean TopOpeBRepBuild_traceCU = Standard_False; // dump curves |
22 | Standard_EXPORT void TopOpeBRepBuild_SettraceCU(const Standard_Boolean b) { TopOpeBRepBuild_traceCU = b; } |
23 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceCU() { return TopOpeBRepBuild_traceCU; } |
24 | |
25 | static Standard_Boolean TopOpeBRepBuild_traceCUV = Standard_False; // dump curves verbose or not |
26 | Standard_EXPORT void TopOpeBRepBuild_SettraceCUV(const Standard_Boolean b) { TopOpeBRepBuild_traceCUV = b; } |
27 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceCUV() { return TopOpeBRepBuild_traceCUV; } |
28 | |
29 | static Standard_Boolean TopOpeBRepBuild_traceSPF = Standard_False; // SplitFace |
30 | Standard_EXPORT void TopOpeBRepBuild_SettraceSPF(const Standard_Boolean b) { TopOpeBRepBuild_traceSPF = b; } |
31 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceSPF() { return TopOpeBRepBuild_traceSPF; } |
32 | |
33 | static Standard_Boolean TopOpeBRepBuild_traceSPS = Standard_False; // SplitSolid |
34 | Standard_EXPORT void TopOpeBRepBuild_SettraceSPS(const Standard_Boolean b) { TopOpeBRepBuild_traceSPS = b; } |
35 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceSPS() { return TopOpeBRepBuild_traceSPS; } |
36 | |
37 | static Standard_Boolean TopOpeBRepBuild_traceSHEX = Standard_False; // Check edge |
38 | Standard_EXPORT void TopOpeBRepBuild_SettraceSHEX(const Standard_Boolean b) { TopOpeBRepBuild_traceSHEX = b; } |
39 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceSHEX() { return TopOpeBRepBuild_traceSHEX; } |
40 | |
41 | static Standard_Boolean TopOpeBRepBuild_contextSF2 = Standard_False; |
42 | Standard_EXPORT void TopOpeBRepBuild_SetcontextSF2(const Standard_Boolean b) { TopOpeBRepBuild_contextSF2 = b; } |
43 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextSF2() { return TopOpeBRepBuild_contextSF2; } |
44 | |
45 | static Standard_Boolean TopOpeBRepBuild_contextSPEON = Standard_False; |
46 | Standard_EXPORT void TopOpeBRepBuild_SetcontextSPEON(const Standard_Boolean b) { TopOpeBRepBuild_contextSPEON = b; } |
47 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextSPEON() { return TopOpeBRepBuild_contextSPEON; } |
48 | |
49 | static Standard_Boolean TopOpeBRepBuild_traceSS = Standard_False; |
50 | Standard_EXPORT void TopOpeBRepBuild_SettraceSS(const Standard_Boolean b) { TopOpeBRepBuild_traceSS = b; } |
51 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceSS() { return TopOpeBRepBuild_traceSS; } |
52 | |
53 | static Standard_Boolean TopOpeBRepBuild_contextSSCONNEX = Standard_False; |
54 | Standard_EXPORT void TopOpeBRepBuild_SetcontextSSCONNEX(const Standard_Boolean b) { TopOpeBRepBuild_contextSSCONNEX = b; } |
55 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextSSCONNEX() { return TopOpeBRepBuild_contextSSCONNEX; } |
56 | |
57 | static Standard_Boolean TopOpeBRepBuild_traceAREA = Standard_False; |
58 | Standard_EXPORT void TopOpeBRepBuild_SettraceAREA(const Standard_Boolean b) {TopOpeBRepBuild_traceAREA = b; } |
59 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceAREA() { return TopOpeBRepBuild_traceAREA; } |
60 | |
61 | static Standard_Boolean TopOpeBRepBuild_traceKPB = Standard_False; |
62 | Standard_EXPORT void TopOpeBRepBuild_SettraceKPB(const Standard_Boolean b) |
63 | { TopOpeBRepBuild_traceKPB = b; } |
64 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceKPB() |
65 | { return TopOpeBRepBuild_traceKPB; } |
66 | |
67 | static Standard_Boolean TopOpeBRepBuild_traceCHK = Standard_False; |
68 | Standard_EXPORT void TopOpeBRepBuild_SettraceCHK(const Standard_Boolean b) |
69 | { TopOpeBRepBuild_traceCHK = b; } |
70 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceCHK() |
71 | { return TopOpeBRepBuild_traceCHK; } |
72 | |
73 | static Standard_Boolean TopOpeBRepBuild_traceCHKOK = Standard_False; |
74 | Standard_EXPORT void TopOpeBRepBuild_SettraceCHKOK(const Standard_Boolean b) |
75 | { TopOpeBRepBuild_traceCHKOK = b; } |
76 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceCHKOK() |
77 | { return TopOpeBRepBuild_traceCHKOK; } |
78 | |
79 | static Standard_Boolean TopOpeBRepBuild_traceCHKNOK = Standard_False; |
80 | Standard_EXPORT void TopOpeBRepBuild_SettraceCHKNOK(const Standard_Boolean b) |
81 | { TopOpeBRepBuild_traceCHKNOK = b; } |
82 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceCHKNOK() |
83 | { return TopOpeBRepBuild_traceCHKNOK; } |
84 | |
85 | static Standard_Boolean TopOpeBRepBuild_tracePURGE = Standard_False; |
86 | Standard_EXPORT void TopOpeBRepBuild_SettracePURGE(const Standard_Boolean b) |
87 | { TopOpeBRepBuild_tracePURGE = b; } |
88 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettracePURGE() |
89 | { return TopOpeBRepBuild_tracePURGE; } |
90 | |
91 | static Standard_Boolean TopOpeBRepBuild_traceSAVFREGU = Standard_False; |
92 | Standard_EXPORT void TopOpeBRepBuild_SettraceSAVFREGU(const Standard_Boolean b) { TopOpeBRepBuild_traceSAVFREGU = b; } |
93 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceSAVFREGU() { return TopOpeBRepBuild_traceSAVFREGU; } |
94 | static Standard_Boolean TopOpeBRepBuild_traceSAVSREGU = Standard_False; |
95 | Standard_EXPORT void TopOpeBRepBuild_SettraceSAVSREGU(const Standard_Boolean b) { TopOpeBRepBuild_traceSAVSREGU = b; } |
96 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceSAVSREGU() { return TopOpeBRepBuild_traceSAVSREGU; } |
97 | |
98 | static Standard_Boolean TopOpeBRepBuild_traceFUFA = Standard_False; |
99 | Standard_EXPORT void TopOpeBRepBuild_SettraceFUFA(const Standard_Boolean b) { TopOpeBRepBuild_traceFUFA = b; } |
100 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceFUFA() { return TopOpeBRepBuild_traceFUFA; } |
101 | |
102 | static Standard_Boolean TopOpeBRepBuild_contextNOPURGE = Standard_False; |
103 | Standard_EXPORT void TopOpeBRepBuild_SetcontextNOPURGE(const Standard_Boolean b) { TopOpeBRepBuild_contextNOPURGE = b; } |
104 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOPURGE() { |
105 | Standard_Boolean b = TopOpeBRepBuild_contextNOPURGE; |
04232180 |
106 | if (b) std::cout<<"context (TopOpeBRepBuild) NOPURGE actif"<<std::endl; |
7fd59977 |
107 | return b; |
108 | } |
109 | |
110 | static Standard_Boolean TopOpeBRepBuild_contextNOREGUFA = Standard_False; |
111 | Standard_EXPORT void TopOpeBRepBuild_SetcontextNOREGUFA(const Standard_Boolean b) { TopOpeBRepBuild_contextNOREGUFA = b; } |
112 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOREGUFA() { |
113 | Standard_Boolean b = TopOpeBRepBuild_contextNOREGUFA; |
04232180 |
114 | if (b) std::cout<<"context (TopOpeBRepBuild) NOREGUFA actif"<<std::endl; |
7fd59977 |
115 | return b; |
116 | } |
117 | |
118 | static Standard_Boolean TopOpeBRepBuild_contextNOREGUSO = Standard_False; |
119 | Standard_EXPORT void TopOpeBRepBuild_SetcontextNOREGUSO(const Standard_Boolean b) { TopOpeBRepBuild_contextNOREGUSO = b; } |
120 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOREGUSO() { |
121 | Standard_Boolean b = TopOpeBRepBuild_contextNOREGUSO; |
04232180 |
122 | if (b) std::cout<<"context (TopOpeBRepBuild) NOREGUSO actif"<<std::endl; |
7fd59977 |
123 | return b; |
124 | } |
125 | |
126 | static Standard_Boolean TopOpeBRepBuild_contextREGUXPU = Standard_False; |
127 | Standard_EXPORT void TopOpeBRepBuild_SetcontextREGUXPU(const Standard_Boolean b) { TopOpeBRepBuild_contextREGUXPU = b; } |
128 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextREGUXPU() { return TopOpeBRepBuild_contextREGUXPU; } |
129 | |
130 | static Standard_Boolean TopOpeBRepBuild_contextNOCORRISO = Standard_False; |
131 | Standard_EXPORT void TopOpeBRepBuild_SetcontextNOCORRISO(const Standard_Boolean b) { TopOpeBRepBuild_contextNOCORRISO = b; } |
132 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOCORRISO() { return TopOpeBRepBuild_contextNOCORRISO; } |
133 | |
134 | static Standard_Boolean TopOpeBRepBuild_contextEINTERNAL = Standard_False; |
135 | Standard_EXPORT void TopOpeBRepBuild_SetcontextEINTERNAL(const Standard_Boolean b) { TopOpeBRepBuild_contextEINTERNAL = b; } |
136 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEINTERNAL() { |
137 | Standard_Boolean b = TopOpeBRepBuild_contextEINTERNAL; |
04232180 |
138 | if (b) std::cout<<"context (TopOpeBRepBuild) EINTERNAL actif"<<std::endl; |
7fd59977 |
139 | return b; |
140 | } |
141 | |
142 | static Standard_Boolean TopOpeBRepBuild_contextEEXTERNAL = Standard_False; |
143 | Standard_EXPORT void TopOpeBRepBuild_SetcontextEEXTERNAL(const Standard_Boolean b) { TopOpeBRepBuild_contextEEXTERNAL = b; } |
144 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEEXTERNAL() { |
145 | Standard_Boolean b = TopOpeBRepBuild_contextEEXTERNAL; |
04232180 |
146 | if (b) std::cout<<"context (TopOpeBRepBuild) EEXTERNAL actif"<<std::endl; |
7fd59977 |
147 | return b; |
148 | } |
149 | |
150 | static Standard_Boolean TopOpeBRepBuild_contextNOSG = Standard_False; |
151 | Standard_EXPORT void TopOpeBRepBuild_SetcontextNOSG(const Standard_Boolean b) { TopOpeBRepBuild_contextNOSG = b; } |
152 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOSG() { |
153 | Standard_Boolean b = TopOpeBRepBuild_contextNOSG; |
04232180 |
154 | if (b) std::cout<<"context (TopOpeBRepBuild) NOSG actif"<<std::endl; |
7fd59977 |
155 | return b; |
156 | } |
157 | |
158 | static Standard_Boolean TopOpeBRepBuild_contextNOFUFA = Standard_False; |
159 | Standard_EXPORT void TopOpeBRepBuild_SetcontextNOFUFA(const Standard_Boolean b) { TopOpeBRepBuild_contextNOFUFA = b; } |
160 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOFUFA() { |
161 | Standard_Boolean b = TopOpeBRepBuild_contextNOFUFA; |
04232180 |
162 | if (b) std::cout<<"context (TopOpeBRepBuild) NOFUFA actif"<<std::endl; |
7fd59977 |
163 | return b; |
164 | } |
165 | |
166 | static Standard_Boolean TopOpeBRepBuild_contextNOFE = Standard_False; |
167 | Standard_EXPORT void TopOpeBRepBuild_SetcontextNOFE(const Standard_Boolean b) { TopOpeBRepBuild_contextNOFE = b; } |
168 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOFE() { |
169 | Standard_Boolean b = TopOpeBRepBuild_contextNOFE; |
04232180 |
170 | if (b) std::cout<<"context (TopOpeBRepBuild) NOFE actif"<<std::endl; |
7fd59977 |
171 | return b; |
172 | } |
173 | |
174 | static Standard_Boolean TopOpeBRepBuild_traceFE = Standard_False; // trace FuseEdges |
175 | Standard_EXPORT void TopOpeBRepBuild_SettraceFE(const Standard_Boolean b) { TopOpeBRepBuild_traceFE = b; } |
176 | Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GettraceFE() { return TopOpeBRepBuild_traceFE; } |
177 | |
0797d9d3 |
178 | // #ifdef OCCT_DEBUG |
7fd59977 |
179 | #endif |