MCPcopy Create free account
hub / github.com/Kitware/VTK / Initialize

Method Initialize

Common/DataModel/vtkDataObjectTreeIterator.cxx:71–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

InitChildIteratorMethod · 0.45
InitializeInternalMethod · 0.45

Calls 4

GetInternalsMethod · 0.95
InitChildIteratorMethod · 0.95
rbeginMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected