Salome HOME
NRI : First integration.
[modules/geom.git] / src / OBJECT / GEOM_AISShape.ixx
1 // File generated by CPPExt (Transient)
2 //                     Copyright (C) 1991,1995 by
3 //  
4 //                      MATRA DATAVISION, FRANCE
5 //  
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
11 //  
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
14 //
15 #include "GEOM_AISShape.jxx"
16
17 #ifndef _Standard_TypeMismatch_HeaderFile
18 #include <Standard_TypeMismatch.hxx>
19 #endif
20
21 GEOM_AISShape::~GEOM_AISShape() {}
22  
23
24
25 Standard_EXPORT Handle_Standard_Type& GEOM_AISShape_Type_()
26 {
27
28   static Handle_Standard_Type aType1 = STANDARD_TYPE(SALOME_AISShape);
29   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(SALOME_AISShape);
30   static Handle_Standard_Type aType2 = STANDARD_TYPE(AIS_Shape);
31   if ( aType2.IsNull()) aType2 = STANDARD_TYPE(AIS_Shape);
32   static Handle_Standard_Type aType3 = STANDARD_TYPE(AIS_InteractiveObject);
33   if ( aType3.IsNull()) aType3 = STANDARD_TYPE(AIS_InteractiveObject);
34   static Handle_Standard_Type aType4 = STANDARD_TYPE(SelectMgr_SelectableObject);
35   if ( aType4.IsNull()) aType4 = STANDARD_TYPE(SelectMgr_SelectableObject);
36   static Handle_Standard_Type aType5 = STANDARD_TYPE(PrsMgr_PresentableObject);
37   if ( aType5.IsNull()) aType5 = STANDARD_TYPE(PrsMgr_PresentableObject);
38   static Handle_Standard_Type aType6 = STANDARD_TYPE(MMgt_TShared);
39   if ( aType6.IsNull()) aType6 = STANDARD_TYPE(MMgt_TShared);
40   static Handle_Standard_Type aType7 = STANDARD_TYPE(Standard_Transient);
41   if ( aType7.IsNull()) aType7 = STANDARD_TYPE(Standard_Transient);
42  
43
44   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,aType5,aType6,aType7,NULL};
45   static Handle_Standard_Type _aType = new Standard_Type("GEOM_AISShape",
46                                                          sizeof(GEOM_AISShape),
47                                                          1,
48                                                          (Standard_Address)_Ancestors,
49                                                          (Standard_Address)NULL);
50
51   return _aType;
52 }
53
54
55 // DownCast method
56 //   allow safe downcasting
57 //
58 const Handle(GEOM_AISShape) Handle(GEOM_AISShape)::DownCast(const Handle(Standard_Transient)& AnObject) 
59 {
60   Handle(GEOM_AISShape) _anOtherObject;
61
62   if (!AnObject.IsNull()) {
63      if (AnObject->IsKind(STANDARD_TYPE(GEOM_AISShape))) {
64        _anOtherObject = Handle(GEOM_AISShape)((Handle(GEOM_AISShape)&)AnObject);
65      }
66   }
67
68   return _anOtherObject ;
69 }
70 const Handle(Standard_Type)& GEOM_AISShape::DynamicType() const 
71
72   return STANDARD_TYPE(GEOM_AISShape) ; 
73 }
74 Standard_Boolean GEOM_AISShape::IsKind(const Handle(Standard_Type)& AType) const 
75
76   return (STANDARD_TYPE(GEOM_AISShape) == AType || SALOME_AISShape::IsKind(AType)); 
77 }
78 Handle_GEOM_AISShape::~Handle_GEOM_AISShape() {}
79