File indexing completed on 2025-11-04 10:20:01
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef TObj_TReference_HeaderFile
0019 #define TObj_TReference_HeaderFile
0020
0021 #include <TDF_Attribute.hxx>
0022 #include <TDF_Label.hxx>
0023
0024 class TObj_Object;
0025 class Standard_GUID;
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 class TObj_TReference : public TDF_Attribute
0037 {
0038 public:
0039
0040
0041
0042 Standard_EXPORT TObj_TReference();
0043
0044
0045 static Standard_EXPORT const Standard_GUID& GetID();
0046
0047
0048 Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
0049
0050 public:
0051
0052
0053
0054
0055 static Standard_EXPORT Handle(TObj_TReference) Set
0056 (const TDF_Label& theLabel,
0057 const Handle(TObj_Object)& theObject,
0058 const Handle(TObj_Object)& theMaster);
0059
0060 public:
0061
0062
0063
0064 Standard_EXPORT void Set(const Handle(TObj_Object)& theObject,
0065 const TDF_Label& theMasterLabel);
0066
0067
0068
0069 Standard_EXPORT void Set(const TDF_Label& theLabel,
0070 const TDF_Label& theMasterLabel);
0071
0072
0073 Standard_EXPORT Handle(TObj_Object) Get() const;
0074
0075
0076 TDF_Label GetMasterLabel() const {return myMasterLabel;}
0077
0078
0079 TDF_Label GetLabel() const {return myLabel;}
0080
0081 public:
0082
0083
0084
0085
0086 Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
0087
0088
0089
0090 Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theWith) Standard_OVERRIDE;
0091
0092
0093
0094 Standard_EXPORT void Paste(const Handle(TDF_Attribute)& theInto,
0095 const Handle(TDF_RelocationTable)& theRT) const Standard_OVERRIDE;
0096
0097
0098 virtual Standard_EXPORT void BeforeForget() Standard_OVERRIDE;
0099
0100
0101 virtual Standard_EXPORT Standard_Boolean BeforeUndo
0102 (const Handle(TDF_AttributeDelta)& theDelta,
0103 const Standard_Boolean isForced = Standard_False) Standard_OVERRIDE;
0104
0105
0106 virtual Standard_EXPORT Standard_Boolean AfterUndo
0107 (const Handle(TDF_AttributeDelta)& theDelta,
0108 const Standard_Boolean isForced = Standard_False) Standard_OVERRIDE;
0109
0110
0111 virtual Standard_EXPORT void AfterResume() Standard_OVERRIDE;
0112
0113
0114 virtual Standard_EXPORT Standard_Boolean AfterRetrieval
0115 (const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE;
0116
0117 private:
0118
0119 TDF_Label myLabel;
0120 TDF_Label myMasterLabel;
0121
0122 public:
0123
0124 DEFINE_STANDARD_RTTIEXT(TObj_TReference,TDF_Attribute)
0125 };
0126
0127
0128 DEFINE_STANDARD_HANDLE(TObj_TReference,TDF_Attribute)
0129
0130 #endif
0131
0132 #ifdef _MSC_VER
0133 #pragma once
0134 #endif