File indexing completed on 2025-01-18 10:05:22
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
0030 class TObj_Partition : public TObj_Object
0031 {
0032 protected:
0033 enum DataTag
0034 {
0035 DataTag_First = TObj_Object::DataTag_Last,
0036 DataTag_LastIndex,
0037 DataTag_Last = DataTag_First + 100
0038 };
0039
0040 protected:
0041
0042
0043
0044
0045
0046
0047 Standard_EXPORT TObj_Partition (const TDF_Label& theLabel, 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, const Standard_Boolean theSetName = Standard_True);
0057
0058 public:
0059
0060
0061
0062
0063
0064 virtual Standard_EXPORT Standard_Boolean SetName
0065 (const Handle(TCollection_HExtendedString)& theName) const Standard_OVERRIDE;
0066
0067 public:
0068
0069
0070
0071
0072
0073
0074 virtual Standard_EXPORT void AfterRetrieval() Standard_OVERRIDE;
0075
0076 public:
0077
0078
0079
0080
0081
0082 Standard_EXPORT TDF_Label NewLabel() const;
0083
0084
0085 Standard_EXPORT void SetNamePrefix
0086 (const Handle(TCollection_HExtendedString)& thePrefix);
0087
0088
0089 Handle(TCollection_HExtendedString) GetNamePrefix() const
0090 { return myPrefix; }
0091
0092
0093
0094
0095 Standard_EXPORT Handle(TCollection_HExtendedString) GetNewName
0096 ( const Standard_Boolean theIsToChangeCount = Standard_True );
0097
0098
0099 Standard_EXPORT Standard_Integer GetLastIndex() const;
0100
0101
0102 Standard_EXPORT void SetLastIndex(const Standard_Integer theIndex);
0103
0104 public:
0105
0106
0107
0108
0109
0110
0111 static Standard_EXPORT Handle(TObj_Partition) GetPartition
0112 (const Handle(TObj_Object)& theObject);
0113
0114 public:
0115
0116
0117
0118
0119
0120 virtual Standard_Boolean Update()
0121 {return Standard_True;}
0122
0123 protected:
0124
0125
0126
0127
0128
0129
0130 Standard_EXPORT virtual Standard_Boolean copyData
0131 (const Handle(TObj_Object)& theTargetObject) Standard_OVERRIDE;
0132
0133 private:
0134
0135
0136
0137
0138
0139 Handle(TCollection_HExtendedString) myPrefix;
0140
0141 protected:
0142
0143 DECLARE_TOBJOCAF_PERSISTENCE(TObj_Partition,TObj_Object)
0144
0145 public:
0146
0147 DEFINE_STANDARD_RTTIEXT(TObj_Partition,TObj_Object)
0148
0149 public:
0150 friend class TObj_Model;
0151
0152 };
0153
0154
0155 DEFINE_STANDARD_HANDLE(TObj_Partition,TObj_Object)
0156
0157 #endif
0158
0159 #ifdef _MSC_VER
0160 #pragma once
0161 #endif