blob: affabf460547cdf68529e7e84e14b29dca4092dd (
plain)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _BOP_Builder_HeaderFile
#define _BOP_Builder_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _TopoDS_Shape_HeaderFile
#include <TopoDS_Shape.hxx>
#endif
#ifndef _BOP_Operation_HeaderFile
#include <BOP_Operation.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _BOPTools_PDSFiller_HeaderFile
#include <BOPTools_PDSFiller.hxx>
#endif
#ifndef _TopTools_IndexedMapOfShape_HeaderFile
#include <TopTools_IndexedMapOfShape.hxx>
#endif
#ifndef _TopTools_IndexedDataMapOfShapeListOfShape_HeaderFile
#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
#endif
#ifndef _TopTools_ListOfShape_HeaderFile
#include <TopTools_ListOfShape.hxx>
#endif
#ifndef _Handle_BOP_HistoryCollector_HeaderFile
#include <Handle_BOP_HistoryCollector.hxx>
#endif
#ifndef _TopAbs_ShapeEnum_HeaderFile
#include <TopAbs_ShapeEnum.hxx>
#endif
class BOP_HistoryCollector;
class TopoDS_Shape;
class BOPTools_DSFiller;
class TopTools_ListOfShape;
class BOP_Builder {
public:
void* operator new(size_t,void* anAddress)
{
return anAddress;
}
void* operator new(size_t size)
{
return Standard::Allocate(size);
}
void operator delete(void *anAddress)
{
if (anAddress) Standard::Free((Standard_Address&)anAddress);
}
//! Set shapes (arguments) to perform BO <br>
Standard_EXPORT void SetShapes(const TopoDS_Shape& aS1,const TopoDS_Shape& aS2) ;
//! Set type of the BO to perform <br>
//! <br>
Standard_EXPORT void SetOperation(const BOP_Operation anOp) ;
//! Set the flag to allow the result <br>
//! be manifold or non-manifold (not used) <br>
Standard_EXPORT void SetManifoldFlag(const Standard_Boolean aFlag) ;
//! Selector <br>
Standard_EXPORT const TopoDS_Shape& Shape1() const;
//! Selector <br>
Standard_EXPORT const TopoDS_Shape& Shape2() const;
//! Selector <br>
//! <br>
Standard_EXPORT BOP_Operation Operation() const;
//! Selector <br>
//! <br>
Standard_EXPORT Standard_Boolean ManifoldFlag() const;
//! Selector <br>
//! <br>
Standard_EXPORT Standard_Boolean IsDone() const;
//! Selector <br>
Standard_EXPORT Standard_Integer ErrorStatus() const;
//! Returns the result of the BO <br>
//! <br>
Standard_EXPORT const TopoDS_Shape& Result() const;
//! Does the BO from the beggining to the end, <br>
//! i.e. create new DataStructure, DSFiller, <br>
//! compute all interferences, compute states, <br>
//! build result etc <br>
Standard_EXPORT virtual void Do() ;
//! Does the BO using existing Filler to the end <br>
//! <br>
Standard_EXPORT virtual void DoWithFiller(const BOPTools_DSFiller& aDSF) ;
//! Constructs the final result of the BO <br>
//! <br>
Standard_EXPORT virtual void BuildResult() ;
//! Destructor <br>
//! <br>
Standard_EXPORT virtual void Destroy() ;
Standard_EXPORT virtual ~BOP_Builder(){Destroy();}
//! Sort types of shapes as integers in increasing order <br>
//! <br>
Standard_EXPORT static void SortTypes(TopAbs_ShapeEnum& aType1,TopAbs_ShapeEnum& aType2) ;
//! Returns the list of shapes modified from the shape aS <br>
//! <br>
Standard_EXPORT const TopTools_ListOfShape& Modified(const TopoDS_Shape& aS) const;
//! Returns TRUE if the result does not contain the shape aS <br>
//! <br>
Standard_EXPORT Standard_Boolean IsDeleted(const TopoDS_Shape& aS) const;
//! Returns the list of shapes that are parts of BO "Section" <br>
//! for given arguments. <br>
//! For Internal usage <br>
//! <br>
Standard_EXPORT const TopTools_ListOfShape& SectionEdges() const;
Standard_EXPORT virtual void SetHistoryCollector(const Handle(BOP_HistoryCollector)& theHistory) ;
Standard_EXPORT Handle_BOP_HistoryCollector GetHistoryCollector() const;
protected:
//! Empty constructor; <br>
//! <br>
Standard_EXPORT BOP_Builder();
//! Fill the list of shapes modified from the shape aS. <br>
//! For Internal usage <br>
//! <br>
Standard_EXPORT void FillModified() ;
//! Fill the list of shapes modified from the shape aS. <br>
//! For Internal usage <br>
//! <br>
Standard_EXPORT void FillModified(const TopoDS_Shape& aS,const TopTools_ListOfShape& aL) ;
//! Fill the list of shapes modified from the shape aS <br>
//! For Internal usage <br>
//! <br>
Standard_EXPORT void FillModified(const TopoDS_Shape& aE,const TopoDS_Shape& aSp) ;
TopoDS_Shape myShape1;
TopoDS_Shape myShape2;
BOP_Operation myOperation;
Standard_Boolean myManifoldFlag;
Standard_Boolean myIsDone;
Standard_Integer myErrorStatus;
TopoDS_Shape myResult;
Standard_Integer myDraw;
BOPTools_PDSFiller myDSFiller;
TopTools_IndexedMapOfShape myResultMap;
TopTools_IndexedDataMapOfShapeListOfShape myModifiedMap;
TopTools_ListOfShape myEmptyList;
TopTools_ListOfShape mySectionEdges;
Handle_BOP_HistoryCollector myHistory;
private:
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|