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_LabelIterator_HeaderFile
0019 #define TObj_LabelIterator_HeaderFile
0020
0021 #include <TObj_Object.hxx>
0022
0023 #include <TDF_Label.hxx>
0024 #include <TDF_ChildIterator.hxx>
0025 #include <TObj_ObjectIterator.hxx>
0026
0027
0028
0029
0030
0031 class TObj_LabelIterator : public TObj_ObjectIterator
0032 {
0033
0034 protected:
0035
0036
0037
0038
0039
0040 Standard_EXPORT TObj_LabelIterator();
0041
0042 public:
0043
0044
0045
0046
0047
0048
0049 Standard_EXPORT TObj_LabelIterator
0050 (const TDF_Label& theLabel,
0051 const Standard_Boolean isRecursive = Standard_False);
0052
0053 public:
0054
0055
0056
0057
0058
0059 virtual Standard_Boolean More () const Standard_OVERRIDE
0060 { return !myNode.IsNull(); }
0061
0062
0063 virtual Standard_EXPORT void Next () Standard_OVERRIDE;
0064
0065
0066 virtual Handle(TObj_Object) Value () const Standard_OVERRIDE
0067 { return myObject; }
0068
0069
0070 inline const TDF_Label& LabelValue() const
0071 { return myNode; }
0072
0073 protected:
0074
0075
0076
0077
0078
0079 virtual void MakeStep() = 0;
0080
0081 protected:
0082
0083
0084
0085
0086
0087 void Init(const TDF_Label& theLabel,
0088 const Standard_Boolean isRecursive = Standard_False)
0089 { myIterator.Initialize(theLabel,isRecursive); }
0090
0091
0092 protected:
0093
0094
0095
0096 TDF_Label myNode;
0097 TDF_ChildIterator myIterator;
0098 Handle(TObj_Object) myObject;
0099
0100 public:
0101
0102 DEFINE_STANDARD_RTTIEXT(TObj_LabelIterator,TObj_ObjectIterator)
0103 };
0104
0105
0106 DEFINE_STANDARD_HANDLE(TObj_LabelIterator,TObj_ObjectIterator)
0107
0108 #endif
0109
0110 #ifdef _MSC_VER
0111 #pragma once
0112 #endif