Salome HOME
Merge with OCC_development_01
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_GlueAnalyser.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_GlueAnalyser_HeaderFile
23 #define _GEOMAlgo_GlueAnalyser_HeaderFile
24
25 #ifndef _GEOMAlgo_ListOfCoupleOfShapes_HeaderFile
26 #include <GEOMAlgo_ListOfCoupleOfShapes.hxx>
27 #endif
28 #ifndef _TopTools_ListOfShape_HeaderFile
29 #include <TopTools_ListOfShape.hxx>
30 #endif
31 #ifndef _GEOMAlgo_Gluer_HeaderFile
32 #include <GEOMAlgo_Gluer.hxx>
33 #endif
34 #ifndef _Standard_Boolean_HeaderFile
35 #include <Standard_Boolean.hxx>
36 #endif
37 #ifndef _TopAbs_ShapeEnum_HeaderFile
38 #include <TopAbs_ShapeEnum.hxx>
39 #endif
40 class GEOMAlgo_ListOfCoupleOfShapes;
41 class TopTools_ListOfShape;
42
43
44 #ifndef _Standard_HeaderFile
45 #include <Standard.hxx>
46 #endif
47 #ifndef _Standard_Macro_HeaderFile
48 #include <Standard_Macro.hxx>
49 #endif
50
51 class GEOMAlgo_GlueAnalyser  : public GEOMAlgo_Gluer {
52
53 public:
54
55     void* operator new(size_t,void* anAddress) 
56       {
57         return anAddress;
58       }
59     void* operator new(size_t size) 
60       { 
61         return Standard::Allocate(size); 
62       }
63     void  operator delete(void *anAddress) 
64       { 
65         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
66       }
67  // Methods PUBLIC
68  // 
69 Standard_EXPORT GEOMAlgo_GlueAnalyser();
70 Standard_EXPORT virtual ~GEOMAlgo_GlueAnalyser();
71 Standard_EXPORT virtual  void Perform() ;
72 Standard_EXPORT   Standard_Boolean HasSolidsToGlue() const;
73 Standard_EXPORT  const GEOMAlgo_ListOfCoupleOfShapes& SolidsToGlue() const;
74 Standard_EXPORT   Standard_Boolean HasSolidsAlone() const;
75 Standard_EXPORT  const TopTools_ListOfShape& SolidsAlone() const;
76
77
78
79
80
81 protected:
82
83  // Methods PROTECTED
84  // 
85 Standard_EXPORT   void DetectVertices() ;
86 Standard_EXPORT   void DetectEdges() ;
87 Standard_EXPORT   void DetectFaces() ;
88 Standard_EXPORT   void DetectShapes(const TopAbs_ShapeEnum aType) ;
89 Standard_EXPORT   void DetectSolids() ;
90
91
92  // Fields PROTECTED
93  //
94 GEOMAlgo_ListOfCoupleOfShapes mySolidsToGlue;
95 TopTools_ListOfShape mySolidsAlone;
96
97
98 private: 
99
100  // Methods PRIVATE
101  // 
102
103
104  // Fields PRIVATE
105  //
106
107
108 };
109
110
111
112
113
114 // other Inline functions and methods (like "C++: function call" methods)
115 //
116
117
118 #endif