Salome HOME
PR: merge branch CCAR_br1
[modules/yacs.git] / src / OBJECT / SALOME_AISShape.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 _SALOME_AISShape_HeaderFile
17 #define _SALOME_AISShape_HeaderFile
18
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
21 #endif
22 #ifndef _Handle_SALOME_AISShape_HeaderFile
23 #include <Handle_SALOME_AISShape.hxx>
24 #endif
25
26 #ifndef _Standard_CString_HeaderFile
27 #include <Standard_CString.hxx>
28 #endif
29 #ifndef _Handle_SALOME_InteractiveObject_HeaderFile
30 #include <Handle_SALOME_InteractiveObject.hxx>
31 #endif
32 #ifndef _AIS_Shape_HeaderFile
33 #include <AIS_Shape.hxx>
34 #endif
35 #ifndef _Standard_Boolean_HeaderFile
36 #include <Standard_Boolean.hxx>
37 #endif
38 class SALOME_InteractiveObject;
39 class TopoDS_Shape;
40
41
42 class SALOME_AISShape : public AIS_Shape {
43
44 public:
45
46     inline void* operator new(size_t,void* anAddress) 
47       {
48         return anAddress;
49       }
50     inline void* operator new(size_t size) 
51       { 
52         return Standard::Allocate(size); 
53       }
54     inline void  operator delete(void *anAddress) 
55       { 
56         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
57       }
58 //    inline void  operator delete(void *anAddress, size_t size) 
59 //      { 
60 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
61 //      }
62  // Methods PUBLIC
63  // 
64 Standard_EXPORT SALOME_AISShape(const TopoDS_Shape& shape);
65 Standard_EXPORT virtual  Handle_SALOME_InteractiveObject getIO() = 0;
66 Standard_EXPORT virtual  Standard_Boolean hasIO() = 0;
67 Standard_EXPORT virtual  Standard_CString getName() = 0;
68 Standard_EXPORT virtual  void setName(Standard_CString aName) = 0;
69 Standard_EXPORT ~SALOME_AISShape();
70
71
72
73
74  // Type management
75  //
76  Standard_EXPORT friend Handle_Standard_Type& SALOME_AISShape_Type_();
77  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
78  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
79
80 protected:
81
82  // Methods PROTECTED
83  // 
84
85
86  // Fields PROTECTED
87  //
88
89 private: 
90
91  // Methods PRIVATE
92  // 
93
94
95  // Fields PRIVATE
96  //
97
98
99 };
100
101
102
103
104
105 // other inline functions and methods (like "C++: function call" methods)
106 //
107
108
109 #endif