1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
\r
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
\r
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
\r
6 // This library is free software; you can redistribute it and/or
\r
7 // modify it under the terms of the GNU Lesser General Public
\r
8 // License as published by the Free Software Foundation; either
\r
9 // version 2.1 of the License.
\r
11 // This library is distributed in the hope that it will be useful,
\r
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
14 // Lesser General Public License for more details.
\r
16 // You should have received a copy of the GNU Lesser General Public
\r
17 // License along with this library; if not, write to the Free Software
\r
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
\r
22 #include <GEOMAlgo_DataMapNodeOfDataMapOfShapePnt.hxx>
\r
24 #include <Basics_OCCTVersion.hxx>
\r
26 #ifndef _Standard_TypeMismatch_HeaderFile
\r
27 #include <Standard_TypeMismatch.hxx>
\r
30 #ifndef _TopoDS_Shape_HeaderFile
\r
31 #include <TopoDS_Shape.hxx>
\r
33 #ifndef _gp_Pnt_HeaderFile
\r
34 #include <gp_Pnt.hxx>
\r
36 #ifndef _TopTools_ShapeMapHasher_HeaderFile
\r
37 #include <TopTools_ShapeMapHasher.hxx>
\r
39 #ifndef _GEOMAlgo_DataMapOfShapePnt_HeaderFile
\r
40 #include <GEOMAlgo_DataMapOfShapePnt.hxx>
\r
42 #ifndef _GEOMAlgo_DataMapIteratorOfDataMapOfShapePnt_HeaderFile
\r
43 #include <GEOMAlgo_DataMapIteratorOfDataMapOfShapePnt.hxx>
\r
47 #if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
\r
49 IMPLEMENT_STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt)
\r
50 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY()
\r
51 STANDARD_TYPE(TCollection_MapNode),
\r
52 STANDARD_TYPE(MMgt_TShared),
\r
53 STANDARD_TYPE(Standard_Transient),
\r
55 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_END()
\r
56 IMPLEMENT_STANDARD_TYPE_END(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt)
\r
58 IMPLEMENT_DOWNCAST(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt,Standard_Transient)
\r
59 IMPLEMENT_STANDARD_RTTI(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt)
\r
63 Standard_EXPORT Handle_Standard_Type& GEOMAlgo_DataMapNodeOfDataMapOfShapePnt_Type_()
\r
65 static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode);
\r
66 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
\r
67 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
\r
69 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
\r
70 static Handle_Standard_Type _aType = new Standard_Type("GEOMAlgo_DataMapNodeOfDataMapOfShapePnt",
\r
71 sizeof(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt),
\r
73 (Standard_Address)_Ancestors,
\r
74 (Standard_Address)NULL);
\r
80 // allow safe downcasting
\r
82 const Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt) Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt)::DownCast(const Handle(Standard_Transient)& AnObject)
\r
84 Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt) _anOtherObject;
\r
86 if (!AnObject.IsNull()) {
\r
87 if (AnObject->IsKind(STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt))) {
\r
88 _anOtherObject = Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt)((Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt)&)AnObject);
\r
92 return _anOtherObject;
\r
95 const Handle(Standard_Type)& GEOMAlgo_DataMapNodeOfDataMapOfShapePnt::DynamicType() const
\r
97 return STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt);
\r
102 #define TheKey TopoDS_Shape
\r
103 #define TheKey_hxx <TopoDS_Shape.hxx>
\r
104 #define TheItem gp_Pnt
\r
105 #define TheItem_hxx <gp_Pnt.hxx>
\r
106 #define Hasher TopTools_ShapeMapHasher
\r
107 #define Hasher_hxx <TopTools_ShapeMapHasher.hxx>
\r
108 #define TCollection_DataMapNode GEOMAlgo_DataMapNodeOfDataMapOfShapePnt
\r
109 #define TCollection_DataMapNode_hxx <GEOMAlgo_DataMapNodeOfDataMapOfShapePnt.hxx>
\r
110 #define TCollection_DataMapIterator GEOMAlgo_DataMapIteratorOfDataMapOfShapePnt
\r
111 #define TCollection_DataMapIterator_hxx <GEOMAlgo_DataMapIteratorOfDataMapOfShapePnt.hxx>
\r
112 #define Handle_TCollection_DataMapNode Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapePnt
\r
113 #define TCollection_DataMapNode_Type_() GEOMAlgo_DataMapNodeOfDataMapOfShapePnt_Type_()
\r
114 #define TCollection_DataMap GEOMAlgo_DataMapOfShapePnt
\r
115 #define TCollection_DataMap_hxx <GEOMAlgo_DataMapOfShapePnt.hxx>
\r
116 #include <TCollection_DataMapNode.gxx>
\r