Salome HOME
Change comments style in geompy.py for right processing with HappyDoc
[modules/geom.git] / src / NMTAlgo / NMTAlgo_Splitter.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 _NMTAlgo_Splitter_HeaderFile
16 #define _NMTAlgo_Splitter_HeaderFile
17
18 #ifndef _TopAbs_ShapeEnum_HeaderFile
19 #include <TopAbs_ShapeEnum.hxx>
20 #endif
21 #ifndef _BRep_Builder_HeaderFile
22 #include <BRep_Builder.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 #ifndef _TopTools_DataMapOfShapeShape_HeaderFile
31 #include <TopTools_DataMapOfShapeShape.hxx>
32 #endif
33 #ifndef _BRepAlgo_Image_HeaderFile
34 #include <BRepAlgo_Image.hxx>
35 #endif
36 #ifndef _TopTools_MapOfOrientedShape_HeaderFile
37 #include <TopTools_MapOfOrientedShape.hxx>
38 #endif
39 #ifndef _NMTAlgo_Builder_HeaderFile
40 #include <NMTAlgo_Builder.hxx>
41 #endif
42 #ifndef _Standard_Boolean_HeaderFile
43 #include <Standard_Boolean.hxx>
44 #endif
45 class TopoDS_Shape;
46 class NMTTools_DSFiller;
47 class TopTools_ListOfShape;
48
49
50 #ifndef _Standard_HeaderFile
51 #include <Standard.hxx>
52 #endif
53 #ifndef _Standard_Macro_HeaderFile
54 #include <Standard_Macro.hxx>
55 #endif
56
57 class NMTAlgo_Splitter  : public NMTAlgo_Builder {
58
59 public:
60
61     void* operator new(size_t,void* anAddress) 
62       {
63         return anAddress;
64       }
65     void* operator new(size_t size) 
66       { 
67         return Standard::Allocate(size); 
68       }
69     void  operator delete(void *anAddress) 
70       { 
71         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
72       }
73  // Methods PUBLIC
74  // 
75 Standard_EXPORT NMTAlgo_Splitter();
76 Standard_EXPORT virtual ~NMTAlgo_Splitter();
77 Standard_EXPORT virtual  void AddShape(const TopoDS_Shape& S) ;
78 Standard_EXPORT virtual  void AddTool(const TopoDS_Shape& S) ;
79 Standard_EXPORT virtual  void Compute() ;
80 Standard_EXPORT virtual  void Build(const TopAbs_ShapeEnum aLimit = TopAbs_SHAPE) ;
81 Standard_EXPORT virtual  void ComputeWithFiller(const NMTTools_DSFiller& aDSF) ;
82 Standard_EXPORT   void KeepShapesInside(const TopoDS_Shape& S) ;
83 Standard_EXPORT   void RemoveShapesInside(const TopoDS_Shape& S) ;
84 Standard_EXPORT  const TopTools_ListOfShape& Modified(const TopoDS_Shape& S) ;
85 Standard_EXPORT  const TopTools_ListOfShape& Generated(const TopoDS_Shape& S) ;
86 Standard_EXPORT   Standard_Boolean IsDeleted(const TopoDS_Shape& S) ;
87 Standard_EXPORT virtual  void Clear() ;
88 Standard_EXPORT  const TopTools_ListOfShape& SourceShapes() const;
89
90
91
92
93
94 protected:
95
96  // Methods PROTECTED
97  // 
98 Standard_EXPORT   void FillResult() ;
99 Standard_EXPORT   void FillImageShape() ;
100 Standard_EXPORT   void SplittedFaces() ;
101 Standard_EXPORT   void SplittedWires() ;
102 Standard_EXPORT   void SplitsAndSections() ;
103 Standard_EXPORT   void ShellsAndSolids() ;
104 Standard_EXPORT   void MakeShells(const TopoDS_Shape& aS,TopTools_ListOfShape& aLNS) ;
105 Standard_EXPORT   void MakeSolids(const TopoDS_Shape& Solid,TopTools_ListOfShape& Shells) ;
106 Standard_EXPORT   TopoDS_Shape FindFacesInside(const TopoDS_Shape& S,const Standard_Boolean CheckClosed = Standard_False,const Standard_Boolean All = Standard_False) ;
107 Standard_EXPORT static  Standard_Boolean IsInside(const TopoDS_Shape& S1,const TopoDS_Shape& S2) ;
108 Standard_EXPORT   TopoDS_Shape GetOriginalShape(const TopoDS_Shape& aShape) const;
109
110
111  // Fields PROTECTED
112  //
113 TopAbs_ShapeEnum myDoneStep;
114 BRep_Builder myBuilder;
115 TopTools_ListOfShape myListShapes;
116 TopTools_MapOfShape myMapFaces;
117 TopTools_MapOfShape myMapTools;
118 TopTools_MapOfShape myEqualEdges;
119 TopTools_MapOfShape myNewSection;
120 TopTools_MapOfShape myClosedShapes;
121 TopTools_MapOfShape myWrappingSolid;
122 TopTools_DataMapOfShapeShape myFaceShapeMap;
123 TopTools_DataMapOfShapeShape myInternalFaces;
124 TopTools_DataMapOfShapeShape myIntNotClFaces;
125 BRepAlgo_Image myImageShape;
126 TopTools_MapOfOrientedShape myAddedFacesMap;
127 TopTools_ListOfShape mySourceShapes;
128 TopAbs_ShapeEnum myLimit;
129 TopTools_MapOfShape myToolShapes;
130 TopTools_MapOfShape myObjShapes;
131 TopTools_DataMapOfShapeShape myMapSIFC;
132 TopTools_ListOfShape myGenerated;
133
134
135 private: 
136
137  // Methods PRIVATE
138  // 
139
140
141  // Fields PRIVATE
142  //
143
144
145 };
146
147
148
149
150
151 // other Inline functions and methods (like "C++: function call" methods)
152 //
153
154
155 #endif