Salome HOME
4f8a5ae497b3c0f73a953a7cd25851d7b6cf2316
[modules/geom.git] / src / GEOMFiltersSelection / GEOM_FaceFilter.hxx
1 // File generated by CPPExt (Transient)
2 //
3 //                     Copyright (C) 1991,1995 by
4 //  
5 //                      MATRA DATAVISION, FRANCE
6 //  
7 // This software is furnished in accordance with the terms and conditions
8 // of the contract and with the inclusion of the above copyright notice.
9 // This software or any other copy thereof may not be provided or otherwise
10 // be made available to any other person. No title to an ownership of the
11 // software is hereby transferred.
12 //  
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
15 //
16 #ifndef _GEOM_FaceFilter_HeaderFile
17 #define _GEOM_FaceFilter_HeaderFile
18
19 #ifndef _Handle_GEOM_FaceFilter_HeaderFile
20 #include "Handle_GEOM_FaceFilter.hxx"
21 #endif
22
23 #include "SALOME_InteractiveObject.hxx"
24 #include "SALOME_Filter.hxx"
25
26 // IDL Headers
27 #include <SALOMEconfig.h>
28 #include CORBA_SERVER_HEADER(GEOM_Shape)
29 #include CORBA_SERVER_HEADER(GEOM_Gen)
30 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
31
32 // Open CASCADE Includes
33 #include <Standard.hxx>
34 #include <TopAbs.hxx>
35 #include <TopoDS_Shape.hxx>
36 #include <StdSelect_TypeOfFace.hxx>
37
38 class GEOM_FaceFilter : public SALOME_Filter {
39
40 public:
41
42     inline void* operator new(size_t,void* anAddress) 
43       {
44         return anAddress;
45       }
46     inline void* operator new(size_t size) 
47       { 
48         return Standard::Allocate(size); 
49       }
50     inline void  operator delete(void *anAddress) 
51       { 
52         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
53       }
54 //    inline void  operator delete(void *anAddress, size_t size) 
55 //      { 
56 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
57 //      }
58  // Methods PUBLIC
59  // 
60 Standard_EXPORT GEOM_FaceFilter(const StdSelect_TypeOfFace Face,
61                                 GEOM::GEOM_Gen_ptr geom);
62
63 Standard_EXPORT virtual  Standard_Boolean IsOk(const Handle(SALOME_InteractiveObject)& anobj) const;
64 Standard_EXPORT ~GEOM_FaceFilter();
65
66
67
68
69  // Type management
70  //
71  Standard_EXPORT friend Handle_Standard_Type& GEOM_FaceFilter_Type_();
72  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
73  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
74
75 protected:
76
77  // Methods PROTECTED
78  // 
79
80
81  // Fields PROTECTED
82  //
83 StdSelect_TypeOfFace  myKind;
84 GEOM::GEOM_Gen_var myComponentGeom;
85
86 private: 
87
88  // Methods PRIVATE
89  // 
90
91
92  // Fields PRIVATE
93  //
94
95
96 };
97
98
99
100
101
102 // other inline functions and methods (like "C++: function call" methods)
103 //
104
105
106 #endif