Salome HOME
NRI : Temporary modification for reading catalog of modules.
[modules/kernel.git] / src / OBJECT / SALOME_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 "SALOME_AISShape.jxx"
16
17 #ifndef _Standard_TypeMismatch_HeaderFile
18 #include <Standard_TypeMismatch.hxx>
19 #endif
20
21 SALOME_AISShape::~SALOME_AISShape() {}
22  
23
24
25 Standard_EXPORT Handle_Standard_Type& SALOME_AISShape_Type_()
26 {
27
28     static Handle_Standard_Type aType1 = STANDARD_TYPE(AIS_Shape);
29   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(AIS_Shape);
30   static Handle_Standard_Type aType2 = STANDARD_TYPE(AIS_InteractiveObject);
31   if ( aType2.IsNull()) aType2 = STANDARD_TYPE(AIS_InteractiveObject);
32   static Handle_Standard_Type aType3 = STANDARD_TYPE(SelectMgr_SelectableObject);
33   if ( aType3.IsNull()) aType3 = STANDARD_TYPE(SelectMgr_SelectableObject);
34   static Handle_Standard_Type aType4 = STANDARD_TYPE(PrsMgr_PresentableObject);
35   if ( aType4.IsNull()) aType4 = STANDARD_TYPE(PrsMgr_PresentableObject);
36   static Handle_Standard_Type aType5 = STANDARD_TYPE(MMgt_TShared);
37   if ( aType5.IsNull()) aType5 = STANDARD_TYPE(MMgt_TShared);
38   static Handle_Standard_Type aType6 = STANDARD_TYPE(Standard_Transient);
39   if ( aType6.IsNull()) aType6 = STANDARD_TYPE(Standard_Transient);
40  
41
42   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,aType5,aType6,NULL};
43   static Handle_Standard_Type _aType = new Standard_Type("SALOME_AISShape",
44                                                          sizeof(SALOME_AISShape),
45                                                          1,
46                                                          (Standard_Address)_Ancestors,
47                                                          (Standard_Address)NULL);
48
49   return _aType;
50 }
51
52
53 // DownCast method
54 //   allow safe downcasting
55 //
56 const Handle(SALOME_AISShape) Handle(SALOME_AISShape)::DownCast(const Handle(Standard_Transient)& AnObject) 
57 {
58   Handle(SALOME_AISShape) _anOtherObject;
59
60   if (!AnObject.IsNull()) {
61      if (AnObject->IsKind(STANDARD_TYPE(SALOME_AISShape))) {
62        _anOtherObject = Handle(SALOME_AISShape)((Handle(SALOME_AISShape)&)AnObject);
63      }
64   }
65
66   return _anOtherObject ;
67 }
68 const Handle(Standard_Type)& SALOME_AISShape::DynamicType() const 
69
70   return STANDARD_TYPE(SALOME_AISShape) ; 
71 }
72 Standard_Boolean SALOME_AISShape::IsKind(const Handle(Standard_Type)& AType) const 
73
74   return (STANDARD_TYPE(SALOME_AISShape) == AType || AIS_Shape::IsKind(AType)); 
75 }
76 Handle_SALOME_AISShape::~Handle_SALOME_AISShape() {}
77