------------------------------------------------------------------------------
| 617 | |
| 618 | //------------------------------------------------------------------------------ |
| 619 | void vtkDataObjectTree::PrintSelf(ostream& os, vtkIndent indent) |
| 620 | { |
| 621 | this->Superclass::PrintSelf(os, indent); |
| 622 | os << indent << "Number Of Children: " << this->GetNumberOfChildren() << endl; |
| 623 | for (unsigned int cc = 0; cc < this->GetNumberOfChildren(); cc++) |
| 624 | { |
| 625 | const char* name = (this->HasChildMetaData(cc) && this->GetChildMetaData(cc)->Has(NAME())) |
| 626 | ? this->GetChildMetaData(cc)->Get(NAME()) |
| 627 | : nullptr; |
| 628 | |
| 629 | vtkDataObject* child = this->GetChild(cc); |
| 630 | if (child) |
| 631 | { |
| 632 | os << indent << "Child " << cc << ": " << child->GetClassName() << endl; |
| 633 | os << indent << "Name: " << (name ? name : "(nullptr)") << endl; |
| 634 | child->PrintSelf(os, indent.GetNextIndent()); |
| 635 | } |
| 636 | else |
| 637 | { |
| 638 | os << indent << "Child " << cc << ": nullptr" << endl; |
| 639 | os << indent << "Name: " << (name ? name : "(nullptr)") << endl; |
| 640 | } |
| 641 | } |
| 642 | } |
| 643 | VTK_ABI_NAMESPACE_END |
nothing calls this directly
no test coverage detected