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

Method PrintSelf

Common/DataModel/vtkCellGrid.cxx:25–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23vtkCellGrid::~vtkCellGrid() = default;
24
25void vtkCellGrid::PrintSelf(ostream& os, vtkIndent indent)
26{
27 this->Superclass::PrintSelf(os, indent);
28
29 vtkIndent i2 = indent.GetNextIndent();
30 vtkIndent i3 = i2.GetNextIndent();
31
32 os << indent << "Cells: (" << this->Cells.size() << " types)\n";
33 for (auto& cellRec : this->Cells)
34 {
35 os << i2 << cellRec.second->GetClassName() << " (" << cellRec.first.Data() << ")\n";
36 cellRec.second->PrintSelf(os, i3);
37 }
38
39 os << indent << "ArrayGroups: (" << this->ArrayGroups.size() << ")\n";
40 for (auto it = this->ArrayGroups.begin(); it != this->ArrayGroups.end(); ++it)
41 {
42 vtkStringToken attToken(static_cast<vtkStringToken::Hash>(it->first));
43 auto attName = attToken.HasData() ? attToken.Data() : "";
44 if (attName.empty())
45 {
46 os << i2 << it->first << ": " << it->second << " " << it->second->GetNumberOfArrays()
47 << " arrays\n";
48 }
49 else
50 {
51 os << i2 << attName << ": " << it->second << " " << it->second->GetNumberOfArrays()
52 << " arrays\n";
53 }
54 it->second->PrintSelf(os, i3);
55 }
56
57 os << indent << "Attributes (" << this->Attributes.size() << ")\n";
58 for (const auto& attrEntry : this->Attributes)
59 {
60 os << i2 << attrEntry.second->GetName().Data() << " (" << std::hex << attrEntry.first
61 << std::dec << "):\n";
62 attrEntry.second->PrintSelf(os, i3);
63 }
64 os << indent << "HaveShape: " << (this->HaveShape ? "Y" : "N") << "\n";
65 if (this->HaveShape)
66 {
67 os << indent << "ShapeAttribute: " << std::hex << this->ShapeAttribute.GetId() << std::dec
68 << " (" << this->ShapeAttribute.Data() << ")\n";
69 }
70 os << indent << "NextAttribute: " << this->NextAttribute << "\n";
71}
72
73void vtkCellGrid::Initialize()
74{

Callers

nothing calls this directly

Calls 11

GetNextIndentMethod · 0.80
sizeMethod · 0.45
GetClassNameMethod · 0.45
DataMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
HasDataMethod · 0.45
emptyMethod · 0.45
GetNumberOfArraysMethod · 0.45
GetNameMethod · 0.45
GetIdMethod · 0.45

Tested by

no test coverage detected