Salome HOME
NRI : First integration.
[modules/smesh.git] / src / SMESHFiltersSelection / SMESH_TypeFilter.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 _SMESH_TypeFilter_HeaderFile
17 #define _SMESH_TypeFilter_HeaderFile
18
19 #ifndef _Handle_SMESH_TypeFilter_HeaderFile
20 #include "Handle_SMESH_TypeFilter.hxx"
21 #endif
22
23 #include "SALOME_InteractiveObject.hxx"
24 #include "SALOME_Filter.hxx"
25 #include "SMESH_Type.h"
26
27 // Open CASCADE Includes
28 #include <Standard.hxx>
29
30 class SMESH_TypeFilter : public SALOME_Filter {
31
32 public:
33
34     inline void* operator new(size_t,void* anAddress) 
35       {
36         return anAddress;
37       }
38     inline void* operator new(size_t size) 
39       { 
40         return Standard::Allocate(size); 
41       }
42     inline void  operator delete(void *anAddress) 
43       { 
44         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
45       }
46 //    inline void  operator delete(void *anAddress, size_t size) 
47 //      { 
48 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
49 //      }
50  // Methods PUBLIC
51  // 
52 Standard_EXPORT SMESH_TypeFilter(MeshObjectType aType);
53 Standard_EXPORT virtual  Standard_Boolean IsOk(const Handle(SALOME_InteractiveObject)& anobj) const;
54 Standard_EXPORT ~SMESH_TypeFilter();
55
56
57
58
59  // Type management
60  //
61  Standard_EXPORT friend Handle_Standard_Type& SMESH_TypeFilter_Type_();
62  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
63  Standard_EXPORT Standard_Boolean             IsKind(const Handle(Standard_Type)&) const;
64
65 protected:
66
67  // Methods PROTECTED
68  // 
69
70
71  // Fields PROTECTED
72  //
73 MeshObjectType myKind;
74
75 private: 
76
77  // Methods PRIVATE
78  // 
79
80
81  // Fields PRIVATE
82  //
83
84
85 };
86
87
88
89
90
91 // other inline functions and methods (like "C++: function call" methods)
92 //
93
94
95 #endif