| 156 | } |
| 157 | |
| 158 | vtkDataSetAttributes* vtkCellGrid::GetAttributes(int type) |
| 159 | { |
| 160 | auto it = this->ArrayGroups.find(type); |
| 161 | if (it == this->ArrayGroups.end()) |
| 162 | { |
| 163 | it = |
| 164 | this->ArrayGroups.insert(std::make_pair(type, vtkSmartPointer<vtkDataSetAttributes>::New())) |
| 165 | .first; |
| 166 | } |
| 167 | return it->second; |
| 168 | } |
| 169 | |
| 170 | vtkDataSetAttributes* vtkCellGrid::GetAttributes(vtkStringToken type) |
| 171 | { |