| 23 | vtkCellGrid::~vtkCellGrid() = default; |
| 24 | |
| 25 | void 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 | |
| 73 | void vtkCellGrid::Initialize() |
| 74 | { |
nothing calls this directly
no test coverage detected