| 69 | } |
| 70 | |
| 71 | void Initialize(bool reverse, vtkDataObject* dataObj) |
| 72 | { |
| 73 | vtkDataObjectTree* compositeData = nullptr; |
| 74 | if (vtkDataObjectTreeIterator::IsDataObjectTree(dataObj)) |
| 75 | { |
| 76 | compositeData = static_cast<vtkDataObjectTree*>(dataObj); |
| 77 | } |
| 78 | this->Reverse = reverse; |
| 79 | this->DataObject = dataObj; |
| 80 | this->CompositeDataSet = compositeData; |
| 81 | this->ChildIndex = 0; |
| 82 | this->PassSelf = true; |
| 83 | |
| 84 | delete this->ChildIterator; |
| 85 | this->ChildIterator = nullptr; |
| 86 | |
| 87 | if (compositeData) |
| 88 | { |
| 89 | this->Iter = this->GetInternals(compositeData)->Children.begin(); |
| 90 | this->ReverseIter = this->GetInternals(compositeData)->Children.rbegin(); |
| 91 | this->InitChildIterator(); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | bool InSubTree() |
| 96 | { |
no test coverage detected