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

Method AddChildNodes

Common/DataModel/vtkKdNode.cxx:533–548  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

531
532//------------------------------------------------------------------------------
533void vtkKdNode::AddChildNodes(vtkKdNode* left, vtkKdNode* right)
534{
535 this->DeleteChildNodes();
536
537 if (left)
538 {
539 this->SetLeft(left);
540 left->SetUp(this);
541 }
542
543 if (right)
544 {
545 this->SetRight(right);
546 right->SetUp(this);
547 }
548}
549
550//------------------------------------------------------------------------------
551void vtkKdNode::DeleteChildNodes()

Callers 5

BuildTreeMethod · 0.80
CopyChildNodesMethod · 0.80
AddNewRegionsMethod · 0.80
DivideRegionMethod · 0.80
FillOutTreeMethod · 0.80

Calls 2

DeleteChildNodesMethod · 0.95
SetUpMethod · 0.45

Tested by

no test coverage detected