File indexing completed on 2026-07-14 08:41:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef TObj_Partition_HeaderFile
0019 #define TObj_Partition_HeaderFile
0020
0021 #include <TObj_Object.hxx>
0022 #include <TObj_Persistence.hxx>
0023
0024
0025
0026
0027
0028
0029 class TObj_Partition : public TObj_Object
0030 {
0031 protected:
0032 enum DataTag
0033 {
0034 DataTag_First = TObj_Object::DataTag_Last,
0035 DataTag_LastIndex,
0036 DataTag_Last = DataTag_First + 100
0037 };
0038
0039 protected:
0040
0041
0042
0043
0044
0045
0046 Standard_EXPORT TObj_Partition(const TDF_Label& theLabel,
0047 const Standard_Boolean theSetName = Standard_True);
0048
0049 public:
0050
0051
0052
0053
0054
0055 static Standard_EXPORT Handle(TObj_Partition) Create(
0056 const TDF_Label& theLabel,
0057 const Standard_Boolean theSetName = Standard_True);
0058
0059 public:
0060
0061
0062
0063
0064
0065 virtual Standard_EXPORT Standard_Boolean
0066 SetName(const Handle(TCollection_HExtendedString)& theName) const Standard_OVERRIDE;
0067
0068 public:
0069
0070
0071
0072
0073
0074
0075 virtual Standard_EXPORT void AfterRetrieval() Standard_OVERRIDE;
0076
0077 public:
0078
0079
0080
0081
0082
0083 Standard_EXPORT TDF_Label NewLabel() const;
0084
0085
0086 Standard_EXPORT void SetNamePrefix(const Handle(TCollection_HExtendedString)& thePrefix);
0087
0088
0089 Handle(TCollection_HExtendedString) GetNamePrefix() const { return myPrefix; }
0090
0091
0092
0093
0094 Standard_EXPORT Handle(TCollection_HExtendedString) GetNewName(
0095 const Standard_Boolean theIsToChangeCount = Standard_True);
0096
0097
0098 Standard_EXPORT Standard_Integer GetLastIndex() const;
0099
0100
0101 Standard_EXPORT void SetLastIndex(const Standard_Integer theIndex);
0102
0103 public:
0104
0105
0106
0107
0108
0109
0110 static Standard_EXPORT Handle(TObj_Partition) GetPartition(const Handle(TObj_Object)& theObject);
0111
0112 public:
0113
0114
0115
0116
0117
0118 virtual Standard_Boolean Update() { return Standard_True; }
0119
0120 protected:
0121
0122
0123
0124
0125
0126
0127 Standard_EXPORT virtual Standard_Boolean copyData(const Handle(TObj_Object)& theTargetObject)
0128 Standard_OVERRIDE;
0129
0130 private:
0131
0132
0133
0134
0135
0136 Handle(TCollection_HExtendedString) myPrefix;
0137
0138 protected:
0139
0140 DECLARE_TOBJOCAF_PERSISTENCE(TObj_Partition, TObj_Object)
0141
0142 public:
0143
0144 DEFINE_STANDARD_RTTIEXT(TObj_Partition, TObj_Object)
0145
0146 public:
0147 friend class TObj_Model;
0148 };
0149
0150
0151 DEFINE_STANDARD_HANDLE(TObj_Partition, TObj_Object)
0152
0153 #endif
0154
0155 #ifdef _MSC_VER
0156 #pragma once
0157 #endif