// File: VrmlData_DataMapOfShapeAppearance.hxx // Created: 03.06.08 10:16 // Author: Alexander GRIGORIEV // Copyright: Open Cascade 2008 #ifndef VrmlData_DataMapOfShapeAppearance_HeaderFile #define VrmlData_DataMapOfShapeAppearance_HeaderFile #include #include #include #include /** * Data Map that provides the link between each Shape obtained in VRML import * and the corresponding Appearance. */ class VrmlData_DataMapOfShapeAppearance : public NCollection_DataMap { public: //! Constructor inline VrmlData_DataMapOfShapeAppearance (const Standard_Integer NbBuckets=1, const Handle(NCollection_BaseAllocator)& theAllocator = 0L) : NCollection_DataMap (NbBuckets, theAllocator) {} //! Copy constructor inline VrmlData_DataMapOfShapeAppearance (const VrmlData_DataMapOfShapeAppearance& theOther) : NCollection_DataMap (theOther) {} friend Standard_Boolean IsEqual (const Handle_TopoDS_TShape& one, const Handle_TopoDS_TShape& two); }; //======================================================================= //function : IsEqual //purpose : for NCollection_DataMap interface //======================================================================= inline Standard_Boolean IsEqual (const Handle_TopoDS_TShape& one, const Handle_TopoDS_TShape& two) { return one == two; } #endif