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

Method PrintSelf

Common/DataModel/vtkDataSetAttributes.cxx:1677–1716  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1675
1676//------------------------------------------------------------------------------
1677void vtkDataSetAttributes::PrintSelf(ostream& os, vtkIndent indent)
1678{
1679 this->Superclass::PrintSelf(os, indent);
1680
1681 // Print the copy flags
1682 os << indent << "Copy Tuple Flags: ( ";
1683 for (int i = 0; i < NUM_ATTRIBUTES; ++i)
1684 {
1685 os << this->CopyAttributeFlags[COPYTUPLE][i] << " ";
1686 }
1687 os << ")" << endl;
1688 os << indent << "Interpolate Flags: ( ";
1689 for (int i = 0; i < NUM_ATTRIBUTES; ++i)
1690 {
1691 os << this->CopyAttributeFlags[INTERPOLATE][i] << " ";
1692 }
1693 os << ")" << endl;
1694 os << indent << "Pass Through Flags: ( ";
1695 for (int i = 0; i < NUM_ATTRIBUTES; ++i)
1696 {
1697 os << this->CopyAttributeFlags[PASSDATA][i] << " ";
1698 }
1699 os << ")" << endl;
1700
1701 // Now print the various attributes
1702 for (int attributeType = 0; attributeType < NUM_ATTRIBUTES; ++attributeType)
1703 {
1704 os << indent << vtkDataSetAttributes::AttributeNames[attributeType] << ": ";
1705 vtkAbstractArray* aa = this->GetAbstractAttribute(attributeType);
1706 if (aa)
1707 {
1708 os << endl;
1709 aa->PrintSelf(os, indent.GetNextIndent());
1710 }
1711 else
1712 {
1713 os << "(none)" << endl;
1714 }
1715 }
1716}
1717
1718//------------------------------------------------------------------------------
1719void vtkDataSetAttributes::GetAttributeIndices(int* indexArray)

Callers

nothing calls this directly

Calls 2

GetAbstractAttributeMethod · 0.95
GetNextIndentMethod · 0.80

Tested by

no test coverage detected