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

Method PrintSelf

Common/DataModel/vtkCellAttribute.cxx:41–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39vtkStandardNewMacro(vtkCellAttribute);
40
41void vtkCellAttribute::PrintSelf(ostream& os, vtkIndent indent)
42{
43 this->Superclass::PrintSelf(os, indent);
44 os << indent << "Name: " << this->GetName().Data() << "\n";
45 os << indent << "Id: " << this->Id << "\n";
46 os << indent << "Space: " << this->GetSpace().Data() << "\n";
47 os << indent << "NumberOfComponents: " << this->GetNumberOfComponents() << "\n";
48 os << indent << "Hash: " << std::hex << this->GetHash() << std::dec << "\n";
49 os << indent << "AllArrays: (" << this->AllArrays.size() << " cell types)\n";
50 vtkIndent i2 = indent.GetNextIndent();
51 vtkIndent i3 = i2.GetNextIndent();
52 for (const auto& arraysByCell : this->AllArrays)
53 {
54 os << i2 << arraysByCell.first.Data() << ":";
55 if (arraysByCell.second.DOFSharing.IsValid())
56 {
57 os << " continuous (";
58 if (arraysByCell.second.DOFSharing.HasData())
59 {
60 os << arraysByCell.second.DOFSharing.Data() << ")";
61 }
62 else
63 {
64 os << std::hex << arraysByCell.second.DOFSharing.GetId() << std::hex << ")";
65 }
66 }
67 else
68 {
69 os << " discontinuous";
70 }
71 if (arraysByCell.second.FunctionSpace.IsValid())
72 {
73 if (arraysByCell.second.FunctionSpace.HasData())
74 {
75 os << " " << arraysByCell.second.FunctionSpace.Data();
76 }
77 else
78 {
79 os << " " << std::hex << arraysByCell.second.FunctionSpace.GetId() << std::dec;
80 }
81 }
82 else
83 {
84 os << " (none)";
85 }
86 if (arraysByCell.second.Basis.IsValid())
87 {
88 if (arraysByCell.second.Basis.HasData())
89 {
90 os << " " << arraysByCell.second.Basis.Data();
91 }
92 else
93 {
94 os << " " << std::hex << arraysByCell.second.Basis.GetId() << std::dec;
95 }
96 }
97 else
98 {

Callers

nothing calls this directly

Calls 9

GetHashMethod · 0.95
GetNextIndentMethod · 0.80
DataMethod · 0.45
GetNameMethod · 0.45
GetNumberOfComponentsMethod · 0.45
sizeMethod · 0.45
IsValidMethod · 0.45
HasDataMethod · 0.45
GetIdMethod · 0.45

Tested by

no test coverage detected