1 // File generated by CPPExt (Transient)
3 // Copyright (C) 1991,1995 by
5 // MATRA DATAVISION, FRANCE
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.
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
16 #ifndef _GEOM_AISShape_HeaderFile
17 #define _GEOM_AISShape_HeaderFile
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
22 #ifndef _Handle_GEOM_AISShape_HeaderFile
23 #include "Handle_GEOM_AISShape.hxx"
26 #ifndef _Handle_SALOME_InteractiveObject_HeaderFile
27 #include "Handle_SALOME_InteractiveObject.hxx"
29 #ifndef _Standard_CString_HeaderFile
30 #include <Standard_CString.hxx>
32 #ifndef _SALOME_AISShape_HeaderFile
33 #include "SALOME_AISShape.hxx"
35 #ifndef _Standard_Boolean_HeaderFile
36 #include <Standard_Boolean.hxx>
38 #ifndef _Handle_PrsMgr_PresentationManager3d_HeaderFile
39 #include <Handle_PrsMgr_PresentationManager3d.hxx>
41 #ifndef _Handle_Prs3d_Presentation_HeaderFile
42 #include <Handle_Prs3d_Presentation.hxx>
45 class PrsMgr_PresentationManager3d;
46 class Prs3d_Presentation;
47 class SALOME_InteractiveObject;
51 class GEOM_AISShape : public SALOME_AISShape {
55 inline void* operator new(size_t,void* anAddress)
59 inline void* operator new(size_t size)
61 return Standard::Allocate(size);
63 inline void operator delete(void *anAddress)
65 if (anAddress) Standard::Free((Standard_Address&)anAddress);
67 // inline void operator delete(void *anAddress, size_t size)
69 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
73 Standard_EXPORT GEOM_AISShape(const TopoDS_Shape& shape, const Standard_CString aName);
74 Standard_EXPORT Standard_Boolean hasIO() ;
75 Standard_EXPORT void setIO(const Handle(SALOME_InteractiveObject)& name) ;
76 Standard_EXPORT void setName(const Standard_CString aName) ;
77 Standard_EXPORT Standard_CString getName() ;
78 Standard_EXPORT Handle_SALOME_InteractiveObject getIO() ;
79 Standard_EXPORT ~GEOM_AISShape();
81 Standard_EXPORT void SetTransparency(const Standard_Real aValue);
82 Standard_EXPORT void SetShadingColor(const Quantity_Color &aCol);
84 Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
85 const Handle(Prs3d_Presentation)& aPresentation,
86 const Standard_Integer aMode = 0) ;
90 Standard_EXPORT friend Handle_Standard_Type& GEOM_AISShape_Type_();
91 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
92 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
112 Handle_SALOME_InteractiveObject myIO;
113 Standard_CString myName;
114 Quantity_Color myShadingColor;
121 // other inline functions and methods (like "C++: function call" methods)