1 // Created on: 2008-06-03
2 // Created by: Alexander GRIGORIEV
3 // Copyright (c) 2008-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef VrmlData_DataMapOfShapeAppearance_HeaderFile
17 #define VrmlData_DataMapOfShapeAppearance_HeaderFile
19 #include <NCollection_DataMap.hxx>
20 #include <VrmlData_Appearance.hxx>
21 #include <TopoDS_TShape.hxx>
24 * Data Map that provides the link between each Shape obtained in VRML import
25 * and the corresponding Appearance.
27 class VrmlData_DataMapOfShapeAppearance
28 : public NCollection_DataMap<Handle(TopoDS_TShape), Handle(VrmlData_Appearance)>
32 inline VrmlData_DataMapOfShapeAppearance
33 (const Standard_Integer NbBuckets=1,
34 const Handle(NCollection_BaseAllocator)& theAllocator = 0L)
35 : NCollection_DataMap<Handle(TopoDS_TShape),
36 Handle(VrmlData_Appearance)> (NbBuckets, theAllocator)
40 inline VrmlData_DataMapOfShapeAppearance
41 (const VrmlData_DataMapOfShapeAppearance& theOther)
42 : NCollection_DataMap<Handle(TopoDS_TShape),
43 Handle(VrmlData_Appearance)> (theOther)
47 friend Standard_Boolean IsEqual (const Handle(TopoDS_TShape)& one,
48 const Handle(TopoDS_TShape)& two);
52 //=======================================================================
54 //purpose : for NCollection_DataMap interface
55 //=======================================================================
56 inline Standard_Boolean IsEqual (const Handle(TopoDS_TShape)& one,
57 const Handle(TopoDS_TShape)& two)