Salome HOME
0020044: EDF 866 GEOM: Extrusion along a path : impossible to select a Wire
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_Clsf.ixx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 //
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
8 //
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
20 #include <GEOMAlgo_Clsf.jxx>
21
22 #ifndef _Standard_TypeMismatch_HeaderFile
23 #include <Standard_TypeMismatch.hxx>
24 #endif
25
26 //GEOMAlgo_Clsf::~GEOMAlgo_Clsf() {}
27  
28
29
30 Standard_EXPORT Handle_Standard_Type& GEOMAlgo_Clsf_Type_()
31 {
32
33     static Handle_Standard_Type aType1 = STANDARD_TYPE(GEOMAlgo_HAlgo);
34   static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
35   static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
36  
37
38   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
39   static Handle_Standard_Type _aType = new Standard_Type("GEOMAlgo_Clsf",
40                                                          sizeof(GEOMAlgo_Clsf),
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 //
52 const Handle(GEOMAlgo_Clsf) Handle(GEOMAlgo_Clsf)::DownCast(const Handle(Standard_Transient)& AnObject) 
53 {
54   Handle(GEOMAlgo_Clsf) _anOtherObject;
55
56   if (!AnObject.IsNull()) {
57      if (AnObject->IsKind(STANDARD_TYPE(GEOMAlgo_Clsf))) {
58        _anOtherObject = Handle(GEOMAlgo_Clsf)((Handle(GEOMAlgo_Clsf)&)AnObject);
59      }
60   }
61
62   return _anOtherObject ;
63 }
64 const Handle(Standard_Type)& GEOMAlgo_Clsf::DynamicType() const 
65
66   return STANDARD_TYPE(GEOMAlgo_Clsf) ; 
67 }
68 //Standard_Boolean GEOMAlgo_Clsf::IsKind(const Handle(Standard_Type)& AType) const 
69 //{ 
70 //  return (STANDARD_TYPE(GEOMAlgo_Clsf) == AType || GEOMAlgo_HAlgo::IsKind(AType)); 
71 //}
72 //Handle_GEOMAlgo_Clsf::~Handle_GEOMAlgo_Clsf() {}
73