|
||||
File indexing completed on 2025-01-18 10:05:29
0001 // Created on: 1994-10-03 0002 // Created by: Christian CAILLET 0003 // Copyright (c) 1994-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _TransferBRep_ShapeMapper_HeaderFile 0018 #define _TransferBRep_ShapeMapper_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <TopoDS_Shape.hxx> 0024 #include <Transfer_Finder.hxx> 0025 class TopoDS_Shape; 0026 class TopTools_ShapeMapHasher; 0027 class TransferBRep_ShapeInfo; 0028 class Transfer_Finder; 0029 0030 0031 class TransferBRep_ShapeMapper; 0032 DEFINE_STANDARD_HANDLE(TransferBRep_ShapeMapper, Transfer_Finder) 0033 0034 0035 class TransferBRep_ShapeMapper : public Transfer_Finder 0036 { 0037 0038 public: 0039 0040 0041 //! Creates a Mapper with a Value. This Value can then not be 0042 //! changed. It is used by the Hasher to compute the HashCode, 0043 //! which will then be stored for an immediate reading. 0044 Standard_EXPORT TransferBRep_ShapeMapper(const TopoDS_Shape& akey); 0045 0046 //! Returns the contained value 0047 Standard_EXPORT const TopoDS_Shape& Value() const; 0048 0049 //! Specific testof equality : defined as False if <other> has 0050 //! not the same true Type, else contents are compared (by 0051 //! C++ operator ==) 0052 Standard_EXPORT Standard_Boolean Equates (const Handle(Transfer_Finder)& other) const Standard_OVERRIDE; 0053 0054 //! Returns the Type of the Value. By default, returns the 0055 //! DynamicType of <me>, but can be redefined 0056 Standard_EXPORT virtual Handle(Standard_Type) ValueType() const Standard_OVERRIDE; 0057 0058 //! Returns the name of the Type of the Value. Default is name 0059 //! of ValueType, unless it is for a non-handled object 0060 Standard_EXPORT virtual Standard_CString ValueTypeName() const Standard_OVERRIDE; 0061 0062 0063 0064 0065 DEFINE_STANDARD_RTTI_INLINE(TransferBRep_ShapeMapper,Transfer_Finder) 0066 0067 protected: 0068 0069 0070 0071 0072 private: 0073 0074 0075 TopoDS_Shape theval; 0076 0077 0078 }; 0079 0080 0081 0082 0083 0084 0085 0086 #endif // _TransferBRep_ShapeMapper_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |