File indexing completed on 2025-01-18 10:05:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _TDF_Tool_HeaderFile
0017 #define _TDF_Tool_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022
0023 #include <Standard_Integer.hxx>
0024 #include <TDF_AttributeMap.hxx>
0025 #include <TColStd_ListOfInteger.hxx>
0026 #include <Standard_CString.hxx>
0027 #include <TDF_LabelList.hxx>
0028 #include <TDF_LabelIntegerMap.hxx>
0029 #include <Standard_OStream.hxx>
0030 class TDF_Label;
0031 class TDF_IDFilter;
0032 class TCollection_AsciiString;
0033 class TDF_Data;
0034
0035
0036
0037 class TDF_Tool
0038 {
0039 public:
0040
0041 DEFINE_STANDARD_ALLOC
0042
0043
0044
0045
0046
0047 Standard_EXPORT static Standard_Integer NbLabels (const TDF_Label& aLabel);
0048
0049
0050
0051
0052
0053 Standard_EXPORT static Standard_Integer NbAttributes (const TDF_Label& aLabel);
0054
0055
0056
0057
0058 Standard_EXPORT static Standard_Integer NbAttributes (const TDF_Label& aLabel, const TDF_IDFilter& aFilter);
0059
0060
0061
0062
0063 Standard_EXPORT static Standard_Boolean IsSelfContained (const TDF_Label& aLabel);
0064
0065
0066
0067
0068 Standard_EXPORT static Standard_Boolean IsSelfContained (const TDF_Label& aLabel, const TDF_IDFilter& aFilter);
0069
0070
0071
0072
0073
0074 Standard_EXPORT static void OutReferers (const TDF_Label& theLabel, TDF_AttributeMap& theAtts);
0075
0076
0077
0078
0079
0080 Standard_EXPORT static void OutReferers (const TDF_Label& aLabel, const TDF_IDFilter& aFilterForReferers, const TDF_IDFilter& aFilterForReferences, TDF_AttributeMap& atts);
0081
0082
0083
0084 Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, TDF_AttributeMap& atts);
0085
0086
0087
0088
0089 Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, const TDF_IDFilter& aFilterForReferers, const TDF_IDFilter& aFilterForReferences, TDF_AttributeMap& atts);
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101 Standard_EXPORT static void RelocateLabel (const TDF_Label& aSourceLabel, const TDF_Label& fromRoot, const TDF_Label& toRoot, TDF_Label& aTargetLabel, const Standard_Boolean create = Standard_False);
0102
0103
0104
0105
0106 Standard_EXPORT static void Entry (const TDF_Label& aLabel, TCollection_AsciiString& anEntry);
0107
0108
0109
0110 Standard_EXPORT static void TagList (const TDF_Label& aLabel, TColStd_ListOfInteger& aTagList);
0111
0112
0113
0114 Standard_EXPORT static void TagList (const TCollection_AsciiString& anEntry, TColStd_ListOfInteger& aTagList);
0115
0116
0117
0118
0119 Standard_EXPORT static void Label (const Handle(TDF_Data)& aDF, const TCollection_AsciiString& anEntry, TDF_Label& aLabel, const Standard_Boolean create = Standard_False);
0120
0121
0122
0123
0124 Standard_EXPORT static void Label (const Handle(TDF_Data)& aDF, const Standard_CString anEntry, TDF_Label& aLabel, const Standard_Boolean create = Standard_False);
0125
0126
0127
0128
0129 Standard_EXPORT static void Label (const Handle(TDF_Data)& aDF, const TColStd_ListOfInteger& aTagList, TDF_Label& aLabel, const Standard_Boolean create = Standard_False);
0130
0131
0132
0133
0134
0135 Standard_EXPORT static void CountLabels (TDF_LabelList& aLabelList, TDF_LabelIntegerMap& aLabelMap);
0136
0137
0138
0139
0140
0141 Standard_EXPORT static void DeductLabels (TDF_LabelList& aLabelList, TDF_LabelIntegerMap& aLabelMap);
0142
0143
0144 Standard_EXPORT static void DeepDump (Standard_OStream& anOS, const Handle(TDF_Data)& aDF);
0145
0146
0147
0148
0149 Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const Handle(TDF_Data)& aDF, const TDF_IDFilter& aFilter);
0150
0151
0152 Standard_EXPORT static void DeepDump (Standard_OStream& anOS, const TDF_Label& aLabel);
0153
0154
0155
0156
0157 Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const TDF_Label& aLabel, const TDF_IDFilter& aFilter);
0158
0159
0160
0161
0162 protected:
0163
0164
0165
0166
0167
0168 private:
0169
0170
0171
0172
0173
0174 };
0175
0176
0177
0178
0179
0180
0181
0182 #endif