Salome HOME
PAL7508: Development of GetInPlace() functionality
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_Gluer.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 _GEOMAlgo_Gluer_HeaderFile
23 #define _GEOMAlgo_Gluer_HeaderFile
24
25 #ifndef _Standard_Boolean_HeaderFile
26 #include <Standard_Boolean.hxx>
27 #endif
28 #ifndef _Standard_Real_HeaderFile
29 #include <Standard_Real.hxx>
30 #endif
31 #ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile
32 #include <TopTools_DataMapOfShapeListOfShape.hxx>
33 #endif
34 #ifndef _TopTools_DataMapOfShapeShape_HeaderFile
35 #include <TopTools_DataMapOfShapeShape.hxx>
36 #endif
37 #ifndef _Standard_Integer_HeaderFile
38 #include <Standard_Integer.hxx>
39 #endif
40 #ifndef _TopTools_ListOfShape_HeaderFile
41 #include <TopTools_ListOfShape.hxx>
42 #endif
43 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
44 #include <GEOMAlgo_ShapeAlgo.hxx>
45 #endif
46 #ifndef _TopAbs_ShapeEnum_HeaderFile
47 #include <TopAbs_ShapeEnum.hxx>
48 #endif
49 class TopTools_ListOfShape;
50 class TopoDS_Shape;
51 class TopoDS_Edge;
52 class GEOMAlgo_PassKey;
53 class TopoDS_Face;
54 class TopoDS_Vertex;
55 class TopTools_DataMapOfShapeListOfShape;
56 class TopTools_DataMapOfShapeShape;
57
58
59 #ifndef _Standard_HeaderFile
60 #include <Standard.hxx>
61 #endif
62 #ifndef _Standard_Macro_HeaderFile
63 #include <Standard_Macro.hxx>
64 #endif
65
66 class GEOMAlgo_Gluer  : public GEOMAlgo_ShapeAlgo {
67
68 public:
69
70     void* operator new(size_t,void* anAddress) 
71       {
72         return anAddress;
73       }
74     void* operator new(size_t size) 
75       { 
76         return Standard::Allocate(size); 
77       }
78     void  operator delete(void *anAddress) 
79       { 
80         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
81       }
82  // Methods PUBLIC
83  // 
84 Standard_EXPORT GEOMAlgo_Gluer();
85 Standard_EXPORT virtual ~GEOMAlgo_Gluer();
86 Standard_EXPORT   void SetCheckGeometry(const Standard_Boolean aFlag) ;
87 Standard_EXPORT   Standard_Boolean CheckGeometry() const;
88 Standard_EXPORT virtual  void Perform() ;
89 Standard_EXPORT   Standard_Integer AloneShapes() const;
90 Standard_EXPORT  const TopTools_ListOfShape& Modified(const TopoDS_Shape& S) ;
91 Standard_EXPORT  const TopTools_ListOfShape& Generated(const TopoDS_Shape& S) ;
92 Standard_EXPORT   Standard_Boolean IsDeleted(const TopoDS_Shape& S) ;
93 Standard_EXPORT  const TopTools_DataMapOfShapeListOfShape& Images() const;
94 Standard_EXPORT  const TopTools_DataMapOfShapeShape& Origins() const;
95
96
97
98
99
100 protected:
101
102  // Methods PROTECTED
103  // 
104 Standard_EXPORT virtual  void CheckData() ;
105 Standard_EXPORT virtual  void CheckResult() ;
106 Standard_EXPORT   void MakeVertices() ;
107 Standard_EXPORT   void MakeEdges() ;
108 Standard_EXPORT   void MakeFaces() ;
109 Standard_EXPORT   void MakeShapes(const TopAbs_ShapeEnum aType) ;
110 Standard_EXPORT   void MakeShells() ;
111 Standard_EXPORT   void MakeSolids() ;
112 Standard_EXPORT   void InnerTolerance() ;
113 Standard_EXPORT   void EdgePassKey(const TopoDS_Edge& aE,GEOMAlgo_PassKey& aPK) ;
114 Standard_EXPORT   void FacePassKey(const TopoDS_Face& aF,GEOMAlgo_PassKey& aPK) ;
115 Standard_EXPORT   void MakeVertex(const TopTools_ListOfShape& aLV,TopoDS_Vertex& aNewV) ;
116 Standard_EXPORT   void MakeEdge(const TopoDS_Edge& aEdge,TopoDS_Edge& aNewEdge) ;
117 Standard_EXPORT   void MakeFace(const TopoDS_Face& aFace,TopoDS_Face& aNewEdge) ;
118 Standard_EXPORT   Standard_Boolean IsToReverse(const TopoDS_Face& aFR,const TopoDS_Face& aF) ;
119 Standard_EXPORT   Standard_Boolean HasNewSubShape(const TopoDS_Shape& aS) const;
120
121
122  // Fields PROTECTED
123  //
124 Standard_Boolean myCheckGeometry;
125 Standard_Real myTol;
126 TopTools_DataMapOfShapeListOfShape myImages;
127 TopTools_DataMapOfShapeShape myOrigins;
128 Standard_Integer myNbAlone;
129 TopTools_ListOfShape myGenerated;
130
131
132 private: 
133
134  // Methods PRIVATE
135  // 
136
137
138  // Fields PRIVATE
139  //
140
141
142 };
143
144
145
146
147
148 // other Inline functions and methods (like "C++: function call" methods)
149 //
150
151
152 #endif