| 143 | } |
| 144 | |
| 145 | vtkAbstractArray* vtkCellAttribute::GetArrayForCellTypeAndRole( |
| 146 | vtkStringToken cellType, vtkStringToken arrayRole) const |
| 147 | { |
| 148 | auto it = this->AllArrays.find(cellType); |
| 149 | if (it == this->AllArrays.end()) |
| 150 | { |
| 151 | return nullptr; |
| 152 | } |
| 153 | auto it2 = it->second.ArraysByRole.find(arrayRole); |
| 154 | if (it2 == it->second.ArraysByRole.end()) |
| 155 | { |
| 156 | return nullptr; |
| 157 | } |
| 158 | return it2->second; |
| 159 | } |
| 160 | |
| 161 | bool vtkCellAttribute::SetCellTypeInfo(vtkStringToken cellType, const CellTypeInfo& cellTypeInfo) |
| 162 | { |