Salome HOME
NRI : First integration.
[modules/geom.git] / src / PARTITION / Partition_Loop2d.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 _Partition_Loop2d_HeaderFile
16 #define _Partition_Loop2d_HeaderFile
17
18 #ifndef _TopoDS_Face_HeaderFile
19 #include <TopoDS_Face.hxx>
20 #endif
21 #ifndef _TopAbs_Orientation_HeaderFile
22 #include <TopAbs_Orientation.hxx>
23 #endif
24 #ifndef _TopTools_ListOfShape_HeaderFile
25 #include <TopTools_ListOfShape.hxx>
26 #endif
27 #ifndef _TopTools_MapOfShape_HeaderFile
28 #include <TopTools_MapOfShape.hxx>
29 #endif
30 class TopoDS_Face;
31 class TopoDS_Edge;
32 class TopTools_ListOfShape;
33 class BRepAlgo_Image;
34
35
36 #ifndef _Standard_HeaderFile
37 #include <Standard.hxx>
38 #endif
39 #ifndef _Standard_Macro_HeaderFile
40 #include <Standard_Macro.hxx>
41 #endif
42
43 class Partition_Loop2d  {
44
45 public:
46
47     void* operator new(size_t,void* anAddress) 
48       {
49         return anAddress;
50       }
51     void* operator new(size_t size) 
52       { 
53         return Standard::Allocate(size); 
54       }
55     void  operator delete(void *anAddress) 
56       { 
57         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
58       }
59  // Methods PUBLIC
60  // 
61 Standard_EXPORT Partition_Loop2d();
62 Standard_EXPORT   void Init(const TopoDS_Face& F) ;
63 Standard_EXPORT   void AddConstEdge(const TopoDS_Edge& E) ;
64 Standard_EXPORT   void AddSectionEdge(const TopoDS_Edge& E) ;
65 Standard_EXPORT   void Perform() ;
66 Standard_EXPORT  const TopTools_ListOfShape& NewWires() const;
67 Standard_EXPORT   void WiresToFaces(const BRepAlgo_Image& EdgeImage) ;
68 Standard_EXPORT  const TopTools_ListOfShape& NewFaces() const;
69
70
71
72
73
74 protected:
75
76  // Methods PROTECTED
77  // 
78
79
80  // Fields PROTECTED
81  //
82
83
84 private: 
85
86  // Methods PRIVATE
87  // 
88
89
90  // Fields PRIVATE
91  //
92 TopoDS_Face myFace;
93 TopAbs_Orientation myFaceOri;
94 TopTools_ListOfShape myConstEdges;
95 TopTools_ListOfShape myNewWires;
96 TopTools_ListOfShape myNewFaces;
97 TopTools_ListOfShape myInternalWL;
98 TopTools_MapOfShape mySectionEdges;
99
100
101 };
102
103
104
105
106
107 // other Inline functions and methods (like "C++: function call" methods)
108 //
109
110
111 #endif