1 // File generated by CPPExt (Value)
3 // Copyright (C) 1991 - 2000 by
4 // Matra Datavision SA. All rights reserved.
6 // Copyright (C) 2001 - 2004 by
7 // Open CASCADE SA. All rights reserved.
9 // This file is part of the Open CASCADE Technology software.
11 // This software may be distributed and/or modified under the terms and
12 // conditions of the Open CASCADE Public License as defined by Open CASCADE SA
13 // and appearing in the file LICENSE included in the packaging of this file.
15 // This software is distributed on an "AS IS" basis, without warranty of any
16 // kind, and Open CASCADE SA hereby disclaims all such warranties,
17 // including without limitation, any warranties of merchantability, fitness
18 // for a particular purpose or non-infringement. Please see the License for
19 // the specific terms and conditions governing rights and limitations under the
22 #ifndef _NMTTools_PaveFiller_HeaderFile
23 #define _NMTTools_PaveFiller_HeaderFile
25 #ifndef _NMTDS_PShapesDataStructure_HeaderFile
26 #include <NMTDS_PShapesDataStructure.hxx>
28 #ifndef _Standard_Boolean_HeaderFile
29 #include <Standard_Boolean.hxx>
31 #ifndef _Standard_Integer_HeaderFile
32 #include <Standard_Integer.hxx>
34 #ifndef _BOPTools_PavePool_HeaderFile
35 #include <BOPTools_PavePool.hxx>
37 #ifndef _NMTTools_CommonBlockPool_HeaderFile
38 #include <NMTTools_CommonBlockPool.hxx>
40 #ifndef _BOPTools_SplitShapesPool_HeaderFile
41 #include <BOPTools_SplitShapesPool.hxx>
43 #ifndef _IntTools_Context_HeaderFile
44 #include <IntTools_Context.hxx>
46 #ifndef _BOPTools_SSIntersectionAttribute_HeaderFile
47 #include <BOPTools_SSIntersectionAttribute.hxx>
49 #ifndef _NMTTools_IndexedDataMapOfIndexedMapOfInteger_HeaderFile
50 #include <NMTTools_IndexedDataMapOfIndexedMapOfInteger.hxx>
52 #ifndef _TColStd_DataMapOfIntegerInteger_HeaderFile
53 #include <TColStd_DataMapOfIntegerInteger.hxx>
55 #ifndef _NMTDS_PIterator_HeaderFile
56 #include <NMTDS_PIterator.hxx>
58 #ifndef _TopoDS_Shape_HeaderFile
59 #include <TopoDS_Shape.hxx>
61 #ifndef _NMTDS_PInterfPool_HeaderFile
62 #include <NMTDS_PInterfPool.hxx>
64 #ifndef _TopAbs_ShapeEnum_HeaderFile
65 #include <TopAbs_ShapeEnum.hxx>
67 #ifndef _Standard_Real_HeaderFile
68 #include <Standard_Real.hxx>
72 class IntTools_ShrunkRange;
73 class IntTools_Context;
74 class BOPTools_PavePool;
75 class NMTTools_CommonBlockPool;
76 class BOPTools_SplitShapesPool;
77 class BOPTools_PaveBlock;
79 class NMTTools_ListOfCommonBlock;
80 class NMTTools_CommonBlock;
81 class BOPTools_IDMapOfPaveBlockIMapOfPaveBlock;
82 class BOPTools_IDMapOfPaveBlockIMapOfInteger;
83 class BooleanOperations_IndexedDataMapOfShapeInteger;
84 class TColStd_ListOfInteger;
85 class BOPTools_ListOfPaveBlock;
87 class BOPTools_PaveSet;
89 class BOPTools_SSInterference;
91 class NMTTools_IndexedDataMapOfIndexedMapOfInteger;
92 class TopTools_ListOfShape;
94 class TopTools_DataMapOfShapeShape;
97 #ifndef _Standard_HeaderFile
98 #include <Standard.hxx>
100 #ifndef _Standard_Macro_HeaderFile
101 #include <Standard_Macro.hxx>
105 class NMTTools_PaveFiller {
109 void* operator new(size_t,void* anAddress)
113 void* operator new(size_t size)
115 return Standard::Allocate(size);
117 void operator delete(void *anAddress)
119 if (anAddress) Standard::Free((Standard_Address&)anAddress);
125 Standard_EXPORT NMTTools_PaveFiller();
126 Standard_EXPORT virtual ~NMTTools_PaveFiller();
129 Standard_EXPORT void SetCompositeShape(const TopoDS_Shape& aS) ;
132 Standard_EXPORT const TopoDS_Shape& CompositeShape() const;
135 Standard_EXPORT NMTDS_PShapesDataStructure DS() ;
138 Standard_EXPORT NMTDS_PIterator DSIt() ;
141 Standard_EXPORT NMTDS_PInterfPool IP() ;
144 Standard_EXPORT virtual void Perform() ;
147 Standard_EXPORT Standard_Boolean IsDone() const;
150 Standard_EXPORT const IntTools_Context& Context() const;
153 Standard_EXPORT IntTools_Context& ChangeContext() ;
156 Standard_EXPORT const BOPTools_PavePool& PavePool() const;
159 Standard_EXPORT BOPTools_PavePool& ChangePavePool() ;
162 Standard_EXPORT const NMTTools_CommonBlockPool& CommonBlockPool() const;
165 Standard_EXPORT NMTTools_CommonBlockPool& ChangeCommonBlockPool() ;
168 Standard_EXPORT const BOPTools_SplitShapesPool& SplitShapesPool() const;
171 Standard_EXPORT BOPTools_SplitShapesPool& ChangeSplitShapesPool() ;
174 Standard_EXPORT Standard_Integer FindSDVertex(const Standard_Integer nV) const;
177 Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
180 Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
183 Standard_EXPORT Standard_Integer SplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,TColStd_ListOfInteger& aLs) ;
186 Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
189 Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
192 Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
195 Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
198 Standard_EXPORT Standard_Integer SplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,BOPTools_ListOfPaveBlock& aLs) ;
201 Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
204 Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
207 Standard_EXPORT Standard_Integer SplitsFace(const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
210 Standard_EXPORT Standard_Integer SplitsFace(const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
213 Standard_EXPORT Standard_Integer CommonBlocksFace(const Standard_Integer nF,NMTTools_ListOfCommonBlock& aLCB) ;
216 Standard_EXPORT void PrepareFace(const Standard_Integer nF,TopoDS_Face& aF) ;
219 Standard_EXPORT const BOPTools_PaveBlock& RealPaveBlock(const BOPTools_PaveBlock& aPB) ;
222 Standard_EXPORT const BOPTools_PaveBlock& RealPaveBlock(const BOPTools_PaveBlock& aPB,TColStd_ListOfInteger& aLB,Standard_Integer& aIsCommonBlock) ;
225 Standard_EXPORT void RealSplitsFace(const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
228 Standard_EXPORT Standard_Boolean HasRealSplitsInOnFace(const Standard_Integer nF1,const Standard_Integer nF2) ;
231 Standard_EXPORT void RealSplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
234 Standard_EXPORT void RealSplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
237 Standard_EXPORT void RealSplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,BOPTools_ListOfPaveBlock& aLs) ;
240 Standard_EXPORT void RealSplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
243 Standard_EXPORT void RealSplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
246 Standard_EXPORT void PrepareSetForFace(const Standard_Integer nF1,const Standard_Integer nF2,const BOPTools_ListOfPaveBlock& aLPB,BOPTools_PaveSet& aPSF) ;
249 Standard_EXPORT void PutPaveOnCurve(const BOPTools_PaveSet& aPSF,const Standard_Real aTol,BOPTools_Curve& aBC) ;
252 Standard_EXPORT void PutBoundPaveOnCurve(BOPTools_Curve& aBC,BOPTools_SSInterference& aFF) ;
255 Standard_EXPORT void PutBoundPaveOnCurve(const gp_Pnt& aP,const Standard_Real aT,BOPTools_Curve& aBC,BOPTools_SSInterference& aFF) ;
258 Standard_EXPORT Standard_Boolean FindPave(const gp_Pnt& aP,const Standard_Real aTpV,const BOPTools_PaveSet& aPS,BOPTools_Pave& aPV) ;
261 Standard_EXPORT Standard_Integer CheckIntermediatePoint(const BOPTools_PaveBlock& aPB,const BOPTools_PaveBlock& aPBR,const Standard_Real aTol) ;
264 Standard_EXPORT Standard_Boolean IsExistingPaveBlock(const BOPTools_PaveBlock& aPB,const BOPTools_ListOfPaveBlock& aLPB,const Standard_Real aTol) ;
267 Standard_EXPORT void MakePCurves() ;
270 Standard_EXPORT const NMTTools_IndexedDataMapOfIndexedMapOfInteger& AloneVertices() const;
273 Standard_EXPORT Standard_Boolean IsExistingPaveBlock(const BOPTools_PaveBlock& aPB,const TopTools_ListOfShape& aLPB,const Standard_Real aTol) ;
276 Standard_EXPORT Standard_Boolean CheckCoincidence(const BOPTools_PaveBlock& aPB,const BOPTools_ListOfPaveBlock& aLPB) ;
279 Standard_EXPORT Standard_Integer CheckIntermediatePoint(const BOPTools_PaveBlock& aPB,const TopoDS_Edge& aE,const Standard_Real aTol) ;
282 Standard_EXPORT void SharedEdges(const Standard_Integer nF1,const Standard_Integer nF2,TColStd_ListOfInteger& aLNE,TopTools_ListOfShape& aLSE) ;
285 Standard_EXPORT void FuseVertices(const TopoDS_Shape& aC,TopTools_DataMapOfShapeShape& aDMVV) const;
297 Standard_EXPORT virtual void Init() ;
300 Standard_EXPORT virtual void Clear() ;
303 Standard_EXPORT virtual void PerformVV() ;
306 Standard_EXPORT virtual void PerformVE() ;
309 Standard_EXPORT virtual void PerformVF() ;
312 Standard_EXPORT virtual void PerformEE() ;
315 Standard_EXPORT virtual void PerformEF() ;
318 Standard_EXPORT virtual void PerformFF() ;
321 Standard_EXPORT void MakeSplitEdges() ;
324 Standard_EXPORT virtual void PreparePaveBlocks(const TopAbs_ShapeEnum aType1,const TopAbs_ShapeEnum aType2) ;
327 Standard_EXPORT void CorrectShrunkRanges(const Standard_Integer aSide,const BOPTools_Pave& aPave,IntTools_ShrunkRange& aSR) ;
330 Standard_EXPORT virtual void PreparePaveBlocks(const Standard_Integer anE) ;
333 Standard_EXPORT virtual void PrepareEdges() ;
336 Standard_EXPORT Standard_Boolean IsSuccessorsComputed(const Standard_Integer iF1,const Standard_Integer iF2) const;
339 Standard_EXPORT Standard_Boolean IsBlocksCoinside(const BOPTools_PaveBlock& aPB1,const BOPTools_PaveBlock& aPB2) const;
342 Standard_EXPORT void RefinePavePool() ;
345 Standard_EXPORT Standard_Integer CheckFacePaves(const TopoDS_Vertex& aV,const Standard_Integer nF) ;
348 Standard_EXPORT void ReplaceCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
351 Standard_EXPORT void RemoveCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
354 Standard_EXPORT void SplitCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
357 Standard_EXPORT void SplitCommonBlock(const NMTTools_CommonBlock& aCB,NMTTools_ListOfCommonBlock& aLCB) ;
360 Standard_EXPORT void EECommonBlocks(const BOPTools_IDMapOfPaveBlockIMapOfPaveBlock& aM) ;
363 Standard_EXPORT void EFCommonBlocks(const BOPTools_IDMapOfPaveBlockIMapOfInteger& aMapCB) ;
366 Standard_EXPORT void EENewVertices(const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
369 Standard_EXPORT void EENewVertices(const TopoDS_Vertex& aV,const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
372 Standard_EXPORT void EFNewVertices(const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
375 Standard_EXPORT void EFNewVertices(const TopoDS_Vertex& aV,const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
378 Standard_EXPORT void UpdateCommonBlocks() ;
381 Standard_EXPORT void UpdatePaveBlocks() ;
384 Standard_EXPORT Standard_Integer SplitIndex(const BOPTools_PaveBlock& aPB) const;
387 Standard_EXPORT void MakeBlocks() ;
390 Standard_EXPORT void PerformVF1() ;
393 Standard_EXPORT void MakeAloneVertices() ;
398 NMTDS_PShapesDataStructure myDS;
399 Standard_Boolean myIsDone;
400 Standard_Integer myNbSources;
401 Standard_Integer myNbEdges;
402 BOPTools_PavePool myPavePool;
403 BOPTools_PavePool myPavePoolNew;
404 NMTTools_CommonBlockPool myCommonBlockPool;
405 BOPTools_SplitShapesPool mySplitShapesPool;
406 IntTools_Context myContext;
407 BOPTools_SSIntersectionAttribute mySectionAttribute;
408 NMTTools_IndexedDataMapOfIndexedMapOfInteger myAloneVertices;
409 TColStd_DataMapOfIntegerInteger myVSD;
410 NMTDS_PIterator myDSIt;
411 TopoDS_Shape myCompositeShape;
412 NMTDS_PInterfPool myIP;
431 // other Inline functions and methods (like "C++: function call" methods)