Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / java / drv / User / User_Cylinder.ixx
CommitLineData
7fd59977 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 <User_Cylinder.jxx>
16
17#ifndef _Standard_TypeMismatch_HeaderFile
18#include <Standard_TypeMismatch.hxx>
19#endif
20
21User_Cylinder::~User_Cylinder() {}
22
23
24
25Standard_EXPORT Handle_Standard_Type& User_Cylinder_Type_()
26{
27
28 static Handle_Standard_Type aType1 = STANDARD_TYPE(AIS_InteractiveObject);
29 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(AIS_InteractiveObject);
30 static Handle_Standard_Type aType2 = STANDARD_TYPE(SelectMgr_SelectableObject);
31 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(SelectMgr_SelectableObject);
32 static Handle_Standard_Type aType3 = STANDARD_TYPE(PrsMgr_PresentableObject);
33 if ( aType3.IsNull()) aType3 = STANDARD_TYPE(PrsMgr_PresentableObject);
34 static Handle_Standard_Type aType4 = STANDARD_TYPE(MMgt_TShared);
35 if ( aType4.IsNull()) aType4 = STANDARD_TYPE(MMgt_TShared);
36 static Handle_Standard_Type aType5 = STANDARD_TYPE(Standard_Transient);
37 if ( aType5.IsNull()) aType5 = STANDARD_TYPE(Standard_Transient);
38
39
40 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,aType5,NULL};
41 static Handle_Standard_Type _aType = new Standard_Type("User_Cylinder",
42 sizeof(User_Cylinder),
43 1,
44 (Standard_Address)_Ancestors,
45 (Standard_Address)NULL);
46
47 return _aType;
48}
49
50
51// DownCast method
52// allow safe downcasting
53//
54const Handle(User_Cylinder) Handle(User_Cylinder)::DownCast(const Handle(Standard_Transient)& AnObject)
55{
56 Handle(User_Cylinder) _anOtherObject;
57
58 if (!AnObject.IsNull()) {
59 if (AnObject->IsKind(STANDARD_TYPE(User_Cylinder))) {
60 _anOtherObject = Handle(User_Cylinder)((Handle(User_Cylinder)&)AnObject);
61 }
62 }
63
64 return _anOtherObject ;
65}
66const Handle(Standard_Type)& User_Cylinder::DynamicType() const
67{
68 return STANDARD_TYPE(User_Cylinder) ;
69}
70Standard_Boolean User_Cylinder::IsKind(const Handle(Standard_Type)& AType) const
71{
72 return (STANDARD_TYPE(User_Cylinder) == AType || AIS_InteractiveObject::IsKind(AType));
73}
74Handle_User_Cylinder::~Handle_User_Cylinder() {}
75