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

Method InitChildIterator

Common/DataModel/vtkDataObjectTreeIterator.cxx:33–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 unsigned int ChildIndex;
32
33 void InitChildIterator()
34 {
35 if (!this->ChildIterator)
36 {
37 this->ChildIterator = new vtkIterator(this->Parent);
38 }
39 this->ChildIterator->Initialize(this->Reverse, nullptr);
40
41 if (this->Reverse &&
42 this->ReverseIter != this->GetInternals(this->CompositeDataSet)->Children.rend())
43 {
44 this->ChildIterator->Initialize(this->Reverse, this->ReverseIter->DataObject);
45 }
46 else if (!this->Reverse &&
47 this->Iter != this->GetInternals(this->CompositeDataSet)->Children.end())
48 {
49 this->ChildIterator->Initialize(this->Reverse, this->Iter->DataObject);
50 }
51 }
52
53 vtkDataObjectTreeInternals* GetInternals(vtkDataObjectTree* cd)
54 {

Callers 2

InitializeMethod · 0.95
NextMethod · 0.95

Calls 4

GetInternalsMethod · 0.95
rendMethod · 0.80
InitializeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected