File indexing completed on 2026-09-15 09:17:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _TDF_Delta_HeaderFile
0017 #define _TDF_Delta_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <Standard_Integer.hxx>
0023 #include <TDF_AttributeDelta.hxx>
0024 #include <NCollection_List.hxx>
0025 #include <TCollection_ExtendedString.hxx>
0026 #include <Standard_Transient.hxx>
0027 #include <TDF_Label.hxx>
0028 #include <Standard_OStream.hxx>
0029 class TDF_AttributeDelta;
0030
0031
0032
0033
0034
0035
0036 class TDF_Delta : public Standard_Transient
0037 {
0038
0039 public:
0040
0041 Standard_EXPORT TDF_Delta();
0042
0043
0044 bool IsEmpty() const;
0045
0046
0047
0048 bool IsApplicable(const int aCurrentTime) const;
0049
0050
0051 int BeginTime() const;
0052
0053
0054 int EndTime() const;
0055
0056
0057
0058 Standard_EXPORT void Labels(NCollection_List<TDF_Label>& aLabelList) const;
0059
0060
0061 const NCollection_List<occ::handle<TDF_AttributeDelta>>& AttributeDeltas() const;
0062
0063
0064 TCollection_ExtendedString Name() const;
0065
0066
0067 void SetName(const TCollection_ExtendedString& theName);
0068
0069 Standard_EXPORT void Dump(Standard_OStream& OS) const;
0070
0071
0072 Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const;
0073
0074 friend class TDF_Data;
0075
0076 DEFINE_STANDARD_RTTIEXT(TDF_Delta, Standard_Transient)
0077
0078 protected:
0079
0080
0081
0082 Standard_EXPORT void Validity(const int aBeginTime, const int anEndTime);
0083
0084
0085
0086 Standard_EXPORT void AddAttributeDelta(const occ::handle<TDF_AttributeDelta>& anAttributeDelta);
0087
0088 private:
0089
0090 void ReplaceDeltaList(const NCollection_List<occ::handle<TDF_AttributeDelta>>& theList);
0091
0092 void BeforeOrAfterApply(const bool before) const;
0093
0094 void Apply();
0095
0096 int myBeginTime;
0097 int myEndTime;
0098 NCollection_List<occ::handle<TDF_AttributeDelta>> myAttDeltaList;
0099 TCollection_ExtendedString myName;
0100 };
0101
0102 #include <TDF_Delta.lxx>
0103
0104 #endif