]> SALOME platform Git repositories - modules/geom.git/blob - src/NMTAlgo/NMTAlgo_Splitter.hxx
Salome HOME
PAL7508: Development of GetInPlace() functionality
[modules/geom.git] / src / NMTAlgo / NMTAlgo_Splitter.hxx
1 // File generated by CPPExt (Value)
2 //
3 //                     Copyright (C) 1991 - 2000 by  
4 //                      Matra Datavision SA.  All rights reserved.
5 //  
6 //                     Copyright (C) 2001 - 2004 by
7 //                     Open CASCADE SA.  All rights reserved.
8 // 
9 // This file is part of the Open CASCADE Technology software.
10 //
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.
14 //  
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
20 // License.
21
22 #ifndef _NMTAlgo_Splitter_HeaderFile
23 #define _NMTAlgo_Splitter_HeaderFile
24
25 #ifndef _TopAbs_ShapeEnum_HeaderFile
26 #include <TopAbs_ShapeEnum.hxx>
27 #endif
28 #ifndef _BRep_Builder_HeaderFile
29 #include <BRep_Builder.hxx>
30 #endif
31 #ifndef _TopTools_ListOfShape_HeaderFile
32 #include <TopTools_ListOfShape.hxx>
33 #endif
34 #ifndef _TopTools_MapOfShape_HeaderFile
35 #include <TopTools_MapOfShape.hxx>
36 #endif
37 #ifndef _TopTools_DataMapOfShapeShape_HeaderFile
38 #include <TopTools_DataMapOfShapeShape.hxx>
39 #endif
40 #ifndef _BRepAlgo_Image_HeaderFile
41 #include <BRepAlgo_Image.hxx>
42 #endif
43 #ifndef _TopTools_MapOfOrientedShape_HeaderFile
44 #include <TopTools_MapOfOrientedShape.hxx>
45 #endif
46 #ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile
47 #include <TopTools_DataMapOfShapeListOfShape.hxx>
48 #endif
49 #ifndef _NMTAlgo_Builder_HeaderFile
50 #include <NMTAlgo_Builder.hxx>
51 #endif
52 #ifndef _Standard_Boolean_HeaderFile
53 #include <Standard_Boolean.hxx>
54 #endif
55 class TopoDS_Shape;
56 class NMTTools_DSFiller;
57 class TopTools_ListOfShape;
58
59
60 #ifndef _Standard_HeaderFile
61 #include <Standard.hxx>
62 #endif
63 #ifndef _Standard_Macro_HeaderFile
64 #include <Standard_Macro.hxx>
65 #endif
66
67 class NMTAlgo_Splitter  : public NMTAlgo_Builder {
68
69 public:
70
71     void* operator new(size_t,void* anAddress) 
72       {
73         return anAddress;
74       }
75     void* operator new(size_t size) 
76       { 
77         return Standard::Allocate(size); 
78       }
79     void  operator delete(void *anAddress) 
80       { 
81         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
82       }
83  // Methods PUBLIC
84  // 
85 Standard_EXPORT NMTAlgo_Splitter();
86 Standard_EXPORT virtual ~NMTAlgo_Splitter();
87 Standard_EXPORT virtual  void AddShape(const TopoDS_Shape& S) ;
88 Standard_EXPORT virtual  void AddTool(const TopoDS_Shape& S) ;
89 Standard_EXPORT virtual  void Compute() ;
90 Standard_EXPORT virtual  void Build(const TopAbs_ShapeEnum aLimit = TopAbs_SHAPE) ;
91 Standard_EXPORT virtual  void ComputeWithFiller(const NMTTools_DSFiller& aDSF) ;
92 Standard_EXPORT   void KeepShapesInside(const TopoDS_Shape& S) ;
93 Standard_EXPORT   void RemoveShapesInside(const TopoDS_Shape& S) ;
94 Standard_EXPORT  const TopTools_ListOfShape& Modified(const TopoDS_Shape& S) ;
95 Standard_EXPORT  const TopTools_ListOfShape& Generated(const TopoDS_Shape& S) ;
96 Standard_EXPORT   Standard_Boolean IsDeleted(const TopoDS_Shape& S) ;
97 Standard_EXPORT virtual  void Clear() ;
98 Standard_EXPORT  const TopTools_ListOfShape& SourceShapes() const;
99
100
101
102
103
104 protected:
105
106  // Methods PROTECTED
107  // 
108 Standard_EXPORT   void FillResult() ;
109 Standard_EXPORT   void FillImageShape() ;
110 Standard_EXPORT   void SplittedFaces() ;
111 Standard_EXPORT   void SplittedWires() ;
112 Standard_EXPORT   void SplitsAndSections() ;
113 Standard_EXPORT   void ShellsAndSolids() ;
114 Standard_EXPORT   void MakeShells(const TopoDS_Shape& aS,TopTools_ListOfShape& aLNS) ;
115 Standard_EXPORT   void MakeSolids(const TopoDS_Shape& Solid,TopTools_ListOfShape& Shells) ;
116 Standard_EXPORT   TopoDS_Shape FindFacesInside(const TopoDS_Shape& S,const Standard_Boolean CheckClosed = Standard_False,const Standard_Boolean All = Standard_False) ;
117 Standard_EXPORT static  Standard_Boolean IsInside(const TopoDS_Shape& S1,const TopoDS_Shape& S2) ;
118 Standard_EXPORT   TopoDS_Shape GetOriginalShape(const TopoDS_Shape& aShape) const;
119
120
121  // Fields PROTECTED
122  //
123 TopAbs_ShapeEnum myDoneStep;
124 BRep_Builder myBuilder;
125 TopTools_ListOfShape myListShapes;
126 TopTools_MapOfShape myMapFaces;
127 TopTools_MapOfShape myMapTools;
128 TopTools_MapOfShape myEqualEdges;
129 TopTools_MapOfShape myNewSection;
130 TopTools_MapOfShape myClosedShapes;
131 TopTools_MapOfShape myWrappingSolid;
132 TopTools_DataMapOfShapeShape myFaceShapeMap;
133 TopTools_DataMapOfShapeShape myInternalFaces;
134 TopTools_DataMapOfShapeShape myIntNotClFaces;
135 BRepAlgo_Image myImageShape;
136 TopTools_MapOfOrientedShape myAddedFacesMap;
137 TopTools_ListOfShape mySourceShapes;
138 TopAbs_ShapeEnum myLimit;
139 TopTools_MapOfShape myToolShapes;
140 TopTools_MapOfShape myObjShapes;
141 TopTools_DataMapOfShapeShape myMapSIFC;
142 TopTools_ListOfShape myGenerated;
143 TopTools_DataMapOfShapeListOfShape myModifiedFaces;
144
145
146 private: 
147
148  // Methods PRIVATE
149  // 
150
151
152  // Fields PRIVATE
153  //
154
155
156 };
157
158
159
160
161
162 // other Inline functions and methods (like "C++: function call" methods)
163 //
164
165
166 #endif