Salome HOME
1948d350887cea28241ee82eae4d64ea40b8ed95
[modules/geom.git] / src / NMTAlgo / NMTAlgo_Splitter1.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_Splitter1_HeaderFile
16 #define _NMTAlgo_Splitter1_HeaderFile
17
18 #ifndef _Standard_Boolean_HeaderFile
19 #include <Standard_Boolean.hxx>
20 #endif
21 #ifndef _TopTools_DataMapOfShapeInteger_HeaderFile
22 #include <TopTools_DataMapOfShapeInteger.hxx>
23 #endif
24 #ifndef _TopoDS_Shape_HeaderFile
25 #include <TopoDS_Shape.hxx>
26 #endif
27 #ifndef _NMTAlgo_Splitter_HeaderFile
28 #include <NMTAlgo_Splitter.hxx>
29 #endif
30 #ifndef _Standard_Integer_HeaderFile
31 #include <Standard_Integer.hxx>
32 #endif
33 #ifndef _TopAbs_ShapeEnum_HeaderFile
34 #include <TopAbs_ShapeEnum.hxx>
35 #endif
36 class TopoDS_Shape;
37 class TopTools_DataMapOfShapeInteger;
38
39
40 #ifndef _Standard_HeaderFile
41 #include <Standard.hxx>
42 #endif
43 #ifndef _Standard_Macro_HeaderFile
44 #include <Standard_Macro.hxx>
45 #endif
46
47 class NMTAlgo_Splitter1  : public NMTAlgo_Splitter {
48
49 public:
50
51     void* operator new(size_t,void* anAddress) 
52       {
53         return anAddress;
54       }
55     void* operator new(size_t size) 
56       { 
57         return Standard::Allocate(size); 
58       }
59     void  operator delete(void *anAddress) 
60       { 
61         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
62       }
63  // Methods PUBLIC
64  // 
65 Standard_EXPORT NMTAlgo_Splitter1();
66 Standard_EXPORT virtual ~NMTAlgo_Splitter1();
67 Standard_EXPORT virtual  void Clear() ;
68 Standard_EXPORT virtual  void AddShape(const TopoDS_Shape& aS) ;
69 Standard_EXPORT virtual  void AddTool(const TopoDS_Shape& aS) ;
70 Standard_EXPORT   void SetMaterial(const TopoDS_Shape& aS,const Standard_Integer aM = 0) ;
71 Standard_EXPORT   void SetRemoveWebs(const Standard_Boolean bFlag) ;
72 Standard_EXPORT   Standard_Boolean RemoveWebs() const;
73 Standard_EXPORT  const TopTools_DataMapOfShapeInteger& GetMaterialTable() const;
74 Standard_EXPORT virtual  void Build(const TopAbs_ShapeEnum Limit = TopAbs_SHAPE) ;
75
76
77
78
79
80 protected:
81
82  // Methods PROTECTED
83  // 
84 Standard_EXPORT   void TreatSolids() ;
85 Standard_EXPORT   void TreatWebs() ;
86 Standard_EXPORT   void RestParts() ;
87
88
89  // Fields PROTECTED
90  //
91 Standard_Boolean myRemoveWebs;
92 TopTools_DataMapOfShapeInteger myMapSWM;
93 TopTools_DataMapOfShapeInteger myMapSWMOut;
94 TopoDS_Shape myRestParts;
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