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 #ifndef _Standard_TypeMismatch_HeaderFile
\r
25 #include <Standard_TypeMismatch.hxx>
\r
28 #ifndef _TopoDS_Shape_HeaderFile
\r
29 #include <TopoDS_Shape.hxx>
\r
31 #ifndef _gp_Pnt_HeaderFile
\r
32 #include <gp_Pnt.hxx>
\r
34 #ifndef _TopTools_ShapeMapHasher_HeaderFile
\r
35 #include <TopTools_ShapeMapHasher.hxx>
\r
37 #ifndef _GEOMAlgo_DataMapOfShapePnt_HeaderFile
\r
38 #include <GEOMAlgo_DataMapOfShapePnt.hxx>
\r
40 #ifndef _GEOMAlgo_DataMapIteratorOfDataMapOfShapePnt_HeaderFile
\r
41 #include <GEOMAlgo_DataMapIteratorOfDataMapOfShapePnt.hxx>
\r
47 Standard_EXPORT Handle_Standard_Type& GEOMAlgo_DataMapNodeOfDataMapOfShapePnt_Type_()
\r
50 static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode);
\r
51 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
\r
52 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
\r
55 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
\r
56 static Handle_Standard_Type _aType = new Standard_Type("GEOMAlgo_DataMapNodeOfDataMapOfShapePnt",
\r
57 sizeof(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt),
\r
59 (Standard_Address)_Ancestors,
\r
60 (Standard_Address)NULL);
\r
67 // allow safe downcasting
\r
69 const Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt) Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt)::DownCast(const Handle(Standard_Transient)& AnObject)
\r
71 Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt) _anOtherObject;
\r
73 if (!AnObject.IsNull()) {
\r
74 if (AnObject->IsKind(STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt))) {
\r
75 _anOtherObject = Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt)((Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt)&)AnObject);
\r
79 return _anOtherObject ;
\r
81 const Handle(Standard_Type)& GEOMAlgo_DataMapNodeOfDataMapOfShapePnt::DynamicType() const
\r
83 return STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt) ;
\r
85 //Standard_Boolean GEOMAlgo_DataMapNodeOfDataMapOfShapePnt::IsKind(const Handle(Standard_Type)& AType) const
\r
87 // return (STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapePnt) == AType || TCollection_MapNode::IsKind(AType));
\r
89 //Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapePnt::~Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapePnt() {}
\r
90 #define TheKey TopoDS_Shape
\r
91 #define TheKey_hxx <TopoDS_Shape.hxx>
\r
92 #define TheItem gp_Pnt
\r
93 #define TheItem_hxx <gp_Pnt.hxx>
\r
94 #define Hasher TopTools_ShapeMapHasher
\r
95 #define Hasher_hxx <TopTools_ShapeMapHasher.hxx>
\r
96 #define TCollection_DataMapNode GEOMAlgo_DataMapNodeOfDataMapOfShapePnt
\r
97 #define TCollection_DataMapNode_hxx <GEOMAlgo_DataMapNodeOfDataMapOfShapePnt.hxx>
\r
98 #define TCollection_DataMapIterator GEOMAlgo_DataMapIteratorOfDataMapOfShapePnt
\r
99 #define TCollection_DataMapIterator_hxx <GEOMAlgo_DataMapIteratorOfDataMapOfShapePnt.hxx>
\r
100 #define Handle_TCollection_DataMapNode Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapePnt
\r
101 #define TCollection_DataMapNode_Type_() GEOMAlgo_DataMapNodeOfDataMapOfShapePnt_Type_()
\r
102 #define TCollection_DataMap GEOMAlgo_DataMapOfShapePnt
\r
103 #define TCollection_DataMap_hxx <GEOMAlgo_DataMapOfShapePnt.hxx>
\r
104 #include <TCollection_DataMapNode.gxx>
\r