Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / NMTTools / NMTTools_DEProcessor.hxx
1 // File generated by CPPExt (Value)
2 //                     Copyright (C) 1991,1995 by
3 //  
4 //                      MATRA DATAVISION, FRANCE
5 //  
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
11 //  
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
14
15 #ifndef _NMTTools_DEProcessor_HeaderFile
16 #define _NMTTools_DEProcessor_HeaderFile
17
18 #ifndef _NMTTools_PPaveFiller_HeaderFile
19 #include <NMTTools_PPaveFiller.hxx>
20 #endif
21 #ifndef _NMTDS_PShapesDataStructure_HeaderFile
22 #include <NMTDS_PShapesDataStructure.hxx>
23 #endif
24 #ifndef _Standard_Boolean_HeaderFile
25 #include <Standard_Boolean.hxx>
26 #endif
27 #ifndef _BOPTools_IndexedDataMapOfIntegerDEInfo_HeaderFile
28 #include <BOPTools_IndexedDataMapOfIntegerDEInfo.hxx>
29 #endif
30 #ifndef _Standard_Integer_HeaderFile
31 #include <Standard_Integer.hxx>
32 #endif
33 #ifndef _Standard_Real_HeaderFile
34 #include <Standard_Real.hxx>
35 #endif
36 class NMTTools_PaveFiller;
37 class BOPTools_ListOfPaveBlock;
38 class TopoDS_Edge;
39 class TopoDS_Face;
40 class TopoDS_Vertex;
41
42
43 #ifndef _Standard_HeaderFile
44 #include <Standard.hxx>
45 #endif
46 #ifndef _Standard_Macro_HeaderFile
47 #include <Standard_Macro.hxx>
48 #endif
49
50 class NMTTools_DEProcessor  {
51
52 public:
53
54     void* operator new(size_t,void* anAddress) 
55       {
56         return anAddress;
57       }
58     void* operator new(size_t size) 
59       { 
60         return Standard::Allocate(size); 
61       }
62     void  operator delete(void *anAddress) 
63       { 
64         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
65       }
66  // Methods PUBLIC
67  // 
68 Standard_EXPORT NMTTools_DEProcessor(NMTTools_PaveFiller& aFiller);
69 Standard_EXPORT   void Do() ;
70 Standard_EXPORT   Standard_Boolean IsDone() const;
71
72
73
74
75
76 protected:
77
78  // Methods PROTECTED
79  // 
80 Standard_EXPORT   void FindDegeneratedEdges() ;
81 Standard_EXPORT   void DoPaves() ;
82 Standard_EXPORT   void FindPaveBlocks(const Standard_Integer nED,const Standard_Integer nVD,const Standard_Integer nFD,BOPTools_ListOfPaveBlock& aLPB) ;
83 Standard_EXPORT   void FillPaveSet(const Standard_Integer nED,const Standard_Integer nVD,const Standard_Integer nFD,const BOPTools_ListOfPaveBlock& aLPB) ;
84 Standard_EXPORT   void FillSplitEdgesPool(const Standard_Integer nED) ;
85 Standard_EXPORT   void MakeSplitEdges(const Standard_Integer nED,const Standard_Integer nFD) ;
86 Standard_EXPORT   void MakeSplitEdge(const TopoDS_Edge& aS1,const TopoDS_Face& aF,const TopoDS_Vertex& aV1,const Standard_Real aP1,const TopoDS_Vertex& aV2,const Standard_Real aP2,TopoDS_Edge& aNewEdge) ;
87
88
89  // Fields PROTECTED
90  //
91 NMTTools_PPaveFiller myFiller;
92 NMTDS_PShapesDataStructure myDS;
93 Standard_Boolean myIsDone;
94 BOPTools_IndexedDataMapOfIntegerDEInfo myDEMap;
95
96
97 private: 
98
99  // Methods PRIVATE
100  // 
101
102
103  // Fields PRIVATE
104  //
105
106
107 };
108
109
110
111
112
113 // other Inline functions and methods (like "C++: function call" methods)
114 //
115
116
117 #endif