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