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

Method PrintSelf

Common/DataModel/vtkDataObjectTree.cxx:619–642  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

617
618//------------------------------------------------------------------------------
619void 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}
643VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 8

GetNumberOfChildrenMethod · 0.95
HasChildMetaDataMethod · 0.95
GetChildMetaDataMethod · 0.95
GetChildMethod · 0.95
GetNextIndentMethod · 0.80
HasMethod · 0.45
GetMethod · 0.45
GetClassNameMethod · 0.45

Tested by

no test coverage detected