| 39 | vtkStandardNewMacro(vtkCellAttribute); |
| 40 | |
| 41 | void 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 | { |
nothing calls this directly
no test coverage detected