File indexing completed on 2026-09-20 09:19:24
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _TNaming_UsedShapes_HeaderFile
0018 #define _TNaming_UsedShapes_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <TopoDS_Shape.hxx>
0024 #include <TNaming_PtrRefShape.hxx>
0025 #include <TopTools_ShapeMapHasher.hxx>
0026 #include <NCollection_DataMap.hxx>
0027 #include <TDF_Attribute.hxx>
0028 #include <Standard_OStream.hxx>
0029 class Standard_GUID;
0030 class TDF_AttributeDelta;
0031 class TDF_DeltaOnAddition;
0032 class TDF_DeltaOnRemoval;
0033 class TDF_RelocationTable;
0034 class TDF_DataSet;
0035
0036
0037
0038
0039
0040
0041 class TNaming_UsedShapes : public TDF_Attribute
0042 {
0043
0044 public:
0045 Standard_EXPORT void Destroy();
0046
0047 ~TNaming_UsedShapes() override { Destroy(); }
0048
0049 NCollection_DataMap<TopoDS_Shape, TNaming_PtrRefShape, TopTools_ShapeMapHasher>& Map();
0050
0051
0052 const Standard_GUID& ID() const override;
0053
0054
0055 Standard_EXPORT static const Standard_GUID& GetID();
0056
0057
0058
0059 Standard_EXPORT occ::handle<TDF_Attribute> BackupCopy() const override;
0060
0061
0062
0063 Standard_EXPORT void Restore(const occ::handle<TDF_Attribute>& anAttribute) override;
0064
0065
0066 Standard_EXPORT void BeforeRemoval() override;
0067
0068
0069 Standard_EXPORT bool AfterUndo(const occ::handle<TDF_AttributeDelta>& anAttDelta,
0070 const bool forceIt = false) override;
0071
0072
0073 Standard_EXPORT occ::handle<TDF_DeltaOnAddition> DeltaOnAddition() const override;
0074
0075
0076 Standard_EXPORT occ::handle<TDF_DeltaOnRemoval> DeltaOnRemoval() const override;
0077
0078
0079
0080 Standard_EXPORT occ::handle<TDF_Attribute> NewEmpty() const override;
0081
0082
0083
0084
0085
0086
0087
0088
0089 Standard_EXPORT void Paste(
0090 const occ::handle<TDF_Attribute>& intoAttribute,
0091 const occ::handle<TDF_RelocationTable>& aRelocTationable) const override;
0092
0093
0094
0095
0096
0097
0098
0099
0100 Standard_EXPORT void References(const occ::handle<TDF_DataSet>& aDataSet) const override;
0101
0102
0103 Standard_EXPORT Standard_OStream& Dump(Standard_OStream& anOS) const override;
0104
0105
0106 Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
0107
0108 friend class TNaming_Builder;
0109
0110 DEFINE_STANDARD_RTTIEXT(TNaming_UsedShapes, TDF_Attribute)
0111
0112 private:
0113 Standard_EXPORT TNaming_UsedShapes();
0114
0115 NCollection_DataMap<TopoDS_Shape, TNaming_PtrRefShape, TopTools_ShapeMapHasher> myMap;
0116 };
0117
0118 #include <TNaming_UsedShapes.lxx>
0119
0120 #endif