summaryrefslogtreecommitdiff
path: root/inc/BOPTools_SSInterference.hxx
blob: f07f5fb68ae0521b71b507291924700bf6178cef (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
// 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 _BOPTools_SSInterference_HeaderFile
#define _BOPTools_SSInterference_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _BOPTools_ListOfPaveBlock_HeaderFile
#include <BOPTools_ListOfPaveBlock.hxx>
#endif
#ifndef _BOPTools_PaveSet_HeaderFile
#include <BOPTools_PaveSet.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _BOPTools_SequenceOfCurves_HeaderFile
#include <BOPTools_SequenceOfCurves.hxx>
#endif
#ifndef _IntTools_SequenceOfPntOn2Faces_HeaderFile
#include <IntTools_SequenceOfPntOn2Faces.hxx>
#endif
#ifndef _TColStd_ListOfInteger_HeaderFile
#include <TColStd_ListOfInteger.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _BOPTools_IndexedDataMapOfIntegerState_HeaderFile
#include <BOPTools_IndexedDataMapOfIntegerState.hxx>
#endif
#ifndef _BOPTools_ShapeShapeInterference_HeaderFile
#include <BOPTools_ShapeShapeInterference.hxx>
#endif
class IntTools_SequenceOfCurves;
class IntTools_SequenceOfPntOn2Faces;
class BOPTools_PaveBlock;
class BOPTools_ListOfPaveBlock;
class BOPTools_PaveSet;
class BOPTools_SequenceOfCurves;
class BOPTools_IndexedDataMapOfIntegerState;
class TColStd_ListOfInteger;


//! class for storing a Face/Face interference <br>
//!         Each  F/F interference  contains  information  about <br>
//!         1.  myPBs   - PaveBlocks (made from edges from the faces <br>
//!             that are IN-2D or ON-2D; <br>
//!         2.  myCurves- Sequence of curves of intersection; <br>
//!         3.  myTangentFacesFlag  - The BOOL flag indicates that <br>
//!             the  faces are SD in terms of the F/F Intersector. <br>
//!         4.  mySenseFlag  - value that is equal +1 or -1 depending <br>
//!             on scalar product between normals to each face.  This <br>
//!             valie is valid for the SDF only. <br>
//!         5.  myAlonePnts  - contains 3D-points that are place <br>
//!             of  intersection between the two faces <br>
//!         6.  myAloneVertices   - contains indices of vertices <br>
//!             that correspond to the points  myAlonePnts; <br>
class BOPTools_SSInterference  : public BOPTools_ShapeShapeInterference {
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); 
  }

  
//! Empty constructor <br>
  Standard_EXPORT   BOPTools_SSInterference();
  
//! Constructor <br>
//! anIndex1, <br>
//! anIndex2 see BOPTools_ShapeShapeInterference for details <br>
//! aTolR3D  - value of tolerance to reach in 3D-space <br>
//! aTolR2D  - value of tolerance to reach in 2D-space <br>
//! aCurves  see  IntTools_Curve  for details,  please <br>
  Standard_EXPORT   BOPTools_SSInterference(const Standard_Integer anIndex1,const Standard_Integer anIndex2,const Standard_Real aTolR3D,const Standard_Real aTolR2D,const IntTools_SequenceOfCurves& aCurves,const IntTools_SequenceOfPntOn2Faces& aPnts);
  
//! Modifier <br>
  Standard_EXPORT     void AppendBlock(const BOPTools_PaveBlock& aPB) ;
  
//! Selector <br>
  Standard_EXPORT    const BOPTools_ListOfPaveBlock& PaveBlocks() const;
  
//! Selector <br>
  Standard_EXPORT     BOPTools_PaveSet& NewPaveSet() ;
  
//! Selector <br>
  Standard_EXPORT     Standard_Real TolR3D() const;
  
//! Selector <br>
  Standard_EXPORT     Standard_Real TolR2D() const;
  
//! Selector <br>
  Standard_EXPORT     BOPTools_SequenceOfCurves& Curves() ;
  
//! Modifier <br>
  Standard_EXPORT     void SetTangentFacesFlag(const Standard_Boolean aFlag) ;
  
//! Selector <br>
  Standard_EXPORT     Standard_Boolean IsTangentFaces() const;
  
//! Modifier <br>
  Standard_EXPORT     void SetSenseFlag(const Standard_Integer aFlag) ;
  
//! Selector <br>
  Standard_EXPORT     Standard_Integer SenseFlag() const;
  
//! Modifier <br>
  Standard_EXPORT     void SetStatesMap(const BOPTools_IndexedDataMapOfIntegerState& aStatesMap) ;
  
//! Selector <br>
  Standard_EXPORT    const BOPTools_IndexedDataMapOfIntegerState& StatesMap() const;
  
//! Modifier <br>
  Standard_EXPORT     void SetAlonePnts(const IntTools_SequenceOfPntOn2Faces& aPnts) ;
  
//! Selector <br>
  Standard_EXPORT    const IntTools_SequenceOfPntOn2Faces& AlonePnts() const;
  
//! Selector <br>
//! <br>
  Standard_EXPORT     TColStd_ListOfInteger& AloneVertices() ;
  
//! Modifier <br>
//! <br>
  Standard_EXPORT     void SetSharedEdges(const TColStd_ListOfInteger& aLS) ;
  
//! Selector <br>
//! <br>
  Standard_EXPORT    const TColStd_ListOfInteger& SharedEdges() const;





protected:



BOPTools_ListOfPaveBlock myPBs;
BOPTools_PaveSet myNewPaveSet;
Standard_Real myTolR3D;
Standard_Real myTolR2D;
BOPTools_SequenceOfCurves myCurves;
IntTools_SequenceOfPntOn2Faces myAlonePnts;
TColStd_ListOfInteger myAloneVertices;
Standard_Boolean myTangentFacesFlag;
Standard_Integer mySenseFlag;
BOPTools_IndexedDataMapOfIntegerState myStatesMap;
TColStd_ListOfInteger mySharedEdges;


private:





};





// other Inline functions and methods (like "C++: function call" methods)


#endif